Code:
sub Poison()
var bottles
uo.findtype("тип яда", -1, "ground", 3)
if uo.findcount() then
bottles = uo.getserial("finditem")
repeat
uo.useobject(bottles)
wait(1000)
if uo.dead() then
uo.warmode(1)
repeat
wait(100)
until not uo.dead()
end if
until uo.getx(bottles) == 0
uo.print("Закончился яд!")
end if
end sub
sub Forensic()
var friend = "ID друга", friendbody
repeat
repeat
wait(100)
until uo.gethp(friend) == 0
uo.findtype("0x2006", -1, "ground", 3)
if uo.findcount() then
friendbody = uo.getserial("finditem")
repeat
wait(5000)
until uo.getx(friendbody) == 0 or uo.skillval("Forensic Evaluation", 1) == 1000
uo.waittargetobject(friend)
uo.usetype("тип бинтов")
wait(1000)
end if
until uo.dead() or uo.skillval("Forensic Evaluation", 1) == 1000
uo.print("Forensic Evaluation - 100%!")
end sub