Yoko

All sides of Injection
It is currently 2025-12-20 15:56:29

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2008-02-07 21:38:09 
Offline
User avatar

Joined: 2005-01-15 14:34:26
Posts: 41
Собственно проблемма в том что после хила бантами, он одевает обратно пушку но не одевает щит! Может, от того что между пушкой и щитом задержка? Если да то как её суды подставить? о_О Причин не пойму. Помогите разабраться.

Code:
sub Healing()       ;Хилинг 
      If UO.STR==UO.Life Then
      UO.Print("Life is full")
   Else
      UO.SetArm("1")
      UO.BandageSelf()
      wait(1000)
      UO.Arm("1")
      UO.UnSetArm()
   Endif
end sub
 

_________________
Very Old Player


Top
   
 Post subject:
PostPosted: 2008-02-07 22:18:55 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
http://yoko.netroof.net/help/index.php? ... dressspeed


Top
   
 Post subject:
PostPosted: 2008-02-07 22:40:56 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
sub healsub()
VAR sword=uo.getserial("Rhand")
VAR shield=uo.getserial("LHand")
uo.bandageself()
uo.useobject(sword)
uo.useobject(shield)
end sub


Так непокатит? :roll:

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
PostPosted: 2008-02-07 23:19:42 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Ehidna wrote:
Собственно проблемма в том что после хила бантами, он одевает обратно пушку но не одевает щит! Может, от того что между пушкой и щитом задержка? Если да то как её суды подставить? о_О Причин не пойму. Помогите разабраться.

Code:
 wait(3000) 
 


Попробуй задержку побольше.


Top
   
 Post subject:
PostPosted: 2008-02-08 09:28:31 
Offline
User avatar

Joined: 2005-01-15 14:34:26
Posts: 41
Mr Nmy wrote:
Code:
sub healsub()
VAR sword=uo.getserial("Rhand")
VAR shield=uo.getserial("LHand")
uo.bandageself()
uo.useobject(sword)
uo.useobject(shield)
end sub


Так непокатит? :roll:


Скидывает пушкарь и щит, лечится, а далше БОЛТ :shock:
Т.е при ПВП 100% труп :roll:

_________________
Very Old Player


Top
   
 Post subject:
PostPosted: 2008-02-08 10:22:32 
Offline
User avatar

Joined: 2005-01-15 14:34:26
Posts: 41
Code:
sub healsub()       ;Хилинг 
      If UO.STR==UO.Life Then
      UO.Print("Life is full")
   Else
      Var Sheld='0x1B76'
      UO.SetArm("1")
      UO.BandageSelf()
      wait(1000)
      UO.Arm("1")
      UO.UnSetArm()
      wait(1000)
      UO.Equipt('Lhand',Sheld)
               Endif
end sub


Вот такова мутанта я изобрёл. :twisted:
На лук не пройдёт, но для него есь отдельный скрипт, или этот маленько изменить.
З.Ы. Кто по грамотнее лишнее уберите. Если итог не изменится. :roll:

_________________
Very Old Player


Top
   
 Post subject:
PostPosted: 2008-02-09 22:41:55 
Offline
User avatar

Joined: 2005-01-15 14:34:26
Posts: 41
последняя версия теперь всё гуд

Code:
sub Healing()       ;Хилинг 
      If UO.STR==UO.Life Then
      UO.Print("Life is full")
   Else
      UO.BandageSelf()
      Endif
      wait(1000)
      UO.UseType('0x1402')
      UO.UseType('0x1B76')
      uo.waittargetlast()
end sub


_________________
Very Old Player


Top
   
 Post subject:
PostPosted: 2008-02-09 23:45:01 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Ehidna wrote:
последняя версия теперь всё гуд

Code:
sub Healing()       ;Хилинг 
      If UO.STR==UO.Life Then
      UO.Print("Life is full")
   Else
      UO.BandageSelf()
      Endif
      wait(1000)
      UO.UseType('0x1402')
      UO.UseType('0x1B76')
      uo.waittargetlast()
end sub


А на шардах, где хп не равно силе - не гут.

Приучайтесь писать правильно.

Code:
If uo.getHP() == uo.getMaxHP() Then

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-02-11 22:25:25 
Offline
User avatar

Joined: 2008-02-10 01:51:23
Posts: 7
Code:
##############
##      Хилинг      ##
##############
sub Healing()
var hp1,hp2
   if (uo.life < uo.str-10 or uo.poisoned()) and not uo.dead() then
      while (uo.life < uo.str or uo.poisoned()) and not uo.dead()
         uo.findtype('0x0E21','-1','2')
         if uo.findcount() then
            if uo.stamina < 85 then
               uo.findtype('0x0F0B','-1','2')
               if uo.findcount() then
                  uo.useobject('finditem')
               else
               endif
            endif
            uo.exec('warmode 0')
            hp1=uo.life
            uo.bandageself()
            uo.deletejournal()
            while not (uo.injournal('put bloody') or uo.injournal("barely help") or uo.injournal("mummy"))
               wait(50)
            wend
            if uo.injournal("barely") then
            endif
            if uo.injournal("bloody bandages") then
               hp2=uo.life - hp1
               if hp2>0 then
                  uo.print("Healed "+str(hp2)+" HP")
               endif
               hp1=0
               hp2=0
            endif
         else
            uo.exec('terminate all')
         endif
          wend
          arming()
          att()
     else
          uo.exec('terminate all')
     endif
EndIf
     ;arming()
     ;att()
end sub

sub arming()
uo.usetype('0x1b76')
Wait(100)
uo.usetype('0x13fe')
end sub

:twisted:

_________________
(\_/)
(O.o)
(> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination.


Top
   
 Post subject:
PostPosted: 2008-02-29 01:17:39 
Offline

Joined: 2007-04-14 16:11:34
Posts: 52
Location: Москоу
,setdressspeed 0
:)
и все будет одеваться :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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