Error in simple script
Posted: 2004-07-07 21:23:31
Code: Select all
var mocban="banco"
sub selmocban()
if (mocban=="banco") then
uo.exec("setreceivingcontainer banco")
uo.print(">> Loot al Banco <<")
uo.print(">> Loot al Banco <<")
mocban="mochila"
else
uo.exec("setreceivingcontainer mochila")
uo.print(">> Loot ala Mochila <<")
uo.print(">> Loot ala Mochila <<")
mocban="banco"
end if
end sub
Banco and mochila are objects
This script must work as a switch, option 1 container banco, option 2 container mochila
Now it only switch one container an not change to another.
Help Me!
Thank you. =)