MvXciter wrote:Is there a way to parse tells, Like (1) tells you, '(2) (3) (4)' so that the #'s get parsed in that order using say a space as a delm? I've searched and found macros that use tells but so far I havent gotten anything to work. The only thing I got to work was picking the sender, and then all of what was in the tell.
I eventualy want to make a macro that is dependant on those prams. Any help would be most welcomed.
PS will come back and edit for spelling when I'm not brain dead.
Well you are right in what you are thinking here.. Lets check it out
Code: Select all
#event Dotell "#1# tells you, '#2# #3# #4#'"
Sub Event_Dotell(string line, string argone, string argtwo, string argthree, string argfour)
/echo "${argone} sent me a tell"
/return
or
Code: Select all
#event Dotell "#1# tells you, '#*#'"
Sub Event_Dotell(string line, string teller)
/declare anarg string local
/declare x int local
/for x 1 to 4
/varset anarg ${line.Arg[${x}," "]}
/echo "${teller} told me ARG ${x}: ${anarg}"
/next x
/return