|
prestojosh Beginner
Joined: 21 Feb 2006 Posts: 19
|
Posted: Tue Nov 20, 2007 1:19 am
Storing Variables From an Alias and #ALARM problem. |
I need to know if there is anyway to store variables from executing a variable?
Example:
cast fly person
I would want fly to be stored as lastspell and person as lasttarget.
Also, I am having a problem with #ALARM, I'm running ver 7.20 and it won't execute this alarm:
#ALARM -05:00 {#CON}
Kthx |
|
_________________ -Presto |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Nov 20, 2007 1:38 am |
Update to 7.21. #CON is working fine for me from within an alarm - try removing the 0 from the start. You're aware that that'll force you to reconnect every 5 minutes, right?
And for your other question:
#aliast cast {lastspell=%1;lasttarget=%2;~cast %-1}
or
#oninput {^cast (%w) (%w)} {lastspell=%1;lasttarget=%2} |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Tue Nov 20, 2007 1:40 am |
Edit: whoops, Fang got there first
I guess for the first bit you mean storing variables from executing an alias (not variable)
#ALIAS cast {lastSpell = %1; lastTarget = %-2; ~cast @lastSpell @lastTarget}
should work |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
|
|