Macro not begging or taunting for some reason. :(

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Macro not begging or taunting for some reason. :(

Post by stigmata » Tue Jun 01, 2004 6:19 pm

Im using the following macro and i can get kick and disarm to work, but taunt and beg wont work at all. If anyone can tell me what to change, I would appreciate it. Thanks guys. :)


| Stick.mac
#Event rageon "#*#has become ENRAGED#*#"
#Event rageoff "#*#is no longer enraged#*#"
#Event stunned "#*#while stunned#*#"
#Event STOP "#*#Stop A#*#"
sub main

/echo STICK MAC STARTED
/declare mytimer timer outer 0
/varset mytimer 4s

:Loop
/if (${Target.Distance}>15) /keypress forward hold
/if (${Target.Distance}<10) /keypress forward
/face fast
/doevents
/varset mytimer 80s
}
/if (${Me.AbilityReady[kick]} && ${Target.Distance}<15) /doability "kick"
/if (${Me.AbilityReady[disarm]} && ${Target.Distance}<15) /doability "disarm"
/if (${Me.AbilityReady[taunt]} && ${Target.Distance}<15) /doability "taunt"
/if (${Me.AbilityReady[begging]} && ${Target.Distance}<15) {
/attack off
/face fast
/delay 1
/doability "begging"
/attack on
}
/if (${Target.ID}) /goto :loop
/keypress back
/attack off
/end
/return

sub event_rageon
/if (${Target.CurrentHPs}>10) /return
/popup ENRAGED ATTACK OFF
/attack off
/return

sub event_rageoff
/if (${Target.CurrentHPs}>10) /return
/popup Rage OFF, ATTACKING NOW
/attack on
/return

sub event_stunned
/popup STUNNED STUNNED STUNNED
/return

sub event_Stop
/popup Stop ATTACKING
/attack off
/end

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Tue Jun 01, 2004 7:15 pm

Two things:

1. You have mismatched } in there.

2. If begging isn't on a button, it will always return NULL for AbilityReady. Since I don't have taunt, I can't check it (and I'm not motivated enough to create a character to check it).

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Post by stigmata » Tue Jun 01, 2004 10:22 pm

Beg and taunt are both on buttons. What do you mean by "mismatched {" ?

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Tue Jun 01, 2004 10:24 pm

Hmm, begging works fine for me, can't help ya there then.

As for mismatched }, count the number of { and the number of } in your code up there. They should be the same number. They are not.

gruefood
a lesser mummy
a lesser mummy
Posts: 30
Joined: Sat Mar 27, 2004 6:31 pm

Re: Macro not begging or taunting for some reason. :(

Post by gruefood » Tue Jun 01, 2004 11:56 pm

stigmata wrote:Im using the following macro and i can get kick and disarm to work, but taunt and beg wont work at all. If anyone can tell me what to change, I would appreciate it. Thanks guys. :)

Code: Select all

| Stick.mac
#Event rageon "#*#has become ENRAGED#*#"
#Event rageoff "#*#is no longer enraged#*#"
#Event stunned "#*#while stunned#*#"
#Event STOP "#*#Stop A#*#"
sub main

/echo STICK MAC STARTED
/declare mytimer timer outer 0
/varset mytimer 4s

:Loop
/if (${Target.Distance}>15) /keypress forward hold
/if (${Target.Distance}<10) /keypress forward
/face fast
/doevents
/varset mytimer 80s
[color=red]} [<--Where's this guys buddy?][/color]
/if (${Me.AbilityReady[kick]} && ${Target.Distance}<15) /doability "kick"
/if (${Me.AbilityReady[disarm]} && ${Target.Distance}<15) /doability "disarm"
/if (${Me.AbilityReady[taunt]} && ${Target.Distance}<15) /doability "taunt"
/if (${Me.AbilityReady[begging]} && ${Target.Distance}<15) {
/attack off
/face fast
/delay 1
/doability "begging"
/attack on
}
/if (${Target.ID}) /goto :loop
/keypress back
/attack off
/end
/return

sub event_rageon
/if (${Target.CurrentHPs}>10) /return

/popup ENRAGED ATTACK OFF
/attack off
/return

sub event_rageoff
/if (${Target.CurrentHPs}>10) /return
/popup Rage OFF, ATTACKING NOW
/attack on
/return

sub event_stunned

/popup STUNNED STUNNED STUNNED
/return

sub event_Stop
/popup Stop ATTACKING
/attack off
/end

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Post by stigmata » Thu Jun 03, 2004 2:51 pm

I removed the lonesome ")" and the macro still runs without doing taunt or beg. I put taunt in the line where kick and disarm are wondering if I perhaps had typed the line i put taunt into wrong, but it still only fires off disarm and kick. I DO have buttons for both taunt and begging but for some odd reason neither of them will go off with the macro. Anyone able to give me any additional advice on how to make this macro work? Could it be an issue of the distance i have set?

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Thu Jun 03, 2004 3:25 pm

Open up your actions window. The one that his like Sit, Invite, Disband, and Camp on it.

It's like the 2nd or 3rd tab. But both those abilities your tying to do, need to be on one of thos buttons.

If it's for the same reason, it happened to me, because I was trying to make my char auto kick, and it' didn't work until I had it in that window as well.

G'luck.

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Thu Jun 03, 2004 5:55 pm

s16z wrote:Two things:

1. You have mismatched } in there.

2. If begging isn't on a button, it will always return NULL for AbilityReady. Since I don't have taunt, I can't check it (and I'm not motivated enough to create a character to check it).
3 Things

Code: Select all

USE THE CODE FEATURE
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Post by stigmata » Fri Jun 04, 2004 4:04 pm

Drumstix you were right. It was all because I didnt have taunt and begging on the actions menu but had hotkey buttons for them both. Thanks for your help. Everythings working great now. :)

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Fri Jun 04, 2004 9:15 pm

Sure, thank him when I told you what the problem was right from the start. Button != hotkey.

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Post by stigmata » Fri Jun 04, 2004 9:53 pm

Sorry s16z. I had it on a button and thats why i didnt think that was the problem. I had it on a button but it wasnt in the button bank listed under skills, actions, etc... So I figured that wasnt the problem. Sorry I didnt understand what you meant man. On another note, anyone have any advice on how I can get this macro to respond better when a mob enrages? Most of the time it keeps attack on and doesnt shut it off. Should I enter a delay in there somewhere or change some text? Thanks again for any advice ahead of time guys. :)

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Sat Jun 05, 2004 1:22 am

s16z wrote:Sure, thank him when I told you what the problem was right from the start. Button != hotkey.
Tell only half the joke, it's not very funny.