I dont know if it will fire with other stacked items, I think not because they often are valid Objects.
so far No fire with other items, it works only when I pick up gold piece and it fires because the object item is invalid and stack size function:
if(GetModuleItemAcquired() == OBJECT_INVALID && GetModuleItemAcquiredStackSize() > 0)
{
//::----------------------------------------------------------------------------
//::---------------------------[ aquire gold ]----------------------------------
//::----------------------------------------------------------------------------
}
works firing my aquire gold script.
I thought about a simalr approuch for unaquire gold but I need a var that keeps track of players gold and any change of it.
ie: if( curnt_gold_amount < db_Gold amount ){ runs unaquire gold script}
I thought about doing this on heart beat but that could get laggy
Note: the shadow function will only fire on aquire. not just any change in your gold. ie if you drop etc.
Hence the need for a script on heart beat to check pc gold for loss
Modifié par Greyfort, 15 mars 2011 - 01:49 .