HI,
for all wants to make a large eventail of npctemplate in their servers.
This cs contains a series of commands for make the création automatic.
/npct verifyall
make all realm 0 in the same zone of the client using the command in a arraylist
Check in this list:
If a npctemplate is applied and find in npctemplate, switch to another mobs
Search a npctemplate by name. If we find one, apply the template to the mob. If the npctemplate d'ont contains the mob model, we add it. the mob is reload at the end.
if we don't find a npctemplate we create one. during the creation of the npctemplate we determine min and max level/size automatically with all name occurences in datable Mob.
/npct set [id_template] [mobname]
set a npctemplateid to a mobname, reload it at the end.
/npct free
give you the first free id for a npctemplate.
/npct verifyinventory
verify all EquipmentTemplateID of npctemplate
select all mob in db, verify if npctemplate with same name contains the list, if not we add it.
/npct verifymodel
same of verifyinventory for model.
Beware, this make a Huge change to your database. Make a save of your mob, npctemplate table before use.
it's recommended to take a look at the code, if you have custom champ, etc ..
Soon npctemplate modifications in game, add styles, spells .. need to talk with his creator