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

20 lines
459 B
Plaintext

void main()
{
object oItem;
object oPC = GetPCSpeaker();
string sTag;
int iReward = 20 + (GetAbilityModifier(ABILITY_CHARISMA, oPC) * 3);
oItem = GetFirstItemInInventory (oPC);
while(GetIsObjectValid(oItem))
{
sTag = GetTag (oItem);
if (sTag == "crabshell")
{
DestroyObject (oItem);
GiveGoldToCreature (oPC, iReward);
}
oItem = GetNextItemInInventory (oPC);
}
}