Thread: Bloodlust macro

  1. #1
    High Overlord lungo's Avatar
    10+ Year Old Account
    Join Date
    Jan 2010
    Location
    A chair near you!
    Posts
    103

    Bloodlust macro

    Hallo

    I have for a long time used this, to add a little flavor, when Im popping bloodlust. But recently I have seen it just spam the "/in /gr (...)" like 20-30 times a sec.
    That together with those times where I need to push it more that once, due to GCD, I some time courses alot of spam. That is why I stopped useing it for some time now. Then I just wonderen, are there a way where you can add a command, so it won't start the text part, if the cast part are succesful?

    #showtooltip Bloodlust
    /cast Bloodlust
    /raid BLOODLUST Has started, 40 sec of fun time!
    /in 10 /gr 10 sec passed
    /in 20 /gr Half way mark reached
    /in 30 /gr 10 Sec left, blow EVERYTHING
    /in 40 /gr Bloodlust has ended - Have a nice day


    Signature by Elysia
    "When there is no peril in the fight, there is no glory in the triumph."

  2. #2
    Deleted
    Code:
    local a = CreateFrame("Frame")
    a:Hide()
    a:SetScript("OnUpdate", function(self, elapsed)
        local lastTime = self.time
        self.time=self.time-elapsed
        if lastTime>10 and self.time<=10 then
            SendChatMessage("10 sec left, blow EVERYTHING","YELL")
            return
        end
        if lastTime>20 and self.time <=20 then
            SendChatMessage("Half way mark reached","YELL")
            return
        end
        if lastTime>30 and self.time <=30 then
            SendChatMessage("10 sec passed","YELL")
            return
        end
        if self.time <= 0 then
            SendChatMessage("Bloodlist has ended - have a nice day", "YELL")
            self:Hide()
        end
    end)
    a:SetScript("OnEvent", function(self, event, ...)
        local arg = {...}
        self.guid = self.guid or UnitGUID("player")
        if (arg[2] == "SPELL_CAST_SUCCESS") and (arg[3] == self.guid) and (arg[9] == 2825) then
            self.time = 40
            self:Show()
            SendChatMessage("BLOODLUST has started, 40 sec of fun time!","YELL")
        end
    end)
    a:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    How to use. Untested. Report back with issues.
    Last edited by mmocba105e19de; 2010-11-25 at 06:55 PM.

  3. #3
    High Overlord lungo's Avatar
    10+ Year Old Account
    Join Date
    Jan 2010
    Location
    A chair near you!
    Posts
    103
    Cheers. Thanks for the help.
    Trying it out now.

    ---------- Post added 2010-11-25 at 06:13 PM ----------

    I have done say in the HowTo. It shows up in the addon list, but when I cast bloodlust in the game,. there arent comming any text with it.
    Last edited by lungo; 2010-11-25 at 05:05 PM.


    Signature by Elysia
    "When there is no peril in the fight, there is no glory in the triumph."

  4. #4
    Deleted
    maybe a /yell could help here, it's not like you ever use BL outside of a party/raid setting. it stays in the instance.

  5. #5
    Deleted
    I've adjusted the script above a bit. Make sure LUA errors are turned on (ESC -> Interface -> Help).

  6. #6
    High Overlord lungo's Avatar
    10+ Year Old Account
    Join Date
    Jan 2010
    Location
    A chair near you!
    Posts
    103
    I get :
    Message: Interface\AddOns\Bloodlust_Anounce\Bloodlust_Anounce.lua:9: unexpected symbol near 'if'
    Time: 11/25/10 18:56:58
    Count: 1
    Stack: [C]: ?

    Locals:

    When I turn the Show Lua Error on.

    I just ran an instance and it was the only error I got for that one.
    Last edited by lungo; 2010-11-25 at 06:13 PM.


    Signature by Elysia
    "When there is no peril in the fight, there is no glory in the triumph."

  7. #7
    Deleted
    Quote Originally Posted by lungo View Post
    I get :
    Message: Interface\AddOns\Bloodlust_Anounce\Bloodlust_Anounce.lua:9: unexpected symbol near 'if'
    Time: 11/25/10 18:56:58
    Count: 1
    Stack: [C]: ?

    Locals:

    When I turn the Show Lua Error on.

    I just ran an instance and it was the only error I got for that one.
    Code fixed above again.

  8. #8
    High Overlord lungo's Avatar
    10+ Year Old Account
    Join Date
    Jan 2010
    Location
    A chair near you!
    Posts
    103
    And now it works like a charm. Thanks guys. Really awesome that you helped me with it... and basicly wrote me an addon!

    Edit: Just a though. Can I make it, so that when in no party, then it will yell. In party it will be in gruop and in raid in raidchat?

    Or where do you recomment I should look for it if I want to try myself and work with it?
    Last edited by lungo; 2010-11-25 at 07:19 PM.


    Signature by Elysia
    "When there is no peril in the fight, there is no glory in the triumph."

  9. #9
    Deleted
    The LUA manual and the WoW API doc.

    As for that, replace all the "YELL"s in the code with:
    Code:
    GetNumRaidMembers()>0 and "RAID" or GetNumPartyMembers()>0 and "PARTY" or "YELL"

  10. #10
    High Overlord lungo's Avatar
    10+ Year Old Account
    Join Date
    Jan 2010
    Location
    A chair near you!
    Posts
    103
    Again, Thanks.

    Finaly I can use it again and get that more flawor in the bloodlust


    Signature by Elysia
    "When there is no peril in the fight, there is no glory in the triumph."

  11. #11
    High Overlord Gossipgirlxo's Avatar
    10+ Year Old Account
    Join Date
    Sep 2010
    Location
    Newport Beach, CA
    Posts
    158
    honestly if I saw a shaman that said all that stuff while bloodlust was up I would laugh... but to each his own I suppose.
    Last edited by mmocba105e19de; 2010-11-27 at 07:19 AM.

  12. #12
    /cast ThreadRessurection


    Ok so two questions:

    1) does that code still work?
    2) Can it be reversed?


    I'm trying to create (and by trying...I'm trying to figure out WTF a lua is to do this) an addon that when pushed will yell "BLOODLUST IN X SECONDS!"
    Then wait X seconds and cast BL

    Would love it even more if it would kick off a DBM /pull 5 then cast...but that's not required.


    We want to give everyone a chance to get their Terroguards, Armies, Stampedes and Elementals out before I pop it.


    Thanks to anyone who can assist me.

  13. #13
    Mechagnome Lefeng's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    Indiana, USA
    Posts
    603
    Quote Originally Posted by jayinjersey View Post
    I'm trying to create (and by trying...I'm trying to figure out WTF a lua is to do this) an addon that when pushed will yell "BLOODLUST IN X SECONDS!"
    Then wait X seconds and cast BL

    Would love it even more if it would kick off a DBM /pull 5 then cast...but that's not required.


    We want to give everyone a chance to get their Terroguards, Armies, Stampedes and Elementals out before I pop it.


    Thanks to anyone who can assist me.
    Not possible. Code executed from a macro or addon is forbidden to activate spells in that manner.The closest you can get is a DBM pull timer that counts down and then you, yourself, activates Bloodlust.

  14. #14
    BAH! Figured it was something like that...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •