Postby Graveen » Sat Mar 12, 2016 9:50 am
The proper way to do is rather to have 2 differents NPCTemplates. NPCTemplate is created in the scope of mass creation of mobs (the level can be a range for slightly random levels), and to improve the database access. The NPCTemplate also randomizes models, aggrorange, aggrolevel, and everything i forget. In your case, you should simply have 2 NPCT: first for level 7, second for level 28.
Ideally, MOB table only contains locations, while NPCtemplate factorizes everything remaining. In the end, you should roughly have in your DB the NPCTs for a given mob spot, and some NPCT dedicated to named mobs.
We have the 2 systems (full MOB vs full NPCTemplated mobs) living side-by-side mainly to compatibility reasons :
- existing databases that have full mob table
- existing script that are creating/moidying mobs on the fly (although the mob should never reach the DB, because not saved :p)
To go further, i think personnally NPCT should also contains spatial locations (position + range) giving possible swarm creation (a named would have fixed position), but this is a brand new table not really fitting NPCT nor Mob - a new name must be choosen.
* pm me to contribute in Dawn of Light: code, database *