#include "nw_i0_2q4luskan" /* Script generated by Lilac Soul's NWN Script Generator, v. 2.0 For download info, please visit: http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */ // Modified 18/6 05 Seeker, Alangara void turnoffLights() { object oTarget; oTarget = GetObjectByTag("eastlight6"); DestroyObject(oTarget, 0.0); oTarget = GetObjectByTag("eastlight3"); DestroyObject(oTarget, 0.0); oTarget = GetObjectByTag("eastlight4"); DestroyObject(oTarget, 0.0); oTarget = GetObjectByTag("eastlight5"); DestroyObject(oTarget, 0.0); } void summonCompany() { object oTarget; location lTarget; oTarget = GetWaypointByTag("east_monster1"); lTarget = GetLocation(oTarget); CreateObjectVoid(OBJECT_TYPE_CREATURE, "towerbeast", lTarget); oTarget = GetWaypointByTag("east_monster2"); lTarget = GetLocation(oTarget); CreateObjectVoid(OBJECT_TYPE_CREATURE, "towerbeast", lTarget); oTarget = GetWaypointByTag("east_monster3"); lTarget = GetLocation(oTarget); CreateObjectVoid(OBJECT_TYPE_CREATURE, "towerbeast", lTarget); oTarget = GetWaypointByTag("east_monster4"); lTarget = GetLocation(oTarget); CreateObjectVoid(OBJECT_TYPE_CREATURE, "towerbeast2", lTarget); } void killDaemon() { object oTarget; effect eEffect; oTarget = GetObjectByTag("towerdaemon1"); eEffect = EffectDeath(); ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget); } //Put this OnEnter void main() { // Get the PC who is in this conversation. object oPC = GetPCSpeaker(); // CreateItemOnObject("pervertedseed", oPC); // ---------------------------- SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE); AmbientSoundStop(GetArea(oPC)); object oTarget; object oSpawn; location lTarget; oTarget = GetWaypointByTag("east_monster1"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "eastlight6", lTarget); oTarget = GetWaypointByTag("east_monster2"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "eastlight3", lTarget); oTarget = GetWaypointByTag("east_monster3"); lTarget = GetLocation (oTarget); oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "eastlight4", lTarget); oTarget = GetWaypointByTag("east_monster4"); lTarget = GetLocation(oTarget); oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "eastlight5", lTarget); // *** oTarget = GetObjectByTag("ep_questsound1"); SoundObjectStop(oTarget); oTarget = GetObjectByTag("ep_questsound2"); SoundObjectStop(oTarget); oTarget = GetObjectByTag("ep_questsound3"); SoundObjectPlay(oTarget); DelayCommand(40.0, SoundObjectStop(oTarget)); // *** DelayCommand(1.5, AssignCommand(GetObjectByTag("towerdaemon1"), ActionSpeakString("One two, the Beast's are coming for you"))); // DelayCommand(10.0, spawnMonsters()); DelayCommand(15.0, summonCompany()); DelayCommand(37.0, turnoffLights()); DelayCommand(38.0, AmbientSoundPlay(GetArea(oPC))); DelayCommand(40.0, killDaemon()); object oSelf = OBJECT_SELF; // Have us perform a sequence of actions. ActionMoveToObject(GetNearestObjectByTag("wp_towerdaemon1")); // Have us perform a sequence of actions. ActionWait(30.0); }