Yoko

All sides of Injection
It is currently 2025-10-22 08:30:12

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: I need scp
PostPosted: 2007-08-20 15:51:44 
Offline

Joined: 2007-08-20 15:38:46
Posts: 2
In my box are about 150 Bags, in each are reagents, and i can't find here script for moving reagents from bags to some other bag or chest.
Can somebody help?


Top
   
 Post subject:
PostPosted: 2007-08-20 16:00:19 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
without testing

Code:
sub Sort_Regs()

var Sunduk= #id where are bags
var Sunduk2= #id where to put regs
var bag= #type of bags
var i, bagg

DIM reg[9]

reg[0]= #type of reg
reg[1]= #type of reg
...
reg[8]= #type of reg


uo.FindType(bag,'-1',Sunduk)
while uo.FindCount()
 if uo.FindCount() then
  uo.moveitem('finditem')
  wait(500)
  uo.UseObject('finditem')
  wait(500)
  bagg=uo.GetSerial('finditem')
  for i=0 to 8
    uo.FindType(reg[i],'-1',bagg)
    if uo.FindCount() then
      uo.moveitem('finditem','all',Sunduk2)
      wait(1000)
    end if
    wait(500)
  next
 end if
 uo.FindType(bag,'-1',Sunduk)
wend

end sub


Top
   
 Post subject:
PostPosted: 2007-08-20 16:30:51 
Offline

Joined: 2007-08-20 15:38:46
Posts: 2
thank u it really works!


Top
   
 Post subject:
PostPosted: 2007-08-20 17:02:09 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
ok


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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