#include "nw_i0_2q4luskan"
/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnEnter
void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));

if (DoOnce==TRUE) return;

SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);

object oTarget;
object oSpawn;
location lTarget;
oTarget = oPC;


oTarget = GetWaypointByTag("c36Swirl1");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "dustplume001", lTarget);

oTarget = GetWaypointByTag("c36Swirl2");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "dustplume001", lTarget);

FloatingTextStringOnCreature("Dist swirls as you cross the room, faces seem to be formed in the dust.", oPC, TRUE);


//FloatingTextStringOnCreature("Dist swirls as you cross the room, faces seem to be formed in the dust.", oPC);

oTarget = GetWaypointByTag("c36Phatom2");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "dustyphantom", lTarget);

oTarget = GetObjectByTag("c36Phatom1");

AssignCommand(oTarget, ActionWait(5.0f));

AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("c36Goodbye")));

oTarget = GetObjectByTag("DustyPhantom");

DelayCommand(16.0, DestroyObject(oTarget, 0.0));

oTarget = GetWaypointByTag("c36Phatom1");

lTarget = GetLocation(oTarget);

DelayCommand(16.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "dustyphantom001", lTarget));

oTarget = oPC;

lTarget = GetLocation(oTarget);

DelayCommand(16.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "dustyphantom001", lTarget));

}



