|
WinterDragon Newbie
Joined: 25 Apr 2003 Posts: 5 Location: USA
|
Posted: Fri Apr 25, 2003 9:40 am
Trying to use eval... unsucessful. |
I am not even sure if I should be using eval... but here is what I want...
I have mobs in a list, and I want to lets say kill the first one... so I tried...
#EVAL kill %list(@moblist, 1)
Didn't work, i also tried...
kill %eval(%list(@moblist, 1)
I am probably going about it all the wrong way... Any help would be greatly appreciated... thanks. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Apr 25, 2003 11:01 am |
You dont even need %eval of #EVAL there. What you do need is to use the correcy function to get the item from the list.
Use:
kill %item(moblist,1) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Apr 25, 2003 4:17 pm |
In case you had difficulty understanding Vijilante's point:
There is no %list() function. It's %item().
LightBulb
Advanced Member |
|
|
|
WinterDragon Newbie
Joined: 25 Apr 2003 Posts: 5 Location: USA
|
Posted: Fri Apr 25, 2003 6:11 pm |
Thanks, got it to work with your help, didn't do it exactly like that, but that set me on the right track, thanks again :)
|
|
|
|
WinterDragon Newbie
Joined: 25 Apr 2003 Posts: 5 Location: USA
|
Posted: Fri Apr 25, 2003 7:02 pm |
lol lightbulb, I realized my stupidity after a few moments... I felt really stupid. *sniffs sadly*
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Apr 25, 2003 10:33 pm |
Wow, lot of typos in my post this morning. Guess that is what happens when I try to answer questions while drinking my first cup of coffee. Glad you were able to read it.
|
|
|
|
|
|