ЗЫ Поиском пользовался, ненашел.

Moderators: Murderator+, Murderator
Code: Select all
sub main()
sub hiling1()
uo.exec('setarm 10')
hilstart:
uo.exec('arm 10')
wait(4000)
uo.exec('disarm')
wait(300)
uo.exec('bandageself')
wait(300)
uo.useskill('Spirit Speak')
wait(100)
uo.exec('arm 10')
wait(4000)
uo.exec('disarm')
wait(300)
uo.exec('bandageself')
wait(300)
uo.useskill('Spirit Speak')
wait(100)
uo.exec('arm 10')
wait(4000)
uo.exec('disarm')
wait(300)
uo.exec('bandageself')
wait(300)
uo.useskill('Spirit Speak')
wait(100)
uo.exec('arm 10')
wait(4000)
#4
uo.exec('disarm')
wait(500)
uo.exec('bandageself')
wait(500)
uo.useskill('Spirit Speak')
wait(100)
uo.exec('arm 10')
wait(4000)
#5
uo.exec('disarm')
wait(500)
uo.exec('bandageself')
wait(500)
uo.useskill('Spirit Speak')
wait(100)
uo.exec('arm 10')
wait(100)
uo.exec('arm 10')
#iieea aeioia n ?cii nie?eaa.
uo.usetype('0x0e20')
uo.waittargettype('0x1008')
wait(200)
uo.useskill('Spirit Speak')
wait(4000)
goto hilstart
end sub
## Run Away Recall
sub dom()
if UO.Count("0x1f4c") > 0 then
UO.Exec("usetype 0x1f4c")
UO.Exec("waittargettype 0x1F14")
VAR recallscrlcnt=UO.Count("0x1f4c") - 1
UO.PRINT(""+STR(recallscrlcnt)+" Recall Scrolls left")
else
UO.Exec("cast 'Recall'")
UO.Exec("waittargettype 0x1F14")
else
f=1
UO.Print("Warning!!! No Recall Scrolls, Using Regs!")
end if
end sub [code][/code]
Code: Select all
sub Train_Healing()
var i,j,tekstr
uo.undress()
wait(100)
repeat
UO.FindType(0x0E21,"-1","my")
if UO.FindCount() then
tekstr=uo.str
wait(100)
cheklag()
uo.usetype(0x1DB9); Cursed Hat
uo.useskill ("Spirit Speak")
wait(2000)
j=0
repeat
wait(10)
j=j+1
until (uo.life <= tekstr-1) or (j>1000)
cheklag()
uo.undress()
wait(100)
cheklag()
uo.exec('bandageself')
Wait(2000)
uo.useskill('Meditation')
else
UO.FindType(0x0E20,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargettype(0x1008) # wash basin
uo.UseType(0x0E20) #bloody bandages
else
cheklag()
uo.print("You haven't bandages")
uo.exec("terminate Train_Healing")
Play_Sound(1)
endif
endif
until uo.dead()
end sub
sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub
Спасибо огромное, а почему нелучший?Question wrote:самый простой вариант но не лучшийCode: Select all
sub Train_Healing()
var i,j,tekstr
uo.undress()
wait(100)
repeat
UO.FindType(0x0E21,"-1","my")
if UO.FindCount() then
tekstr=uo.str
wait(100)
cheklag()
uo.usetype(0x1DB9); Cursed Hat
uo.useskill ("Spirit Speak")
wait(2000)
j=0
repeat
wait(10)
j=j+1
until (uo.life <= tekstr-1) or (j>1000)
cheklag()
uo.undress()
wait(100)
cheklag()
uo.exec('bandageself')
Wait(2000)
uo.useskill('Meditation')
else
UO.FindType(0x0E20,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargettype(0x1008) # wash basin
uo.UseType(0x0E20) #bloody bandages
else
cheklag()
uo.print("You haven't bandages")
uo.exec("terminate Train_Healing")
Play_Sound(1)
endif
endif
until uo.dead()
end sub
sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub
dark wrote:Спасибо огромное, а почему нелучший?Question wrote:самый простой вариант но не лучшийCode: Select all
sub Train_Healing()
var i,j,tekstr
uo.undress()
wait(100)
repeat
UO.FindType(0x0E21,"-1","my")
if UO.FindCount() then
tekstr=uo.str
wait(100)
cheklag()
uo.usetype(0x1DB9); Cursed Hat
uo.useskill ("Spirit Speak")
wait(2000)
j=0
repeat
wait(10)
j=j+1
until (uo.life <= tekstr-1) or (j>1000)
cheklag()
uo.undress()
wait(100)
cheklag()
uo.exec('bandageself')
Wait(2000)
uo.useskill('Meditation')
else
UO.FindType(0x0E20,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargettype(0x1008) # wash basin
uo.UseType(0x0E20) #bloody bandages
else
cheklag()
uo.print("You haven't bandages")
uo.exec("terminate Train_Healing")
Play_Sound(1)
endif
endif
until uo.dead()
end sub
sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub
Спасиюо, щас опробую, если не выйдет, выложу, может подправят)Question wrote:dark wrote:Спасибо огромное, а почему нелучший?Question wrote:самый простой вариант но не лучшийCode: Select all
sub Train_Healing()
var i,j,tekstr
uo.undress()
wait(100)
repeat
UO.FindType(0x0E21,"-1","my")
if UO.FindCount() then
tekstr=uo.str
wait(100)
cheklag()
uo.usetype(0x1DB9); Cursed Hat
uo.useskill ("Spirit Speak")
wait(2000)
j=0
repeat
wait(10)
j=j+1
until (uo.life <= tekstr-1) or (j>1000)
cheklag()
uo.undress()
wait(100)
cheklag()
uo.exec('bandageself')
Wait(2000)
uo.useskill('Meditation')
else
UO.FindType(0x0E20,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargettype(0x1008) # wash basin
uo.UseType(0x0E20) #bloody bandages
else
cheklag()
uo.print("You haven't bandages")
uo.exec("terminate Train_Healing")
Play_Sound(1)
endif
endif
until uo.dead()
end sub
sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub
да я так сказал малоли плохо исправил
Code: Select all
sub Train_Healing()
var i,j,tekstr
uo.undress()
wait(100)
repeat
UO.FindType(0x0E21,"-1","my")
if UO.FindCount() then
tekstr=uo.str
wait(100)
cheklag()
uo.usetype(0x1DB9); Cursed Hat
uo.useskill ("Spirit Speak")
wait(2000)
j=0
repeat
wait(10)
j=j+1
until (uo.life <= tekstr-1) or (j>1000)
cheklag()
uo.undress()
wait(100)
cheklag()
uo.exec('bandageself')
wait(500)
uo.useskill('Meditation')
Wait(2000)
else
UO.FindType(0x0E20,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargettype(0x1008) # wash basin
uo.UseType(0x0E20) #bloody bandages
else
cheklag()
uo.print("You haven't bandages")
uo.exec("terminate Train_Healing")
Play_Sound(1)
endif
endif
until uo.dead()
end sub
sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub
Спасибо большое, вроде работает)Question wrote:так лучше должно бытьCode: Select all
sub Train_Healing()
var i,j,tekstr
uo.undress()
wait(100)
repeat
UO.FindType(0x0E21,"-1","my")
if UO.FindCount() then
tekstr=uo.str
wait(100)
cheklag()
uo.usetype(0x1DB9); Cursed Hat
uo.useskill ("Spirit Speak")
wait(2000)
j=0
repeat
wait(10)
j=j+1
until (uo.life <= tekstr-1) or (j>1000)
cheklag()
uo.undress()
wait(100)
cheklag()
uo.exec('bandageself')
wait(500)
uo.useskill('Meditation')
Wait(2000)
else
UO.FindType(0x0E20,"-1","my")
if UO.FindCount() then
cheklag()
uo.waittargettype(0x1008) # wash basin
uo.UseType(0x0E20) #bloody bandages
else
cheklag()
uo.print("You haven't bandages")
uo.exec("terminate Train_Healing")
Play_Sound(1)
endif
endif
until uo.dead()
end sub
sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub