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

25 lines
797 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName take_coldstone
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: X1_IT_MSMLMISC01 = ColdStone
//:: 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, "X1_IT_MSMLMISC01")!= OBJECT_INVALID)
{
// Remove items from the player's inventory
oItemToTake = GetItemPossessedBy(oPC, "X1_IT_MSMLMISC01");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Identify PC as having paid
SetLocalInt(oPC, "nPaid", 1);
}
}