NPCTemplate table increment

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

NPCTemplate table increment

Postby Shursan » Fri Jan 14, 2011 3:34 pm

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 :)
Attachments
npct.cs
(18.01 KiB) Downloaded 27 times
Origins/Genesis Administrator
Shursan
Server Representative
 
Posts: 375
Joined: Mon Jun 22, 2009 8:25 pm
Location: France

Re: NPCTemplate table increment

Postby Etaew » Thu Jul 07, 2011 10:25 am

I just want to bump this, as I moved it's forum, and I think it's pretty neat.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: NPCTemplate table increment

Postby Graveen » Thu Jul 07, 2011 11:52 pm

Yes, thank you, into my 'to review' list. this is not really the change, this is rather the Storm's impact (and DOLDb).
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest