LoD_PRC8/_module/nss/m_onacquire.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

22 lines
486 B
Plaintext

void main()
{
object ItemAcquired = GetModuleItemAcquired();
object ItemPossessor = GetModuleItemAcquiredBy();
// Elvin 05-Jan-2005
// If possessor is not a PC, then exit the script.
if(!GetIsPC(ItemPossessor))
{
return;
}
if (GetStolenFlag(ItemAcquired) == TRUE)
{
SetDroppableFlag(ItemAcquired,TRUE);
if (GetIsPC(ItemPossessor))
{
AssignCommand(ItemPossessor, ClearAllActions(TRUE));
}
}
}