Yoko

All sides of Injection
It is currently 2025-11-05 20:47:36

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2004-06-18 17:55:19 
Offline

Joined: 2004-06-18 17:53:15
Posts: 5
Hi,

What I want to do is grab an item out of a stack and then perform an action on the item.

eg: stack of 50 cloths, get one cloth out of stack, chop that cloth.

I can do everything except get the single item from the group.

Any help would be great.

Thanks
Proky


Top
   
 Post subject:
PostPosted: 2004-06-18 21:46:56 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
,grab 1 ~0x1234
where cloth on floor, type of it 0x1234


Top
   
 Post subject: Resultent function
PostPosted: 2004-06-19 15:02:41 
Offline

Joined: 2004-06-18 17:53:15
Posts: 5
Thanks thats wha I needed:
sub ChopBandages()
var vCloths = '0x1765'
var vBag1 = '0x62525a03'
var vMainBag = '0x6272e8d4'
var vClothPile = '0x62754b4d'
var vScissors = '0x0f9e'
while uo.count(vCloths) > 0

uo.findtype(vCloths,-1,vBag1)
uo.grab (STR(1),'finditem')

uo.usetype(vScissors)
UO.WaitTargetObject('finditem')

wait (10000)
wend
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 12 guests


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