Aller au contenu

Photo

Charpenter


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
Olblach

Olblach
  • Members
  • 175 messages
Hey guys, I have developped a tool that lets you delete characters or make changes to the bic files :

nwvault.ign.com/View.php



(actually features  wings, tail, deletion and erm.. *more skin*)

Charpenter is very experimental as it is now, so be super careful when testing it.

Source code is included so you can adapt it to your needs.

I plan to add item deletion soon, so I can implement my unique items system!

Don't forget that NWNX4 probably provides all these features as well, I just made this for my PW and don't mind sharing so here it is.

For the records I thought it would be easier to do it myself, than use NWNX4 but making it work properly was harder than expected. 

Charpenter checks your database folders for creation and deletion of dbf files prefixed with chp_. 
Those files are created by your module through scripting. For example to add a tail the script would have issued

SetCampaignInt(chpGetDbName(oPC), "tail", 8) ;

Then it opens them and read the commands inside, do the changes on bic files and tells the server that the work is done.
In our example it would add a male tiefling tail to the character specified.

Unfortunately, the module does not simply set the campaign int to have the work done as I have implemented a lock mechanism to prevent multiple changes at the same time. I might or might not remove it in the future. I might also switch from campaign DBs to logfile.

This is the first shot of my application, I like doing things like that, make a first shot and then criticize it :D.

However there is a demo module included with samples conversation and module client_leave script to show you how things are done.

Enjoy and don't forget to backup your character files before testing it!

Modifié par Olblach, 12 septembre 2010 - 11:34 .