View Single Post
  #7  
Old 05-27-2003, 05:06 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

I'm going to make a table to contain the paths so far I have:

Table Pathing
+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| type | bigint(20) | | PRI | NULL | auto_increment |
| zone | varchar(20) | | | NULL | |
| p1x | float | | | 0 | |
| p1y | float | | | 0 | |
| p1z | float | | | 0 | |
| p2x | float | | | 0 | |
| p2y | float | | | 0 | |
| p2z | float | | | 0 | |
| p3x | float | | | 0 | |
| p3y | float | | | 0 | |
| p3z | float | | | 0 | |
| p4x | float | | | 0 | |
| p4y | float | | | 0 | |
| p4z | float | | | 0 | |
+-------+-------------+------+-----+---------+----------------+

Where type is the type of the path (1 being a point, 2 being a wide open grid) and p2-p4 are only used if type is 2. (4 points of the square) This will be loaded at spawn time and all spawns will use it. Then, adding wander mobs will be trivial, you can just tell the mob how far to wander. Let me know what you think, if any db fields need to be added/changed.
__________________
Lethal Encounter
Reply With Quote