Poted by Kealiock on 15 May 2006 01:05 - once again I ask for help....
sub OnSipper
dim health, mana, bal, aeon, stunned, anorexia
health = world.getvariable ("cur_health")
mana = world.getvariable ("cur_mana")
bal = world.getvariable ("hm_bal")
aeon = world.getvariable ("affliction_aeon")
stunned = world.getvariable ("stunned")
anorexia = world.getvariable ("affliction_anorexia")
if bal = "on" then
if aeon = "off" then
if anorexia = "off" then
if stunned = "off" then
if health = "on" then
world.send "drink health"
elseif mana = "on" then
world.send "drink mana"
end if
end if
end if
end if
end if
end sub
ok, it keeps telling me i dont have the right amount of arguments in this... it wants three. and pointers?
code is VBS
Poted by Avian on 15 May 2006 01:06 -
Just a random thing here... can't you use AND with IF?
Poted by Broly on 15 May 2006 17:55 -
ok, it keeps telling me i dont have the right amount of arguments in this... it wants three. and pointers?
Yeah...give it three arguments? like: sub OnSipper(a, b, c)
You don't have to use the arguments for anything, just have them there.
And yeah, you can use AND in the IF statement. Like:
if bal = "on" and aeon = "off" and ... then
Poted by Kealiock on 15 May 2006 21:08 -
hehe i like my wayto writen out everything...