Initial commit
Initial commit [v9.7]
This commit is contained in:
45
_module/nss/cnv_tport_enfkil.nss
Normal file
45
_module/nss/cnv_tport_enfkil.nss
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
location lTarget;
|
||||
object oSpawn;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 5);
|
||||
|
||||
FadeToBlack(oPC, FADE_SPEED_SLOW);
|
||||
|
||||
oTarget = GetWaypointByTag("WP_Enf_kill");
|
||||
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 = GetWaypointByTag("WP_Enf_kill");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "enfreel", lTarget);
|
||||
oTarget = oSpawn;
|
||||
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_Enf_kill");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "kayven1", lTarget);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user