Files
Anphillia_PRC8/_module/nss/anph_take_nuts.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

22 lines
426 B
Plaintext

void main()
{
object oItem;
object oPC = GetPCSpeaker();
string sTag;
oItem = GetFirstItemInInventory (oPC);
while(GetIsObjectValid(oItem))
{
sTag = GetTag (oItem);
if (sTag == "magicnuts")
{
DestroyObject (oItem);
GiveGoldToCreature (oPC, 250);
GiveXPToCreature (oPC, 250);
}
oItem = GetNextItemInInventory (oPC);
}
}