Yoko

All sides of Injection
It is currently 2025-10-16 21:27:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Хилинг + СП
PostPosted: 2009-08-29 16:34:21 
Offline

Joined: 2009-08-04 14:16:41
Posts: 30
Location: SPB
хороший скрипт ,писал сам)) если спирит спик врублен то 20 хилов на 4 спирита =))а если нет то непрерывно хилиться,имееться реконектор!

Code:
sub Train_Healing() 
   uo.print('!!Где курса?!! ')
uo.exec('addobject cu')
while uo.targeting()
wait(100)
wend
var m,i,o,h
h = uo.str - 6
o = 0
m = 0
i = 0
uo.print('напишите 1 если хотите качать спирит спик,напишите 0 если нет!!')
uo.deletejournal()
while m == 0
if uo.injournal('1') then
m = 1
endif
if uo.injournal('0') then
m = -1
endif
wait(100)
wend


uo.findtype('0x0E21')
while uo.Findcount()>0
wait(200)
if m > 0 then
uo.useskill('Spirit Speak')
uo.deletejournal()
wait(5000)
while uo.injournal('You fail your') and not o == 5
o = o + 1
uo.useskill('Spirit Speak')
uo.deletejournal()
wait(5000)
wend

endif
      while not i == 20
            UO.FindType('0x0E20','-1','my')
      if UO.FindCount()>0 then
      UO.FindType('0x1008','-1','my')
               uo.waittargetobject('finditem')   ;wash basin
         wait(700)
         UO.FindType('0x0E20','-1','my')
           uo.Useobject('finditem')  ;bloody bandages
           wait(400)
      endif
      i = i+1
      uo.setdressspeed('500')
      uo.undress()
      uo.useobject('cu')
      wait(2000)
      uo.undress()
      wait(500)
      uo.bandageself()
      wait(500)
      uo.useobject('cu')
      wait(2000)
      uo.findtype('0x0E21')
      wend
      i = 0
      o = 0
wend
end sub
sub Reconnector()
var ReconnectTime, RFlag
ReconnectTime = '0'
RFlag = 1
Repeat
While (UO.ObjAtLayer('Bpack') == '')
if RFlag Then
ReconnectTime = MakeTime()
RFlag = 0
endif
Wait(20000) # WorldSave Protection
UO.Say('')
Wait(3000)
UO.Say('')
Wait(3000)
UO.Say('')
Wait(3000)
UO.LDblClick(357,164)
UO.LClick(616,459)
Wait(3000)
WEnd
Wait(3000)
if (RFlag == 0) and (ReconnectTime <> '0') Then
UO.Exec('terminate main')
wait(1000)
UO.Exec('exec main')
wait(1000)
UO.TextOpen()
UO.TextPrint('Disconnected & Reconnected @ '+ReconnectTime)
RFlag = 1
ReconnectTime = '0'
endif
Until false
end sub

sub MakeTime()
VAR D, T, Ret, i
Ret = STR(UO.Time())
T = ""
For i = 0 To Len(Ret)
T = Ret[Len(Ret)-i] + T
If (I == 2) OR (I == 4) Then
T = ":" + T
EndIf
Next
Ret = STR(UO.Date())
D = ""
For i = 0 To Len(Ret)
D = Ret[Len(Ret)-i] + D
If (I == 2) OR (I == 4) Then
D = "." + D
EndIf
Next
Ret = T + " @ " + D
RETURN Ret
end sub


ошибки и т.д. ПРОШУ ПИШИТЕ!
а так же замечания и пожелания)


Top
   
 Post subject:
PostPosted: 2009-08-29 17:27:54 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
для сравнения мой скриптик. Хилинг кстати вчера до гм прокачал ура :lol:

Code:
var str
sub main()
   uo.disarm()
   wait(1000)
   str=uo.str
   var hammer='0x4045F00A'
   uo.deletejournal()
   uo.exec('exec alert')
   while 1
      ws()
      uo.equip('Rhand',hammer)
      life()
      uo.bandageself()
      wait(3500)
      if uo.count('0x0E20')>20 then
         uo.waittargetobject('^0x1008')
         uo.useobject('^0x0E20')
         wait(500)
      endif
   wend
end sub


Sub life()
   var n
   for n=0 to 20
      if uo.life<str then
         return
      else
         wait(500)
      endif
      ws()
   next
endsub


Sub ws()
   if uo.injournal('World is saving now...') then
      deletejournal('World is saving now...')
      wait(70000)
   endif
endsub


Sub DeleteJournal(string1)
   VAR nom=UO.InJournal(string1)
   If nom>0 Then
      UO.SetJournalLine(Nom-1,'-1')
      DeleteJournal(string1)
   Endif
endsub


Sub alert()
   while 1
      wait(500)
      if uo.dead() then
         uo.playwav("C:\Program Files\Dragon World\Ultima Online\music\FlyinOff.wav")
         wait(10000)
      endif
   wend
end sub

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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