Yoko

All sides of Injection
It is currently 2024-03-29 18:00:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 35 posts ]  Go to page Previous 1 2
Author Message
PostPosted: 2014-03-10 15:13:10 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
В будущем ID и Type бери только через info.
Code:
sub Heal()
   var clear, waittime, msg = "put bloody bandage|apply the bandages"
   repeat
      if uo.findtype("0x0E21", -1, "backpack") then
         clear = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.bandageself()
            waittime = uo.timer() + 100
            uo.usetype("0x1B76")
            repeat
               uo.warmode(0)
               wait(100)
            until uo.dead() or uo.injournal(msg) or uo.timer() > waittime
         until uo.dead() or uo.getx(clear) == 0
      else
         if uo.findtype("0x0E20", -1, "backpack") then
            uo.waittargetobject("0x4009FFAD")
            uo.usetype("0x0E20")
            wait(500)
         else
            uo.print("Закончились бинты")
            return
         end if
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-10 15:16:52 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Sechas nichevo nezapuskaetsa.
Nazhimaju Run Function a on nechevo... 0 reakcii


Top
   
PostPosted: 2014-03-10 15:19:53 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Nazhimaju Run Function, a on mne srazu pishet chto Zakonchilisj Benit i virubaetsa


Top
   
PostPosted: 2014-03-10 15:21:29 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Не находит в паке бинты.

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-10 15:22:57 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Скриншот вкладки Main сюда.

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-10 15:29:39 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
А вообще, вместо старого инжекта скачай новый от сюда viewtopic.php?f=1&t=17391 На вкладке Main поставь галки Undead, Premit Vars Loopback, Light, Autostart, Track World Items и всё.

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-10 16:03:53 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
install wrote:
Nazhimaju Run Function, a on mne srazu pishet chto Zakonchilisj Benit i virubaetsa
Скрипт который это выдал должен работать только на самой последней версии инжекта.
На всех более ранних версиях будет писать что нет бинтов.


Top
   
PostPosted: 2014-03-10 16:28:11 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Nu vobwem skachal novij Inject, vsjo rabotaet no ne do konca! :)
Script idjot, WAR mode vrubaet i virubaet, no nelechitsa.
Toestj pitaetsa lechitsa, no pochemu Target Cancelled posle tovo kak hochet polechitsa.
Vot screenshot i von che pishet


Attachments:
Untitled.png
Untitled.png [ 91.77 KiB | Viewed 2486 times ]
Top
   
PostPosted: 2014-03-10 16:31:05 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Code:
sub Heal()
   var clear, waittime, msg = "put bloody bandage|apply the bandages"
   repeat
      if uo.findtype("0x0E21", -1, "backpack") then
         clear = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.bandageself()
            waittime = uo.timer() + 100
            wait(100)
            uo.usetype("0x1B76")
            repeat
               uo.warmode(0)
               wait(100)
            until uo.dead() or uo.injournal(msg) or uo.timer() > waittime
         until uo.dead() or uo.getx(clear) == 0
      else
         if uo.findtype("0x0E20", -1, "backpack") then
            uo.waittargetobject("0x4009FFAD")
            uo.usetype("0x0E20")
            wait(500)
         else
            uo.print("Закончились бинты")
            return
         end if
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-10 16:36:02 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Nea. Vsjo takzhe samo


Top
   
PostPosted: 2014-03-10 16:36:33 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Neet, vsjo rabotaet
Vsjo SPS tebe ogromnoe. Ti prosto BOG Injecta! :)

Nee blin nefiga nepashet :D
Sorry, prosto on lechitsa i vsjo ravno Targeting canceled
neponimaju

Pervij raz kogda nazhimaju Play, on lechitsa a sledujwie razi Targetting cancelled


Top
   
PostPosted: 2014-03-10 16:43:17 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
В строке
Code:
            waittime = uo.timer() + 100
            wait(100)

Вместо wait(100) поставь wait(500)

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-10 16:48:37 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Incorrect User wrote:
В строке
Code:
            waittime = uo.timer() + 100
            wait(100)

Вместо wait(100) поставь wait(500)

K sozheleniju on pishet vsjo tozhe samoe:
You put Golden shield in your pack
Who you will use the bandage on?
Targetting Cancelled
Unexpected Target info


Top
   
PostPosted: 2014-03-10 16:51:43 
Offline

Joined: 2014-02-11 18:24:55
Posts: 27
Vsjo ja razobralsa
Ja gde WAR mode vrubaetsa postavil wait 500 i vsjo rabotaet
SPS tebe ogromnoe


Top
   
PostPosted: 2014-03-10 16:57:11 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Code:
sub Heal()
   var clear, waittime, msg = "put bloody bandage|apply the bandages"
   repeat
      if uo.findtype("0x0E21", -1, "backpack") then
         clear = uo.getserial("finditem")
         repeat
            uo.deletejournal()
            uo.bandageself()
            waittime = uo.timer() + 100
            wait(100)
            uo.usetype("0x1B76")
            wait(100)
            repeat
               uo.warmode(0)
               wait(100)
            until uo.dead() or uo.injournal(msg) or uo.timer() > waittime
         until uo.dead() or uo.getx(clear) == 0
      else
         if uo.findtype("0x0E20", -1, "backpack") then
            uo.waittargetobject("0x4009FFAD")
            uo.usetype("0x0E20")
            wait(500)
         else
            uo.print("Закончились бинты")
            return
         end if
      end if
   until uo.dead()
end sub

_________________
CodeSweeper


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

All times are UTC+02:00


Who is online

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