Incorrect User wrote:
Инжект на абис .7z Крашит какой скрипт? Лут? Мой или старый?
запустилась после копирования её в папку предыдуще инжи. чото прям чудеса какието
Лут вроде уже не крашит. но ситуация не улучшилась..
качаю сейчас попробую. если будет крашить . есть идея перезапуска клиента после краша
вот текущий скрипт
Code:
sub Loot()
var notake = "0x203B 0x203C 0x203D 0x203E 0x203F 0x204A 0x204B 0x204C 0x204D 0x2040 0x2041 0x2042 0x2043 0x2044 0x2045 0x2046 0x2047 0x2048 0x2049"
UO.UseObject('lastcorpse')
if UO.GetQuantity('lastcorpse') then
UO.SetArm('temp')
UO.WaitTargetObject('lastcorpse')
UO.UseType('0x13F6')
wait(150)
UO.Arm('temp')
wait(150)
endif
repeat
uo.findtype("-1", "-1", "lastcorpse")
if uo.findcount() and not In_string(uo.getgraphic("finditem"), notake) then
uo.moveitem("finditem", "0", "0x418ADB2D")
wait(500)
if uo.getgraphic("finditem") == "0x1078" then
uo.waittargetobject("finditem")
uo.usetype("0x0F9E")
wait(150)
end if
end if
if uo.findcount() and In_string(uo.getgraphic("finditem"), notake) then
uo.ignore("finditem")
wait(150)
end if
until not uo.findcount()
uo.exec('exec heal')
end sub
sub In_string(substr, string)
var str, i
for i = 0 to len(string) - 1
str = mid(string, i, len(substr))
if str == substr then
return 1
end if
next
return 0
end sub
sub heal()
if uo.life < 90 then
repeat
uo.bandageself()
wait(500)
UO.UseType('0x1406')
UO.UseType('0x1B76')
UO.DeleteJournal()
wait(500)
repeat
wait(500)
until UO.InJournal("barely help") or UO.InJournal("put the bloody")
wait(500)
until uo.life >= 98
wait(500)
end if
wait(500)
uo.exec('exec main')
end sub
sub main()
VAR MaxVes=600
VAR n=1, z=0, f=0
var animal=0x0015
uo.ignorereset()
Repeat
uo.Set('finddistance', n)
uo.FindType(animal, -1, 'ground')
f=f+1
if f==12 then
walker(6100,3060,1)
end if
if f>=10 then
uo.useskill('Animal Lore','self')
wait(1000)
end if
if uo.FindCount() then
f=0
uo.resend()
n=1
uo.attack('finditem')
z=1
repeat
if uo.GetDistance('finditem') > 1 then
walker(uo.GetX('finditem'),uo.GetY('finditem'),1)
else
wait(500)
if uo.life < 80 then
if uo.life < 40 then
uo.exec('exec walk')
end if
repeat
uo.bandageself()
wait(500)
UO.UseType('0x1406')
UO.UseType('0x1B76')
wait(500)
UO.DeleteJournal("barely help")
UO.DeleteJournal("put the bloody")
repeat
wait(500)
until UO.InJournal("barely help") or UO.InJournal("put the bloody")
until uo.life >= 90
uo.attack('finditem')
end if
if uo.armor<=81 then
uo.cast('Protection','self')
wait(3000)
uo.attack('finditem')
endif
end if
until uo.dead() or uo.GetX('finditem')==0
wait(500)
uo.exec('exec Loot')
uo.exec('terminate main')
else
n=n+1
if n>9 then
n=1
endif
end if
if z==1 then
z=0
Loot()
endif
Until uo.Dead() || UO.Weight > MaxVes
end sub
Sub walk()
walker(6100,3060,1)
endsub