So I was looking at the wiki Getting Started - Macro Creation - MMOBugs Wiki
I'm having trouble getting something to work correctly as I imagined it would. This does in fact trigger. However, it triggers regardless of what is done/said, it triggers repeatedly, nonstop, until you end the mac and start it again.
Please explain what I am doing wrong as I've never used events before and I've searched for a deeper explaination within the forums and I have been unable to grasp a better understanding of the way #Event works.
As I understand it,
is like
and Blightfire is the Variable, #*# means any test, be it before or after. Naturally you need a Sub Main, but for the even you need a Sub Event_EventVariableName, which in this case is Blightfire the parameters for the sub routine are line and player. which allegedly line will save the line reference and player would pull the player who said/did it automatically. However when I do ${player} it fails to pull anything but null. and line doesn't seem to give two shits what line the word was, and it spams the commands, thus can't find target NULL repeats over and over again. If I type /who then it pulls from the who list
It's failing badly. Any assistance would be greatly appreciated.
I'm having trouble getting something to work correctly as I imagined it would. This does in fact trigger. However, it triggers regardless of what is done/said, it triggers repeatedly, nonstop, until you end the mac and start it again.
Please explain what I am doing wrong as I've never used events before and I've searched for a deeper explaination within the forums and I have been unable to grasp a better understanding of the way #Event works.
As I understand it,
Code:
#Event
Code:
/declare
It's failing badly. Any assistance would be greatly appreciated.
Code:
#Event Blightfire #*# Translocate Blightfire #*#
Sub Main
:MainLoop
/doevents
/goto :MainLoop
/return
Sub Event_Blightfire(line, player)
/target ${player}
/delay 5
/if (${Target.ID} || ${Target.LineOfSight}) {
/cast "Translocate: Blightfire Moors"
}
/return
/end