36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
/////////////////////////////////////////
|
|
//:: 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
|
|
// Give the speaker some XP
|
|
|
|
object oPartymember = GetFirstFactionMember(GetPCSpeaker());
|
|
while (GetIsObjectValid(oPartymember))
|
|
{
|
|
if (GetArea(oPartymember) == GetArea(GetPCSpeaker()) && GetXP(oPartymember) < 210000)
|
|
{
|
|
GiveGoldToCreature(oPartymember, 1500);
|
|
GiveXPToCreature(oPartymember, 2000);
|
|
}
|
|
oPartymember = GetNextFactionMember(GetPCSpeaker());
|
|
}
|
|
|
|
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "BanditLeaderHeart");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
// Set the variables
|
|
SetLocalInt(GetPCSpeaker(), "nBanditQuestStatus", 200);
|
|
|
|
}
|