OnUnaquireItem

Répondre
Partager Rechercher
Ce serait pas ca ?

Code PHP:

GetModuleItemLostBy()
Get the creature that lost the item on an OnUnAcquiredItem event.

object GetModuleItemLostBy();
Description
Returns the object that dropped an item triggering the OnUnAcquiredItem event
On error this function will return OBJECT_INVALIDthis should not be possible as the event is triggered by an item dropbut if you trigger the event manually then be aware of this error.




Remarks
We know that the OnUnacquireItem fires 
for objects destroyed by 
DestroyObject
rightWellthe object returned by this function is not 
OBJECT_INVALID in this 
case, but it is also not an existing object so any 
usage of it does not 
function correctlyInstead of checking for 
OBJECT_INVALIDthe users of this function should always use 
GetIsObjectValidwhich returns FALSE for the case mentioned above

Enfin, par hasard ?
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés