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

35 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName guardianabillyfi
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 12/8/2003 5:13:15 PM
//:://////////////////////////////////////////////
#include "nw_i0_tool"
void main()
{
// Give the speaker some XP
//RewardPartyXP(800, GetPCSpeaker());
object oPartymember = GetFirstFactionMember(GetPCSpeaker());
while (GetIsObjectValid(oPartymember))
{
if (GetArea(oPartymember) == GetArea(GetPCSpeaker()) && GetXP(oPartymember) < 120000)
{
GiveGoldToCreature(oPartymember, 1000);
GiveXPToCreature(oPartymember, 800);
}
oPartymember = GetNextFactionMember(GetPCSpeaker());
}
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "DogTag");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Set the variables
SetLocalInt(GetPCSpeaker(), "GuardianaBilly", 200);
}