Author Topic: Quick question about corpses  (Read 1679 times)

0 Members and 1 Guest are viewing this topic.

Offline lob91Topic starter

  • Jr. Member
  • **
  • Posts: 25
  • Activity:
    0%
  • Reputation Power: 1
  • lob91 has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Quick question about corpses
« on: August 07, 2010, 10:43:00 PM »
0
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

Offline Taz Devil

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 1
  • Taz Devil has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Quick question about corpses
« Reply #1 on: August 12, 2010, 05:12:10 AM »
0
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.


Tags: