WoR_PRC8/_module/nss/take_bodaktooth.nss

25 lines
800 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
//::///////////////////////////////////////////////
//:: 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);
}
}