drop?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

drop?

Post 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
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

Post 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
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post 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
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

Post by clagio »

thank's very much :)

it's working :D
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

Post 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?
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post 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
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
Post Reply