Targeting someone based on a string holding their name
Posted: Sat Mar 06, 2010 12:47 am
I was having trouble with a macro I was working on which was a bit more complicated, so I made this simpler version to try to sort out where the problem is coming from, but I'm having a heck of a time finding the cause of the problem.
I even tried copying parts from existing (supposedly working) macros, but I still get the same problem.
Here is the macro.
The /echo part is to see if I had a problem with the stored name. (Jany is not the real name of my toon, and also, the quotation marks are to check if maybe I had a space included in the string) However, the output looks like this:
I even tried copying parts from existing (supposedly working) macros, but I still get the same problem.
Here is the macro.
Code: Select all
#include spell_routines.inc
#Event Haste "#1# tells you, 'haste me'"
Sub Main
/echo HasteBot macro started
:MainLoop
/doevents
/goto :MainLoop
/return
Sub Event_Haste(Line,Teller)
/tar ${Teller}
/delay 2s
/call Cast "Speed of Ellowind" gem5 10s
/squelch /target clear
/echo String Teller is set as "${Teller}"
/returnIf anyone can give me some insight into getting this to work, it would be much appreciated.[MQ2] HasteBot Macro Started
There are no spawns matching: (0-100) any jany
[MQ2] String Teller is set as "Jany"