48 lines
887 B
Plaintext
48 lines
887 B
Plaintext
#include "x0_i0_partywide"
|
|
#include "nw_i0_tool"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
location lTarget;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 10 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 10);
|
|
|
|
oTarget = GetWaypointByTag("WP_OAsh_Temple");
|
|
|
|
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("temptoash");
|
|
|
|
AssignCommand(oTarget, ActionCloseDoor(oTarget));
|
|
|
|
SetLocked(oTarget, TRUE);
|
|
|
|
RewardPartyXP(1000, oPC, FALSE);
|
|
|
|
CreateItemOnObject("purplegem", oPC);
|
|
|
|
CreateItemOnObject("sociallevel", oPC);
|
|
|
|
FloatingTextStringOnCreature("Your Social Level Has Increased by 1", oPC);
|
|
|
|
}
|
|
|