|
missari Beginner
Joined: 08 Jan 2006 Posts: 13
|
Posted: Thu Nov 11, 2010 12:38 am
Stumped |
ERROR: argument still on stack: 0
I get it twice when I hit this macro
Code: |
#IF (@sync and !@i( "prone")) {
wipe dhurive
#switch (@toxtype=break1) {
envenom dhurive with epseth
envenom dhurive with epseth
#var toxtype break2
} (@toxtype=break2) {
envenom dhurive with aconite
envenom dhurive with slike
#var toxtype break1
}
#switch (@toxtype=lstack1) {
envenom dhurive with curare
envenom dhurive with aconite
#var toxtype lstack2
} (@toxtype=lstack2) {
envenom dhurive with curare
envenom dhurive with gecko
#var toxtype lstack3
} (@toxtype=lstack3) {
envenom dhurive with @kalmiavenom
envenom dhurive with xentio
#var toxtype lstack4
} (@toxtype=lstack4) {
envenom dhurive with curare
envenom dhurive with aconite
#var toxtype lstack5
} (@toxtype=lstack5) {
envenom dhurive with darkshade
envenom dhurive with euphorbia
#var toxtype lstack6
} (@toxtype=lstack6) {
envenom dhurive with curare
envenom dhurive with aconite
#var toxtype lstack7
} (@toxtype=lstack7) {
envenom dhurive with xentio
envenom dhurive with vernalius
#var toxtype lstack8
} (@toxtype=lstack8) {
envenom dhurive with curare
envenom dhurive with gecko
#var toxtype lstack9
} (@toxtype=lstack9) {
envenom dhurive with slike
envenom dhurive with @kalmiavenom
#var toxtype lstack1
}
#switch (@toxtype=ldstack1) {
envenom dhurive with curare
envenom dhurive with aconite
#var toxtype ldstack2
} (@toxtype=ldstack2) {
envenom dhurive with aconite
envenom dhurive with monkshood
#var toxtype ldstack3
} (@toxtype=ldstack3) {
envenom dhurive with curare
envenom dhurive with @kalmiavenom
#var toxtype ldstack4
} (@toxtype=ldstack4) {
envenom dhurive with aconite
envenom dhurive with monkshood
#var toxtype ldstack5
} (@toxtype=ldstack5) {
envenom dhurive with darkshade
envenom dhurive with euphorbia
#var toxtype ldstack6
} (@toxtype=ldstack6) {
envenom dhurive with aconite
envenom dhurive with monkshood
#var toxtype ldstack7
} (@toxtype=ldstack7) {
envenom dhurive with curare
envenom dhurive with gecko
#var toxtype ldstack8
} (@toxtype=ldstack8) {
envenom dhurive with aconite
envenom dhurive with monkshood
#var toxtype ldstack9
} (@toxtype=ldstack9) {
envenom dhurive with aconite
envenom dhurive with @kalmiavenom
#var toxtype ldstack1
}
#switch (@toxtype=parastack1) {
envenom dhurive with curare
envenom dhurive with @kalmiavenom
#var toxtype parastack2
} (@toxtype=parastack2) {
envenom dhurive with curare
envenom dhurive with prefarar
#var toxtype parastack3
} (@toxtype=parastack3) {
envenom dhurive with curare
envenom dhurive with xentio
#var toxtype parastack4
} (@toxtype=parastack4) {
envenom dhurive with curare
envenom dhurive with darkshade
#var toxtype parastack5
} (@toxtype=parastack5) {
envenom dhurive with curare
envenom dhurive with prefarar
#var toxtype parastack6
} (@toxtype=parastack6) {
envenom dhurive with curare
envenom dhurive with @kalmiavenom
#var toxtype parastack7
} (@toxtype=parastack7) {
envenom dhurive with curare
envenom dhurive with vernalius
#var toxtype parastack1
}
sync=0
} |
The function up top is
Code: |
#IF ($b) {#return %ismember($a, $b)} {#return %ismember($a, @afflicts)} |
If there's an error, I certainly don't see it AND the script works fine, it just gives me that error line twice before running :S[/code] |
|
Last edited by missari on Sat Nov 13, 2010 9:26 pm; edited 1 time in total |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Nov 12, 2010 2:52 pm |
Missari you're going to need to give additional information here. You said you get this error, when you hit the macro but you have not told us what key the macro is mapped to. You reference a "function up top" but you don't mention what that function is. You also reference several variables in your macro code but you do not provide values for those variables. Without that information, there is little that can be done to assist you.
Please provide this information so we can take a closer look. |
|
_________________ Asati di tempari! |
|
|
|
missari Beginner
Joined: 08 Jan 2006 Posts: 13
|
Posted: Sat Nov 13, 2010 9:34 pm |
I'm sorry, I thought it was obvious that the macro was the long code box in my original post. It's mean to check the variable "toxtype" and send a string similar to 'envenom dhurive with x;envenom dhurive with x' to the mud, change the toxtype variable to a new value so that the next time I use it it does something different and finally run the alias 'dhuriver' to choose which attack string to send to the mud.
The function is !@i( "prone") and runs the script in the second code box. It's just a shortcut for %ismember, because I'm lazy.
The sync variable is '1' when I'm running the macro, the function returns '1', it sends the wipe dhurive string, runs the #SWITCHs and sends the envenom string, then gives that error before finally running the alias at the bottom.
I was mistaken when I said 'macro' the macro(Numpad key 0) uses the alias for which the code is above. |
|
|
|
missari Beginner
Joined: 08 Jan 2006 Posts: 13
|
Posted: Sat Nov 13, 2010 9:38 pm |
So, the issue was at the very end of the script I was using sync=0 to set sync to 0 to prevent spamming, I changed this to #var sync 0 and the error goes away.
Edit: And the TRUE issue was that there were 2 extra spaces in front of sync=0, I deleted these spaces and sync=0 worked just as error free as #var sync 0. |
|
|
|
|
|