Yoko

All sides of Injection
It is currently 2025-11-12 20:51:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 15 posts ] 
Author Message
PostPosted: 2006-04-21 19:59:24 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
1: How do I set a script to remove 325 of item "xxyy" from a chest and place it in my back pack?

2: How do I set a script for the exact same thing except from the floor or ground?


Thanks guys! You all are awesome.


Top
   
 Post subject:
PostPosted: 2006-04-21 20:06:43 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
uo.moveitem(... , ... , 'backpack')


Top
   
 Post subject:
PostPosted: 2006-04-21 20:14:58 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
first set of dots being the item and the 2nd set being the bag?


Top
   
 Post subject:
PostPosted: 2006-04-21 20:19:57 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
fourtytwo wrote:
first set of dots being the item and the 2nd set being the bag?


Code:
uo.FindType( type of item , [color] , container )
uo.MoveItem('finditem','quantity',container(backpack, ground))


Top
   
 Post subject:
PostPosted: 2006-04-21 20:21:11 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
ok thanks :D I'll see if i can get her to work.


Top
   
 Post subject:
PostPosted: 2006-04-23 19:12:50 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
I can't seem to get the script to stop. It keeps trying to pick them up when I only want to pick up 300 of them and then the script stop.. Here is my script:

Code:
sub wooltome()
var wool = "0x0DF8"; the wool
var bag = "0x4002E458"; my backpack
    uo.findtype( wool, '0x0000', '0x40080EFF' )
      while uo.findcount()
        uo.moveitem( 'finditem', '300', bag )
     wend
endsub


I just want it to pick up the wool, put 300 in my bag and then stop. But it keeps trying to keep going.


Top
   
 Post subject:
PostPosted: 2006-04-23 19:15:55 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub wooltome() 
var wool = "0x0DF8"; Write GH bottle type here
var bag = "0x4002E458"; Keg ID here
var i = 0
    uo.findtype( wool, '0x0000', '0x40080EFF' )
    if uo.findcount() then
      for i = 0 to 300
        uo.moveitem( 'finditem', '300', bag )
      next
    end if
end sub


Top
   
 Post subject:
PostPosted: 2006-04-23 19:24:20 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
Ok thanks it works BUT it floods my screen with "you can not pick up this item" for about 5-7 seconds.. is there anyway to cut that time out?


Top
   
 Post subject:
PostPosted: 2006-04-23 19:34:28 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
Any idea why its doing this?


Top
   
 Post subject:
PostPosted: 2006-04-23 19:44:11 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
Code:
sub wooltome() 
var wool = "0x0DF8"; the wool
var bag = "0x4002E458"; my backpack   
      uo.findtype( wool, '0x0000', '0x40080EFF' )
      if uo.findcount() then
        uo.moveitem( 'finditem', '300', bag )
     end if
endsub


Wool collecting into stack or each wool is a separate item?


Top
   
 Post subject:
PostPosted: 2006-04-23 19:47:25 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
sdfs


Last edited by fourtytwo on 2006-04-23 19:55:59, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2006-04-23 19:51:54 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
Code:
sub wooltome() 
var wool = "0x0DF8"; the wool
var bag = "0x4002E458"; my backpack   
      uo.findtype( wool, '-1', '0x40080EFF' )
      if uo.findcount() then
        uo.moveitem( 'finditem', '300')
     end if
endsub


Top
   
 Post subject:
PostPosted: 2006-04-23 19:55:29 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
Awesome Perfect!!!!


Top
   
 Post subject:
PostPosted: 2006-04-23 19:55:42 
Offline

Joined: 2006-04-16 07:26:09
Posts: 19
.


Top
   
 Post subject:
PostPosted: 2006-04-23 20:01:32 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
fourtytwo wrote:
Awesome Perfect!!!!


What does it means? :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited