Yoko

All sides of Injection
It is currently 2026-03-19 04:51:51

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Скрипт на лут
PostPosted: 2004-11-02 23:56:13 
Offline
User avatar

Joined: 2004-11-02 23:52:47
Posts: 86
Спасибо GrayLord'y, всё заработало :-)


Last edited by Optical on 2004-11-03 06:30:53, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2004-11-03 01:12:52 
Offline
Expert!

Joined: 2004-06-04 03:24:25
Posts: 333
вот интересно, а открывать труп не надо?
на zuluhotel rezurrection (rezurrection.zuluhotel.ru)
такой скрипт тоже не будет работать.
а вот этот будет:
Code:
sub main() 
 var corpse='0x2006' ; objtype для всех трупов, независимо от того, чей труп.
 var waittime=500
 var body,bodypack,i
 DIM Loot[12]
 Loot[0]=0x0EED
 Loot[1]=0x13B9
 Loot[2]=0x1B76
 Loot[3]=0x1411
 Loot[4]=0x141A
 Loot[5]=0x1416
 Loot[6]=0x1410
 Loot[7]=0x1417
 Loot[8]=0x1418
 Loot[9]=0x1419
 Loot[10]=0x0E76
 Loot[11]=0x1413
 Loot[12]=0x1086
 uo.set('finddistance','2')
 repeat
  while uo.countonground(corpse)>0
   uo.findtype(corpse,'-1','ground')
   body=uo.getserial('finditem')
#-----------открываем свой пак
   uo.useobject('backpack')
#-----------ждем открытия своего пака
   repeat
    wait(100)
   until uo.getserial('lastcontainer')==uo.getserial('backpack')
#-----------открываем труп
   uo.useobject(body)
   repeat
    wait(100)
   until uo.getserial('lastcontainer')<>uo.getserial('backpack')
#------------
   bodypack=uo.getserial('lastcontainer')
   For i=0 to 12
    repeat
     UO.FindType(Loot[i],-1,bodypack)
     if UO.GetQuantity('finditem') then
      UO.MoveItem('finditem','backpack')
      repeat
       wait(100)
      until uo.containerof('finditem')==uo.getserial('backpack')
      wait(waittime)
     endif
    until uo.findcount()==0
   next
   uo.ignore(body)
  wend
 until UO.Dead()
endsub


Top
   
 Post subject:
PostPosted: 2004-11-03 12:02:50 
Offline
User avatar

Joined: 2004-06-23 08:55:32
Posts: 128
Чего вас тянет на лут?:D

_________________
©Blodmoon :)


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: Google [Bot] and 4 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