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
  #1  
Old 05-26-2004, 12:27 PM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default spawn areas

I got basic spawn areas working

Here's the sql table :
Code:
CREATE TABLE `spawnarea` (
  `id` int(11) NOT NULL default '0',
  `spawngroupID` int(11) NOT NULL default '0',
  `zone` varchar(16) NOT NULL default '',
  `x1` float NOT NULL default '0',
  `y1` float NOT NULL default '0',
  `z1` float NOT NULL default '0',
  `x2` float NOT NULL default '0',
  `y2` float NOT NULL default '0',
  `z2` float NOT NULL default '0',
  `maxmob` int(11) NOT NULL default '0',
  `respawntime` int(11) NOT NULL default '0',
  `variance` tinyint(4) NOT NULL default '0',
  `pause` int(11) NOT NULL default '0',
  KEY `id` (`id`),
  KEY `spawngroupID` (`spawngroupID`),
  KEY `zone` (`zone`)
) TYPE=MyISAM;
I know it is basic but it is a start =)
spawn areas are rects, you define their bounds with the ( x1, y1, z1 ) and ( x2, y2 , z2 ) points
spawngroupID is the id of a spawngroup, add in the spawngroup the monsters you want to spawn in the area
each mob is defined by a spawn entry, ( spawngroupID, npcid, chance )
tweak the chance of each npc to tweak the population of each npc type in the area
maxpop defines the maximum numbers of npcs who can roam in the area

npcs will spawn randomly in the area and roam randomly in the area like the roaming grid type but it doesnt use grids anymore

I think it can be improved in many ways, we had already discussions, and maybe areas could be polygons instead of rects, use areas for other purposes like quests etc ...
__________________
Sandy
Reply With Quote
 

Thread Tools
Display Modes

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 01:16 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