Yoko

All sides of Injection
It is currently 2025-12-28 21:23:26

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: drop?
PostPosted: 2004-05-11 21:43:09 
Offline

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


Top
   
 Post subject:
PostPosted: 2004-05-12 16:33:18 
Offline

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


Top
   
 Post subject:
PostPosted: 2004-05-14 13:58:15 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
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

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-05-15 12:26:29 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
thank's very much :)

it's working :D


Top
   
 Post subject:
PostPosted: 2004-05-15 12:34:04 
Offline

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


Top
   
 Post subject:
PostPosted: 2004-05-15 15:58:51 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
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

_________________
Без труда не выловишь и рыбку из пруда,

А без пруда не выловишь её и с трудом...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited