Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
21
_module/nss/anph_take_rothe.nss
Normal file
21
_module/nss/anph_take_rothe.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
object oItem;
|
||||
object oPC = GetPCSpeaker();
|
||||
string sTag;
|
||||
int iReward = 25 + (GetAbilityModifier(ABILITY_CHARISMA, oPC) * 3);
|
||||
|
||||
oItem = GetFirstItemInInventory (oPC);
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
sTag = GetTag (oItem);
|
||||
if (sTag == "RotheMeat")
|
||||
{
|
||||
DestroyObject (oItem);
|
||||
GiveGoldToCreature (oPC, iReward);
|
||||
GiveXPToCreature (oPC, 5);
|
||||
}
|
||||
oItem = GetNextItemInInventory (oPC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user