PWE_PRC8/_module/nss/s_itemacquired.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

26 lines
852 B
Plaintext

//::///////////////////////////////////////////////
//:: Name s_itemacquired
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This script is intended to be called by or incorporated into the
Module:OnAcquireItem event (script). It works in conjuction with
s_cleartrash by clearing the destruct time on items picked up by PC's
so they will not near-instantly be destroyed if dropped. Once dropped,
however, they will be marked for destruction by s_cleartrash.
*/
//:://////////////////////////////////////////////
//:: Created By: Scott Thorne (Thornex2@wans.net)
//:: Created On: July 27, 2002
//:://////////////////////////////////////////////
void main()
{
object oItem = GetModuleItemAcquired();
if (GetIsPC(GetItemPossessor(oItem))) {
DeleteLocalInt(oItem, "CT_DESTRUCT_TIME");
}
}