39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName oldenknuckleown3
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 1/15/2004 4:07:56 PM
|
|
//:://////////////////////////////////////////////
|
|
#include "nw_i0_tool"
|
|
|
|
void main()
|
|
{
|
|
if (!GetIsPC(GetPCSpeaker()))
|
|
return;
|
|
|
|
// Give the speaker some gold
|
|
//RewardPartyGP(500, GetPCSpeaker());
|
|
|
|
// Give the speaker some XP
|
|
//RewardPartyXP(900, GetPCSpeaker());
|
|
object oPartymember = GetFirstFactionMember(GetPCSpeaker());
|
|
while (GetIsObjectValid(oPartymember))
|
|
{
|
|
if (GetArea(oPartymember) == GetArea(GetPCSpeaker()) && GetXP(oPartymember) < 55000)
|
|
{
|
|
GiveGoldToCreature(oPartymember, 500);
|
|
GiveXPToCreature(oPartymember, 900);
|
|
}
|
|
oPartymember = GetNextFactionMember(GetPCSpeaker());
|
|
}
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "HugeRatTooth");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
// Set the variables
|
|
SetLocalInt(GetPCSpeaker(), "GreenDragonTavern", 200);
|
|
|
|
}
|