1
Scripting Chat / Corpse ID
« on: December 29, 2009, 03:52:45 AM »
I have a problem with opening corpses. In the past I have always used code similar to this:
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!
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!