ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: lob91 on August 07, 2010, 10:43:00 PM

Title: Quick question about corpses
Post by: lob91 on August 07, 2010, 10:43:00 PM
just wondering what the best way to tell if a monster is alive or dead? seems that they changed the way monsters die, and now my previous way of checking will not work. the corpse used to be a different ID, now they are the same? Thanks
Title: Re: Quick question about corpses
Post by: Taz Devil on August 12, 2010, 05:12:10 AM
hide and ignore all corpses on the ground then do a search for the monster and then a search for a corpse with the sam ID.

Code: [Select]
FindItem List_of_monsters_to_find G_10
Set %MonsterID #FindID

lookForCorpse:
FindItem YFM G_10
If #FindID = %MonsterID
 Set %MonsterDead #True
else
 Goto LookForCorpse


Something on the lines of this should do. Not tested as I am at work and don't have access to UO, but it looks about right.