//::///////////////////////////////////////////////
//:: FileName jhr_qstreward1
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 8/2/2002 5:44:18 PM
//:://////////////////////////////////////////////
#include "nw_i0_tool"

void main()
{
    // Give the speaker some XP
    RewardPartyXP(500, GetPCSpeaker());
    // ct_Citizen 75 xp bonus each
    int i;
    object oCitizen;
    for (i=1; i<7; ++i)
    {
        oCitizen = GetObjectByTag("JHR_CITIZEN" + IntToString(i));
        if (GetIsObjectValid(oCitizen) && (GetCurrentHitPoints(oCitizen) > 0))
        {
            RewardPartyXP(75, GetPCSpeaker());
            SendMessageToPC(GetPCSpeaker(), "You earn a 75 XP bonus for saving a villager!");
        }
    }
}
