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

Ask for help

Moderators: Murderator+, Murderator

Post Reply
supermudo
Posts: 8
Joined: 2004-07-20 18:57:51

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

Post 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?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

do not mix setcatchbag and setreceivingcontainer!
supermudo
Posts: 8
Joined: 2004-07-20 18:57:51

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

it also set container for grab command
Post Reply