Page 1 of 1

Хилинг + СП

Posted: 2009-08-29 16:34:21
by Crach!
хороший скрипт ,писал сам)) если спирит спик врублен то 20 хилов на 4 спирита =))а если нет то непрерывно хилиться,имееться реконектор!

Code: Select all

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 
ошибки и т.д. ПРОШУ ПИШИТЕ!
а так же замечания и пожелания)

Posted: 2009-08-29 17:27:54
by Nmy
для сравнения мой скриптик. Хилинг кстати вчера до гм прокачал ура :lol:

Code: Select all

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