event variable
Posted: Sun Nov 24, 2013 12:46 am
Using the below code is there a way i can add a variable so I can set ALL sub Events to use this certain variable?
I would like the variable to change the sub Event to:
So I am changing the target part
Code: Select all
#event Virtue "#*##1# tells you, 'virtue'#*#"
Sub Main
/declare x int outer 0
:Start
/if (!${Me.Inventory[17].ID} && !${Me.Inventory[18].ID}) /call Wait4Rez
/doevents
/goto :Start
/return
Sub Event_Virtue(Line, Sender)
/target pc ${Sender}
/if (${Me.CurrentMana}>1200 && ${Target.Distance}<=100 && ${Target.Name.Equal[${Sender}]}) {
/tell ${Sender} Virtue inc
/call cast "virtue" gem1 10s
}
/return
Code: Select all
Sub Event_Virtue(Line, Sender)
/target pc ${Sender.Right[-2].Left[-1]}
/if (${Me.CurrentMana}>1200 && ${Target.Distance}<=100 && ${Target.Name.Equal[${Sender.Right[-2].Left[-1]}]}) {
/tell ${Sender} Virtue inc
/call cast "virtue" gem1 10s
}
/return