35 lines
836 B
Plaintext
35 lines
836 B
Plaintext
|
|
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
int nInt;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 5 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 5);
|
|
|
|
oTarget = GetObjectByTag("StrangeOldMan");
|
|
|
|
//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_FNF_SOUND_BURST), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SOUND_BURST), GetLocation(oTarget));
|
|
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
AddJournalQuestEntry("Hresstan's Comrades", 5, oPC, TRUE, FALSE);
|
|
|
|
// Destroy an object (not fully effective until this script ends).
|
|
DelayCommand(1.0, DestroyObject(GetObjectByTag("pitnote")));
|
|
|
|
}
|
|
|