Yoko

All sides of Injection
It is currently 2026-01-17 10:50:43

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2004-09-25 23:17:17 
Offline

Joined: 2004-04-23 19:58:03
Posts: 60
Есть скрипт: используем топор по координатам, если в ответ выдаётся определённое сообщение, то чар должен сделать шаг. Проблема в том, что он его не делает. На мой взгляд, в скрипте всё логично :)
Code:
sub main()
      var mx=uo.GetX()
       var my=uo.GetY()
         while not uo.weight > 400
            mx=uo.GetX()
             my=uo.GetY()

             UO.DeleteJournal()
             wait(200)
             uo.exec("waittargettile 3277 "+str(mx+1)+" "+str(my-1)+" 0")
             wait(200)
             UO.usetype('0x0F43') 
   
            if UO.InJournal("there are") or UO.InJournal("That's") or UO.InJournal("Try chopping a tree") then
            UO.Press(33, 1, 100)
            endif
         
            wait(4000)
         wend
         
         Kon2:
         recallDom2()
         UO.DeleteJournal()
         wait(5000)
         if UO.InJournal("fizzles") then
            goto Kon2
         endif
   
      viklad()
      
end sub   


Top
   
 Post subject:
PostPosted: 2004-09-25 23:44:17 
Offline

Joined: 2004-04-23 19:58:03
Posts: 60
попробовал новую модификацию :) Теперь останавливается после @The are no logs left here to chop@
Code:
sub main()
      var mx=uo.GetX()
       var my=uo.GetY()
         
         while not uo.weight > 400
            mx=uo.GetX()
             my=uo.GetY()
            
            repeat
                uo.exec("waittargettile 3277 "+str(mx+1)+" "+str(my-1)+" 0")
                wait(200)
                UO.usetype('0x0F43') 
                UO.DeleteJournal()
                  repeat
                      wait(100)
                   until UO.InJournal("there are") or UO.InJournal("That's") or UO.InJournal("Try chopping a tree") or UO.InJournal("put")
            until UO.InJournal("there are") or UO.InJournal("That's") or UO.InJournal("Try chopping a tree")
            
            UO.Press(33, 1, 100)
         wend
         
         Kon2:
         recallDom2()
         UO.DeleteJournal()
         wait(5000)
         if UO.InJournal("fizzles") then
            goto Kon2
         endif
   
      viklad()
      
end sub   


Top
   
 Post subject:
PostPosted: 2004-09-26 00:17:04 
Offline

Joined: 2004-04-23 19:58:03
Posts: 60
ё-прст... Кто мог подумать, что всё дело в большой букве "T" в сообщении "there are" ... Всё, спасибо, я сам разобрался.


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: No registered users and 6 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