Yoko

All sides of Injection
It is currently 2025-12-19 17:31:26

All times are UTC+02:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: 2006-05-22 17:59:07 
Offline

Joined: 2006-05-22 17:53:43
Posts: 10
sub plavka()
var k,m
var cont='0x401D6117'
dim ings[4]
ings[0]='0x19B7'
ings[1]='0x19BA'
ings[2]='0x19B8'
ings[3]='0x19B9'
uo.useobject(cont)
uo.findtype('0x19B9','0x0000','backpack')
uo.moveitem('finditem','all',cont)
wait(500)
uo.findtype('-1','-1',cont)
while uo.GetQuantity('finditem')>1
uo.moveitem('finditem','2','backpack')
wait(300)
uo.findtype('0x19BA','0x0000','backpack')
k=uo.getserial('finditem')
uo.waittargetobject(k)
uo.usefromground('0x1983')
wait(500)
for m=0 to 3
uo.findtype(ings[m],'0x0000','backpack')
if uo.findcount()>0 then
uo.moveitem('finditem','all',cont)
wait(700)
endif
wait(50)
next
uo.findtype('-1','-1',cont)
wend
endsub


Кому не трудно исправьте его на плавку отмычек по той же схеме - кладет все отмычки в сумку, потом выкладывает по одной в пак и сразу плавит.

Заранее очень благодарен.


Top
   
 
 Post subject:
PostPosted: 2006-05-22 19:03:09 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub plavka() 
var lockpick=' type '
var k,m
var cont='0x401D6117'
dim ings[4]
ings[0]='0x19B7'
ings[1]='0x19BA'
ings[2]='0x19B8'
ings[3]='0x19B9'
uo.useobject(cont)
uo.findtype(lockpick,'0x0000','backpack')
uo.moveitem('finditem','all',cont)
wait(500)
uo.findtype('-1','-1',cont)
while uo.GetQuantity('finditem')>1
uo.moveitem('finditem','2','backpack')
wait(300)
uo.findtype(lockpick,'0x0000','backpack')
k=uo.getserial('finditem')
uo.waittargetobject(k)
uo.usefromground('0x1983')
wait(500)
for m=0 to 3
uo.findtype(ings[m],'0x0000','backpack')
if uo.findcount()>0 then
uo.moveitem('finditem','all',cont)
wait(700)
endif
wait(50)
next
uo.findtype('-1','-1',cont)
wend
endsub


Вставь в переменную lockpick =' тип отмычек ' и вперёд с песней.


Top
   
 
 Post subject:
PostPosted: 2006-05-22 19:13:46 
Offline

Joined: 2006-05-22 17:53:43
Posts: 10
Поставил, он кладет отмычки в заданный мешек но потом отключается.


Top
   
 
 Post subject:
PostPosted: 2006-05-22 19:22:49 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Code:
sub plavka() 
   var lockpick=' type '
   var k,m
   var cont='0x401D6117'
   dim ings[4]
   ings[0]='0x19B7'
   ings[1]='0x19BA'
   ings[2]='0x19B8'
   ings[3]='0x19B9'
      uo.useobject(cont)
      uo.findtype(lockpick,'-1','backpack')
      uo.moveitem('finditem','all',cont)
      wait(500)
      uo.findtype(lockpick,'-1',cont)
      while uo.GetQuantity('finditem')>1
         uo.moveitem('finditem','2','backpack')
         wait(300)
         uo.findtype(lockpick,'-1','backpack')
         uo.waittargetobject('finditem')
         uo.usefromground('0x1983')
         wait(500)
         for m=0 to 3
            uo.findtype(ings[m],'-1','backpack')
            if uo.findcount()>0 then
               uo.moveitem('finditem','all',cont)
               wait(700)
            endif
            wait(50)
         next
         uo.findtype(lockpick,'-1',cont)
      wend
endsub


Top
   
 
 Post subject:
PostPosted: 2006-05-22 19:29:13 
Offline

Joined: 2006-05-22 17:53:43
Posts: 10
Работает, спасибо вам большое!!!


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 5 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:  
Powered by phpBB® Forum Software © phpBB Limited