Rune_PRC8/_module/nss/ericendoracomple.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

34 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName ericendoracomple
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 1/31/2004 2:01:29 AM
//:://////////////////////////////////////////////
#include "nw_i0_tool"
void main()
{
// Give the speaker some gold
// Give the speaker some XP
object oPartymember = GetFirstFactionMember(GetPCSpeaker());
while (GetIsObjectValid(oPartymember))
{
if (GetArea(oPartymember) == GetArea(GetPCSpeaker()))
{
GiveGoldToCreature(oPartymember, 10000);
GiveXPToCreature(oPartymember, 1000);
}
oPartymember = GetNextFactionMember(GetPCSpeaker());
}
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "TearDrop");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Set the variables
SetLocalInt(GetPCSpeaker(), "EndoraEric", 200);
}