Initial commit
Initial commit [v9.7]
This commit is contained in:
41
_module/nss/cnv_dspl_lsrne.nss
Normal file
41
_module/nss/cnv_dspl_lsrne.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
#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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user