05/13 zip event parsing question
Posted: Fri May 14, 2004 11:12 pm
OK, I'm using the 05/13/04 [and 5/14 zip] zip, and having problems with event parsing. This excerpt from my macro will respond apropriately at first, and begin following me when my main says "Follow me bitches" to the specified chat room. But it no longer stops following once in follow mode. I've rearranged the punctuation a bit and havent found the solution yet. This was working before the event changes.
Code: Select all
#event Followme "#*#Follow me bitches#*#"
#event Endfollow "#*#Stop following me bitches#*#"
#Chat chat mysecretroom
Sub Main
/declare Following outer
/declare FollName outer
/varset FollName ${Target}
Sub Event_Followme
/varset Following 1
/target ${FollName}
:Loop
/face fast
/if (${Target.Distance}>10) /keypress forward hold
/if (${Target.Distance}<9) /keypress back
/doevents
/if (!${Target.ID}) /varset Following 0
/if (${Target.ID}) /if (${Following}>0) {
/goto :Loop
} else {
/keypress forward
/keypress back
}
/return
Sub Event_Endfollow
/varset Following 0
/keypress forward
/keypress back
/return