Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-08-2004, 08:48 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

From what I've seen in places like west commons, there are no area spawn points (maybe you are seeing it in another zone?), but rather spawn points that can spawn multiple mobs at a time (ie: where you would see 3 spiderlings floating in mid-air together). I'm sure they use wander grids though.

The emu currently implements wander grids, doesn't it? I haven't really looked at it too much. I don't see why a wander grid would need to be confined to the shape of a rectangle, though. Any convex shape shouldn't be too terrible to make work, I think.

Anyway, even if you did want to create a spawn grid, it doesn't sound too bad. Off the top of my head it seems as though you could do the following.

Create an ordered set of points (x,y,z), used as vertices for the resulting spawn grid. From these points, the server might form triangles (ie: four verticies creates two triangles, six vertices creates four triangles, etc). Store these triangles off somewhere. When it comes time to spawn a mob, pick a triangle at random, and spawn it somewhere between the three vertices of the chosen triangle.

This could be turned into a function to generate a point within a grid, and then applied to wander grids, graveyards, etc.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:53 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3