вот так

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
*Ex*
Posts: 3
Joined: 2007-02-13 07:31:08

вот так

Post by *Ex* »

sub laiter()
var hp
var mhp
var tmp
mytarg()
uo.warmode(1)
uo.attack('myTarget')
repeat
wait(1000)
hp=uo.GetHP('myTarget')
mhp=uo.GetMaxHP('myTarget')
tmp = hp / mhp * 100
uo.print('HP: ' + str(hp) + ' / MHP: ' + str(mhp) +' = ' +str(tmp))
If tmp < 15 then
UO.usetype(0x1F4A)
uo.waittargetobject('myTarget')
wait(1000)
repeat
uo.warmode(1)
uo.attack('myTarget')
end if
until uo.InJournal("STOP")
end sub
sub mytarg()
var i
uo.set("injectecho","1");
uo.deletejournal()
uo.AddObject("myTarget")
i=0
repeat
wait(100)
i=i+1
until uo.inJournal('Object updated: myTarget') or i>100
if i>100 then
uo.print("Please select target")
goto pex
end if
uo.print("There is "+uo.GetName("myTarget"))
uo.deletejournal()
pex:
end sub


виснет каждыйц раз как кинет лайт может можно попроще сделать?
Post Reply