Nmy wrote:
This needs testing whether the journal returns player serial or not, im not sure.
First of all show us the printout of [,showjournal 10] when the message appears
And
Code:
uo.print(UO.JournalSerial(UO.InJournal("DEAD: ")-1))
uo.deletejournal()
It detects the player, and resses, but it doesn't stop healing even when the person is full HP.
Edit:
Now I used this:
Code:
Sub ResGuild()
UO.Print("Guild Ress - ON")
repeat
UO.DeleteJournal()
wait(1000)
if UO.InJournal('DEAD: Ryza Lenke was killed in') then
repeat
UO.Exec('usetype 0x0E21')
UO.waittargetobject('0x0001F906')
uo.getstatus('0x0001F906')
if uo.gethp('laststatus') == 0 then
wait(500)
else
UO.Say(".gsay "+ uo.getname('laststatus') +" ressurected")
wait(1000)
endif
until UO.InJournal("Ryza Lenke")
endif
until false
end sub
Got this(first time I was next to the dead player, it ressed, but no .gsay. Second time I was far away. It didn't repeat itself) :