Хил с бандажков!! Помогите Одеть обратно Пушкарь и ЩИТ!

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Ehidna
Posts: 41
Joined: 2005-01-15 14:34:26
Contact:

Хил с бандажков!! Помогите Одеть обратно Пушкарь и ЩИТ!

Post by Ehidna »

Собственно проблемма в том что после хила бантами, он одевает обратно пушку но не одевает щит! Может, от того что между пушкой и щитом задержка? Если да то как её суды подставить? о_О Причин не пойму. Помогите разабраться.

Code: Select all

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
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

sub healsub()
VAR sword=uo.getserial("Rhand")
VAR shield=uo.getserial("LHand")
uo.bandageself()
uo.useobject(sword)
uo.useobject(shield)
end sub


Так непокатит? :roll:
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Re: Хил с бандажков!! Помогите Одеть обратно Пушкарь и ЩИТ!

Post by Kynep »

Ehidna wrote:Собственно проблемма в том что после хила бантами, он одевает обратно пушку но не одевает щит! Может, от того что между пушкой и щитом задержка? Если да то как её суды подставить? о_О Причин не пойму. Помогите разабраться.

Code: Select all

 wait(3000) 
 


Попробуй задержку побольше.
Ehidna
Posts: 41
Joined: 2005-01-15 14:34:26
Contact:

Post by Ehidna »

Mr Nmy wrote:

Code: Select all

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
Ehidna
Posts: 41
Joined: 2005-01-15 14:34:26
Contact:

Post by Ehidna »

Code: Select all

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
Ehidna
Posts: 41
Joined: 2005-01-15 14:34:26
Contact:

Post by Ehidna »

последняя версия теперь всё гуд

Code: Select all

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
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Ehidna wrote:последняя версия теперь всё гуд

Code: Select all

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: Select all

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.
Telegram: @tatikom
-Dark-
Posts: 7
Joined: 2008-02-10 01:51:23

Post by -Dark- »

Code: Select all

##############
##      Хилинг      ##
##############
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.
MacTepeo
Posts: 52
Joined: 2007-04-14 16:11:34
Location: Москоу
Contact:

Post by MacTepeo »

,setdressspeed 0
:)
и все будет одеваться :)
Post Reply