Author Topic: Corpse ID  (Read 1776 times)

0 Members and 1 Guest are viewing this topic.

Offline captainsparrow1882Topic starter

  • Jr. Member
  • **
  • Posts: 26
  • Activity:
    0%
  • Reputation Power: 0
  • captainsparrow1882 has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Corpse ID
« on: December 29, 2009, 03:52:45 AM »
0
I have a problem with opening corpses. In the past I have always used code similar to this:

Code: [Select]
finditem YFM G_2
if #FindCnt > 0
{
  set %CorpseID #FindID
  set #LObjectID %CorpseID
  repeat
  {
    event macro 17 0
    wait 10
  }
  until #ContID = %CorpseID
  ...
}

Nowadays we seem to have instanced corpses only which, in the beginning, have a different #ContID.
Only after the 2 minutes, when the corpse becomes lootable by everyone, the ID changes to %CorpseID.

How do you usually deal with this? Do you just check for #ContType and #ContSize or do you check if the #ContID is in close proximity to the #%CorpseID?

Thanks for your help in advance!

Offline Petkiller

  • Full Member
  • ***
  • Posts: 112
  • Activity:
    0%
  • Reputation Power: 0
  • Petkiller has no influence.
  • Respect: +7
  • Referrals: 2
    • View Profile
Re: Corpse ID
« Reply #1 on: December 29, 2009, 05:29:51 AM »
0
Here is what I am using in simple looting script:
finditem %corpseid G_2
if #findid = X
      return
wait 40
      set %corpse #findid
      set #lobjectid %corpse
      event macro 17 0;(open the corpse)
      wait 40
set %corpseContID #contid
finditem POF C_ , %corpseContID ;%corpse
      set %gold #findid
      wait 10
      exevent drag %gold #findstack
       wait 10
      exevent dropc #backpackid
ignoreItem %corpse 1
return

Tags: