Little help please?

rettus1

New member
Joined
Apr 23, 2008
Messages
62
Reaction score
0
Points
0
Could anyone help me? Ive been editing a macro and Im stuck on a part. I want this bit of code to only execute once it detects xp is gained (mob dead). Any help would be apreciated.

sub lootAll
/advloot lootall 100
/delay 3
:loot
/delay 1
/if (${AdvLoot.Active}) /goto :loot
/return

Ive already got it calling the sub routine and its working fine but it just keeps cycling and trying to loot again and I want it to only when something is deaded. Thank you.
 
You need to use an event for that, looks something like this
Code:
#event EventName #*#Event Trigger Here#*#
You can use numbers here like this #1# and that would take whatever falls in that spot and use it as an arg to the sub.

Code:
Sub Event_EventName
/call lootAll
/return

Make sure you have a /doevents in your main loop to catch the event described above. Let me know if you have any more questions about it.
 
If I'm not mistaken, there is a downshit for that. May wanna check that thread.
 
Ok got that working thanks.

Now im trying to do something that when i take damage it /alt activate 9003

This is what i have

#event Hit "#*#points of damage.#*#"

Sub Event_Hit
/g You fags are letting me get hit! Feigning Death!!
/alt activate 933
/delay 10
/stand
/g Standing back up! Returning to routine!
/return

Its not working. Any help??
 
Ok i got it working. But my event is wrong. How do i write the even so it only fires when I get hit? Right now its doing when anyone gets hit?
 
I got this but its slow to react.

#event Hit1 "#*#slashes YOU#*#"
#event Hit2 "#*#crushes YOU#*#"
#event Hit3 "#*#hits YOU#*#"
#event Hit4 "#*#pierces YOU#*#"
#event Hit5 "#*#punches YOU#*#"
#event Hit6 "#*#kicks YOU#*#"
 
Sub Event_Hit1
/alt activate 933
/delay 30
/sit
/return

Sub Event_Hit2
/alt activate 933
/delay 30
/sit
/return