Yoko

All sides of Injection
It is currently 2025-12-28 06:54:48

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: bowcraft(need help)
PostPosted: 2004-07-20 18:30:38 
Offline

Joined: 2004-04-04 12:06:40
Posts: 11
Code:
sub bowcraft() 
 VAR Exit=0
 var i = 0
 var spirit = 0
 var j = 0
    repeat
       uo.print('====Start Cycle')
       spirit = spirit + 1
       if spirit >30 then
          uo.print('====Spirit Speak')
          spirit = 0
          uo.useskill('Spirit Speak')
          wait(5000)
       endif
       UO.DeleteJournal()
       UO.FindType('0x1BDD','0x0000','0x40194128')
       if UO.GetQuantity('finditem')>1 then
          uo.print('====First Move')
        uo.moveitem('finditem','2','backpack')
          j = 0
          while uo.count('0x1BDD')==0 AND j <20
            wait(500)
            j = j + 1
          wend
          UO.FindType('0x1BDD','-1','0x40165C2C')
          uo.print('====Second Move')
          uo.print(str(uo.findcount('')))
          uo.print(str(uo.count('0x1BDD')))
          uo.moveitem('finditem',str(uo.count('0x1BDD')-1),'0x40194128')
          j = 0
          while uo.count('0x1BDD')>1 AND j <20
            wait(500)
            j = j + 1
          wend   
          Uo.Print('====Making Shaft')
          UO.WaitMenu('What','shaft')
          UO.WaitTargetObject('finditem')
          UO.UseType('0x0F51')
         i=0
          while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND i <20
             wait(500)
        i= i + 1   
          wend
          uo.print('====Third Move')
          UO.FindType('0x1BD4','0x0000','my')
          if UO.GetQuantity('finditem')>0 then
             uo.moveitem('finditem','400','0x40194128')
             wait(500)
          Endif
       Else
          Exit=1
       endif
    until Exit==1
 end sub


Почему-то когда в паке оказывается больше 2-х логов и скрипт пытается выложить лишнее в пак выводится 'Can't pickup item' и шафты не делаются, пишется You cant' see..... Че за беда?


Top
   
 Post subject:
PostPosted: 2004-07-20 20:55:54 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
Логи в сундуке у тя в кучке ?По сколько ?...если по 5000к ...то сам подумй......ты такой вес поднимешь ???

Сделай 30-40 кучек по 200-500 логов ....и все будет ок

_________________
Все просто.
BETEPAH ™


Top
   
 Post subject:
PostPosted: 2004-07-21 09:29:34 
Offline

Joined: 2004-04-04 12:06:40
Posts: 11
Блин, хоть бы скрипт поглядел, он берет из сундука 2 лога и возвращает все кроме одного обратно. Вот тут то и проблема и возникает.


Top
   
 Post subject:
PostPosted: 2004-07-21 09:40:22 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Бери 3 назад 2 - никаких проблем!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 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