44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
|
|
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
int nInt;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
SetLocalString(oPC, "krlqfnl", "1");
|
|
|
|
// Give 10 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 10);
|
|
|
|
oTarget = GetObjectByTag("Karl");
|
|
|
|
//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_BREACH), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), GetLocation(oTarget));
|
|
|
|
DestroyObject(oTarget, 5.0);
|
|
|
|
oTarget = GetObjectByTag("ZooManticore");
|
|
|
|
//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_BREACH), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), GetLocation(oTarget));
|
|
|
|
DestroyObject(oTarget, 5.0);
|
|
|
|
}
|
|
|