Yoko

All sides of Injection
It is currently 2024-03-19 07:56:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 25 posts ]  Go to page Previous 1 2
Author Message
PostPosted: 2013-08-01 13:01:19 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
во многих скриптах endsub пишут раздельно и скрипт работает правильно слитно или раздельно?


Top
   
PostPosted: 2013-08-01 13:33:11 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
И так и так можно.


Top
   
PostPosted: 2013-11-28 04:22:38 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
помогите пожалуйста добавить в этот скрипт проверку в случае появления ПК пить инвизку и реколиться.

Code:
sub Hlopok()
   var i, bankid = "0x40408E15", runebank = "0x412CD9E3", hlopok = "0x0C4F", waittime = 5000, posx, posy, timer, find, LogsQty=75, xlopok=0x0DF9
   uo.set("finddistance", "20")
   var MaxVes = 630
   Dim Rune[17]
   Rune[0] = 5
   Rune[1] = "0x401C3FB9"
   Rune[2] = "0x401C3FB9"
   Rune[3] = "0x401C3FB9"
   Rune[4] = "0x401C3FB7"
   Rune[5] = "0x401C3FB7"
   Rune[6] = "0x401C3FB7"
   Rune[7] = "0x41185F36"
   Rune[8] = "0x41185F36"
   Rune[9] = "0x41185F36"
   Rune[10] = "0x4013A158"
   Rune[11] = "0x4013A158"
   Rune[12] = "0x4013A159"
   Rune[13] = "0x4013A159"
   Rune[14] = "0x40B9E854"
   Rune[15] = "0x40B9E854"
   while not uo.dead()
      for i = 1 to 50
         
         if uo.mana < 12 then
            while uo.mana < 12
               uo.useskill('Meditation')
               wait(5000)
            wend
         endif
         posx = uo.getx()
         posy = uo.gety()
         repeat
            uo.deletejournal()
            uo.cast("Recall", Rune[i]) ; ID руны в загон
           
           
            repeat
               wait(150)
            until uo.getx() <> posx or uo.gety() <> posy or uo.injournal("fizzles")
         until uo.getx() <> posx or uo.gety() <> posy
         repeat
            uo.findtype(hlopok, "-1", "ground")
            if uo.findcount() then
               if uo.getdistance("finditem") > 1 then
                  posx = uo.getx("finditem")
                  posy = uo.gety("finditem")
                  Walker(posx, posy, 1)
               end if
               uo.useobject("finditem")
               wait(150)
            end if
         until not uo.findcount() or  UO.Weight > MaxVes
         posx = uo.getx()
         posy = uo.gety()
         
         repeat
            if uo.mana < 12 then
               while uo.mana < 12
                  uo.useskill('Meditation')
                  wait(5000)
               wend
            endif
            uo.deletejournal()
            uo.cast("Recall", runebank) ; ID руны в банк
           
            repeat
               wait(150)
            until uo.getx() <> posx or uo.gety() <> posy or uo.injournal("fizzles")
         until uo.getx() <> posx or uo.gety() <> posy
         
         wait(500)
         uo.findtype(0x0DF9, "-1", "backpack")
         if uo.findcount() then
            uo.moveitem("finditem", "-1", bankid)
         end if
         ; Время ожидания респа хлопка
      next
      wait(waittime)
   wend
end sub


Top
   
PostPosted: 2016-02-24 12:41:30 
Offline
User avatar

Joined: 2008-02-26 12:20:57
Posts: 48
Народ, а был бы очень признателен если бы подсказали как этот скрипт переделать чтобы не по рунам прыгал, а бегал пешком по мунглоу... и обратно в банк...


Top
   
PostPosted: 2016-04-26 15:59:19 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Username wrote:
а бегал пешком по мунглоу... и обратно в банк...

В инжекте есть ходилка, но не факт что она будет ходить как надо, тот же забор не обойдет.
Code:
uo.pmove(x, y, distance)

_________________
CodeSweeper


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 25 posts ]  Go to page Previous 1 2

All times are UTC+02:00


Who is online

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