generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
41
_module/nss/guardianaking4.nss
Normal file
41
_module/nss/guardianaking4.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName guardianaking4
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 1/12/2004 6:41:25 PM
|
||||
//:://////////////////////////////////////////////
|
||||
#include "nw_i0_tool"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Give the speaker some gold
|
||||
//RewardPartyGP(2000, GetPCSpeaker());
|
||||
|
||||
// Give the speaker some XP
|
||||
//RewardPartyXP(1000, GetPCSpeaker());
|
||||
|
||||
// Give the speaker the items
|
||||
//CreateItemOnObject("nw_maarcl055", GetPCSpeaker(), 1);
|
||||
object oPartymember = GetFirstFactionMember(GetPCSpeaker());
|
||||
while (GetIsObjectValid(oPartymember))
|
||||
{
|
||||
if (GetArea(oPartymember) == GetArea(GetPCSpeaker()) && GetXP(oPartymember) < 120000)
|
||||
{
|
||||
GiveGoldToCreature(oPartymember, 2000);
|
||||
GiveXPToCreature(oPartymember, 1000);
|
||||
CreateItemOnObject("nw_maarcl055", oPartymember, 1);
|
||||
}
|
||||
oPartymember = GetNextFactionMember(GetPCSpeaker());
|
||||
}
|
||||
|
||||
|
||||
// Remove items from the player's inventory
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "RunefaustInvasionPlans");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
// Set the variables
|
||||
SetLocalInt(GetPCSpeaker(), "KingGuardiana", 200);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user