I need scp

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
The One
Posts: 2
Joined: 2007-08-20 15:38:46

I need scp

Post by The One »

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?
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

without testing

Code: Select all

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
The One
Posts: 2
Joined: 2007-08-20 15:38:46

Post by The One »

thank u it really works!
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

ok
Post Reply