View Single Post
Old 02-10-2004, 06:42 PM   #1
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,721
Here is the deal, I have this NPC, and he is good at first, then I talk to him, say "Die" and he attacks me. At the exact same time I say "die", (in conversation) I want some of his friends to spawn in as an encounter. Here is what I have, and it DOESN'T work. Argh. [img]smile.gif[/img]

----------------
void main()
{

int bVisualEffect = SPELL_HARM;
string sObj = "DROWGUARD02";

location lLoc1 = GetLocation(GetWaypointByTag ("WP_SPAWN01"));
location lLoc2 = GetLocation(GetWaypointByTag ("WP_SPAWN02"));
location lLoc3 = GetLocation(GetWaypointByTag ("WP_SPAWN03"));
location lLoc4 = GetLocation(GetWaypointByTag ("WP_SPAWN04"));
location lLoc5 = GetLocation(GetWaypointByTag ("WP_SPAWN05"));

CreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc1, bVisualEffect );
CreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc2, bVisualEffect );
CreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc3, bVisualEffect );
CreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc4, bVisualEffect );
CreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc5, bVisualEffect );
}
-------------------

And I have 5 waypoints where I want these dudes to appear (I want 5 of them). but nothing happens. Any ideas? Each waypoint is named in succession as in the script above, I've triple checked everything, and am at a loss. Help?? [img]smile.gif[/img]
__________________
Ironworks Gaming's Official Youtube Gaming Channel

Ziroc is offline   Reply With Quote