//::///////////////////////////////////////////////
//:: FileName temp
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 10/20/02 9:05:52 PM
//:://////////////////////////////////////////////
#include "nw_i0_tool"

void main()
{
    // Give the speaker some XP and slaves disappear

    object oPC = GetPCSpeaker();
    RewardPartyXP(250, oPC);

    int nNext = 1;
    object oSlave = GetNearestObjectByTag("slave",oPC);

    while (GetIsObjectValid(oSlave))
    {
        if (GetDistanceBetween(oPC,oSlave) <= 7.0)
        {
            AssignCommand(oSlave,SetIsDestroyable(TRUE));
            DestroyObject(oSlave);
        }
        nNext = nNext + 1;
        oSlave = GetNearestObjectByTag("slave",oPC,nNext);
    }
}
