180 lines
6.5 KiB
Plaintext
180 lines
6.5 KiB
Plaintext
|
#include "x0_i0_partywide"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oSpawn;
|
||
|
location lTarget;
|
||
|
object oTarget;
|
||
|
int nInt;
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
// Give 5 experience (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 5);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite1");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite2");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite3");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite4");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite5");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite6");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite7");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite8");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite9");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Ashkalite10");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("Parris");
|
||
|
DestroyObject(oTarget, 2.0);
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite1_01");
|
||
|
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite2_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite3_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite4_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite5_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite6_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite7_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite8_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite9_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Ashkalite10_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_Parris_01");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ashkalite001", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//the VFX will be applied to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), oTarget));
|
||
|
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_POLYMORPH), GetLocation(oTarget)));
|
||
|
|
||
|
}
|
||
|
|