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.
sub selmocban()
if (uo.GetGlobal("mocban")=="banco") then
uo.exec("setreceivingcontainer banco")
uo.print(">> Loot al Banco <<")
uo.print(">> Loot al Banco <<")
uo.SetGlobal("mocban","mochila")
else
uo.exec("setreceivingcontainer mochila")
uo.print(">> Loot ala Mochila <<")
uo.print(">> Loot ala Mochila <<")
uo.SetGlobal("mocban","banco")
end if
end sub