37 lines
618 B
Plaintext
37 lines
618 B
Plaintext
|
|
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
location lTarget;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 5 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 5);
|
|
|
|
oTarget = GetWaypointByTag("WP_CCrow");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
|
|
|
oTarget=GetFirstFactionMember(oPC, FALSE);
|
|
|
|
while (GetIsObjectValid(oTarget))
|
|
{
|
|
AssignCommand(oTarget, ClearAllActions());
|
|
|
|
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
|
|
oTarget=GetNextFactionMember(oPC, FALSE);
|
|
}
|
|
|
|
oTarget = GetObjectByTag("Jerril2b");
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
}
|
|
|