Initial commit
Initial commit [v9.7]
This commit is contained in:
23
_module/nss/cnv_attck_bainra.nss
Normal file
23
_module/nss/cnv_attck_bainra.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
effect eVFX;
|
||||
|
||||
// Get the PC who is in this conversation.
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
SetLocalString(oPC, "bnraxz1", "1");
|
||||
|
||||
// Spawn "avatarofbainra".
|
||||
eVFX = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
||||
oTarget = GetWaypointByTag("WP_SPn_bainrasavtr");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "avatarofbainra", GetLocation(oTarget));
|
||||
AssignCommand(oSpawn, DetermineCombatRound(oPC));
|
||||
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user