WoR_PRC8/_module/nss/take_bodaktooth.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

25 lines
800 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName take_bodaktooth
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: NW_IT_MSMLMISC06 = Bodak Tooth
//:: Created By: Script Wizard
//:: Created On: 9/01/2004 12:26:05 AM
//:://////////////////////////////////////////////
void main()
{
object oPC = GetPCSpeaker();
object oItemToTake;
/// check if item is present in inventory
if (GetItemPossessedBy(oPC, "NW_IT_MSMLMISC06")!= OBJECT_INVALID)
{
// Remove items from the player's inventory
oItemToTake = GetItemPossessedBy(oPC, "NW_IT_MSMLMISC06");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Identify PC as having paid
SetLocalInt(oPC, "nPaid", 1);
}
}