Yoko

All sides of Injection
It is currently 2025-10-26 19:37:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2007-03-30 01:24:00 
Offline

Joined: 2005-05-14 18:50:45
Posts: 6
Есть сундук в сундуке лежат реги, во 2 сундуке куча пустых мешочков нужно чтобы чар брал из 2 сундука пустой мешок из 1 брал по 100 каждого рега и ложил мешок с регами в 1 сундук.

Заранее спасибо.


Top
   
 Post subject:
PostPosted: 2007-03-30 06:53:21 
Offline
User avatar

Joined: 2007-03-24 08:12:51
Posts: 188
Code:
sub kykaracha()
var i,p
var sunduk1='00000000'
var sunduk2='00000000'
var meshok='0000'
var n=7 ; сколько типов регов
dim reg[10]
 reg[1]='0000'
 reg[2]='0000'
 ...
 reg[7]='0000'
uo.useobject(sunduk1)
wait(500)
uo.useobject(sunduk2)
wait(500)
while not uo.dead()
 uo.findtype(meshok,'-1',sunduk2)
 p=uo.getserial('finditem')
 uo.moveitem(p,'1','backpack')
 wait(700)
 for i=1 to n
  uo.findtype(reg[i],'-1',sunduk1)
  uo.moveitem('finditem','100',p)
  wait(700)
 next
 uo.moveitem(p,'1',sunduk1)
wend
endsub





Top
   
 Post subject:
PostPosted: 2007-03-30 13:11:50 
Offline

Joined: 2005-05-14 18:50:45
Posts: 6
Спасибо всё работает

Пи.Си. регов 8 видов.


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 17 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