Page 1 of 1

why doesnt this parse?

Posted: Sat Sep 25, 2004 12:59 pm
by BadBoy

Code: Select all

#turbo

#Event Exp "You gain experience!!" 
#Event Exp "You gain party experience!!" 
#Event Exp "You gained raid experience!" 

Sub Main
/echo Started
:loop
/if ((${Target.Type.Equal[PC]} && ${Target.PctHPs}<=70) && ${Target.Distance}<=95) {
/delay 1s
/cast "Complete Healing"
/delay 1s
/cast "Complete Healing"
/delay 10s
/goto :loop
}
/notify TradeWnd TRDW_Trade_Button LeftMouseUp 
/goto :loop
/return

Sub Event_Exp 
/exp
/return 
This wont do the Event :( help please.

Posted: Sat Sep 25, 2004 1:06 pm
by Zornecro
I believe events actually don't trigger like you'd expect happens in C++. Somewhere in your loop where you need events to be handled you have to add:

Code: Select all

/doevents
That is what is known as "cooperative" multi-tasking or event processing, aka the old Windows 3.x way of doing things when programs that had to play nice with others needed to call Yield().

Posted: Sat Sep 25, 2004 1:09 pm
by BadBoy
ahhhh, gotcha.

thanks. I will try it now.

Posted: Sat Sep 25, 2004 1:10 pm
by BadBoy
Works :D