Page 1 of 1

i can't drag items via script.. what's going on??

Posted: 2004-07-21 00:20:36
by supermudo

Code: Select all

sub checakeg()
if uo.injournal("O barril esta vazio") then
uo.exec("setcatchbag bau")
uo.exec("usetype keg")
uo.exec("grab 1 lastobject")
uo.exec("unsetcatchbag")
uo.deletejournal()
endif
endsub


this code was about to check if the keg is empty and then throw it in the container "bau"

but i get both messages "You cannot move that" "You cannot unequip that"
if i just drag the potion keg with the mouse it falls in "bau" but it doesn´t via grab command. Why is that? any solutions?

Posted: 2004-07-21 01:12:06
by Yoko
do not mix setcatchbag and setreceivingcontainer!

Posted: 2004-07-21 05:05:04
by supermudo
i didn,t get it...

what are the uses for setreceivingcontainer other than a target for emptycontainer???

how would this command fit in the situation?

thanx

Posted: 2004-07-21 16:44:53
by Yoko
it also set container for grab command