Page 1 of 1

drop?

Posted: 2004-05-11 21:43:09
by clagio
i want to make a script to use the trapped pouchs in my bag.
the problem is that if i use ,usetype pouch it use only one pouch, and the second time i use the macro, it use always the same pouch.. there's a way to use another pouch?
i thought to drop my last used object,but i don't know how can i do..

Thanks

Posted: 2004-05-12 16:33:18
by clagio
no one can help me?

i try to launch first:

,usetype pouch
,drop
//now i have the target but i don't know how can i point to the last used object i think waittargettype, but it doesn't work.. and if i put "lastobject" it open my pouch, don't target it

Posted: 2004-05-14 13:58:15
by Lord Ruslan Nightmare
uo.findtype("paste here pouch's type")
if uo.findcount() then
uo.useobject("finditem")
uo.drop("1",str(uo.getx()),str(uo.gety()),str(uo.getz()),"finditem")
endif

Posted: 2004-05-15 12:26:29
by clagio
thank's very much :)

it's working :D

Posted: 2004-05-15 12:34:04
by clagio
only one more question, it works only if i have all the pouch in my backpack, how can i use the pouch inside another bag, always in my backpack?

Posted: 2004-05-15 15:58:51
by Lord Ruslan Nightmare
uo.findtype("paste here pouch's type")

if you make uo.findtype("paste here pouch's type","-1","container's ID")
script will search pouch in this container.
You can also use something like
var pouch = uo.getserial("_LKF")
to obtain serial of pouch, what is in your backpack or in subcontainers of backpack