Page 1 of 1

Macro not begging or taunting for some reason. :(

Posted: Tue Jun 01, 2004 6:19 pm
by stigmata
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

Posted: Tue Jun 01, 2004 7:15 pm
by s16z
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).

Posted: Tue Jun 01, 2004 10:22 pm
by stigmata
Beg and taunt are both on buttons. What do you mean by "mismatched {" ?

Posted: Tue Jun 01, 2004 10:24 pm
by s16z
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.

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

Posted: Tue Jun 01, 2004 11:56 pm
by gruefood
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

Posted: Thu Jun 03, 2004 2:51 pm
by stigmata
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?

Posted: Thu Jun 03, 2004 3:25 pm
by Drumstix42
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.

Posted: Thu Jun 03, 2004 5:55 pm
by Fuergrissa
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

Posted: Fri Jun 04, 2004 4:04 pm
by stigmata
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. :)

Posted: Fri Jun 04, 2004 9:15 pm
by s16z
Sure, thank him when I told you what the problem was right from the start. Button != hotkey.

Posted: Fri Jun 04, 2004 9:53 pm
by stigmata
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. :)

Posted: Sat Jun 05, 2004 1:22 am
by Drumstix42
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.