generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
34
_module/nss/guardianabillyfi.nss
Normal file
34
_module/nss/guardianabillyfi.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user