42 lines
954 B
Plaintext
42 lines
954 B
Plaintext
|
|
||
|
#include "x0_i0_partywide"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oTarget;
|
||
|
int nInt;
|
||
|
object oSpawn;
|
||
|
location lTarget;
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
// Give 10 experience (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 10);
|
||
|
|
||
|
oTarget = GetObjectByTag("LadySirene");
|
||
|
|
||
|
//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) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_PULSE_WATER), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_PULSE_WATER), GetLocation(oTarget));
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_GPerch");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "hanley", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
AssignCommand(oTarget, ActionStartConversation(oPC, ""));
|
||
|
|
||
|
oTarget = GetObjectByTag("Brinnon");
|
||
|
DestroyObject(oTarget, 0.1);
|
||
|
|
||
|
}
|
||
|
|