Yoko
http://forum.yoko.com.ua/

I need scp
http://forum.yoko.com.ua/viewtopic.php?f=17&t=12336
Page 1 of 1

Author:  The One [ 2007-08-20 15:51:44 ]
Post subject:  I need scp

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?

Author:  Scripts Writer [ 2007-08-20 16:00:19 ]
Post subject: 

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

Author:  The One [ 2007-08-20 16:30:51 ]
Post subject: 

thank u it really works!

Author:  Scripts Writer [ 2007-08-20 17:02:09 ]
Post subject: 

ok

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/