Bloodrose Emporium
Index > Login
Name: Password: Remember:

» Forums » Public Board » Scripts » once again I ask for help....


Kealiock
Family Friend

Joined: 11.09.2005
Posts: 210
Posted: 15 May 2006 01:05     Subject: 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

Up View profile :: Send message
Avian

Council Member

Joined: 12.12.2004
Posts: 1124
Posted: 15 May 2006 01:06     Subject:
Just a random thing here... can't you use AND with IF?
Up View profile :: Send message
Broly
Broly
Family Member

Joined: 12.12.2004
Posts: 61
Posted: 15 May 2006 17:55     Subject:
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

Up View profile :: Send message
Kealiock
Family Friend

Joined: 11.09.2005
Posts: 210
Posted: 15 May 2006 21:08     Subject:
hehe i like my wayto writen out everything...
Up View profile :: Send message

Pag: 1
Advertising
© Copyright 2001-2015 iNDY Design. Contact - About