Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
21
_module/nss/anph_take_nuts.nss
Normal file
21
_module/nss/anph_take_nuts.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user