26 lines
790 B
Plaintext
26 lines
790 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastPerceived();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (!GetLastPerceptionSeen()) return;
|
||
|
object oTarget;
|
||
|
oTarget = GetObjectByTag("kingrall001");
|
||
|
|
||
|
AssignCommand(GetObjectByTag("kingrall001"), ActionSpeakString("The castle walls have been breached, we must send a call for help to the Kirmar, it is our only hope. Kryx's plan has succeeded, how could we be so blind? Send this message at once."));
|
||
|
|
||
|
int nInt;
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_GREATER), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_GREATER), GetLocation(oTarget));
|
||
|
|
||
|
oTarget = GetObjectByTag("kingrall001");
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
}
|
||
|
|