Problem with get target
Posted: 2004-11-04 05:43:10
var check = 0
repeat
Uo.Press(80)#target next
hp = uo.GetHP("laststatus")
IF hp <= 0 THEN
UO.DeleteJournal()
IF UO.GetDistance("laststatus") <=1 THEN
serial = UO.GetSerial("laststatus")
#UO.Say(",set lasttarget " + serial)
#UO.Target("laststatus")
repeat
uo.waittargetlast()
uo.exec ("usetype bandage")
wait(4000)
until UO.InJournal("cliloc# 0xADD7")
check = 1
END IF
END IF
UO.DeleteJournal()
wait(100)
Until check > 0
i made this script that automatic ress ghost's player that are near my pg (max 1 tile of distance), but i have a problem with targeting..
infact remain always the last manual target i used.. i tried UO.Say(",set lasttarget " + serial) and UO.Target("laststatus") but it doesn't seem to work. any help?
thanks
repeat
Uo.Press(80)#target next
hp = uo.GetHP("laststatus")
IF hp <= 0 THEN
UO.DeleteJournal()
IF UO.GetDistance("laststatus") <=1 THEN
serial = UO.GetSerial("laststatus")
#UO.Say(",set lasttarget " + serial)
#UO.Target("laststatus")
repeat
uo.waittargetlast()
uo.exec ("usetype bandage")
wait(4000)
until UO.InJournal("cliloc# 0xADD7")
check = 1
END IF
END IF
UO.DeleteJournal()
wait(100)
Until check > 0
i made this script that automatic ress ghost's player that are near my pg (max 1 tile of distance), but i have a problem with targeting..
infact remain always the last manual target i used.. i tried UO.Say(",set lasttarget " + serial) and UO.Target("laststatus") but it doesn't seem to work. any help?
thanks