Lankhmar_PRC8/_module/nss/cnv_spn_avtrbnbs.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

24 lines
635 B
Plaintext

#include "nw_i0_generic"
void main()
{
object oTarget;
object oSpawn;
effect eVFX;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// 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));
// Give the speaker the items
CreateItemOnObject("bainrasymbol", GetPCSpeaker(), 1);
}