Create a new "m_nStructure"

Status
Not open for further replies.
Experienced Elementalist
Joined
Jun 18, 2009
Messages
220
Reaction score
17
Hello,

I followed Jelle's guide to add Trade fonction to a NPC.

I want Ismeralda sell some pick-up pets, and I want add a custom "m_nStructure", like "[Pick-Up]Ismeralda".

For example, Losha have "m_nStructure= SRT_FOOD;" which show "[Food]" on her name.

I used french flyff .res files to translate some stuff in the game, and "[Food]" became "[Aliments]" (which mean Food in french). So, I think that this information is in .res files.

Anyone know where ?
 
It isn't ResData.txt.txt

I search in all of my res files with NotePad++ search function and it's in etc.txt.txt and etc.inc.

However, thanks for help !
 
Sorry I forgot it's a NPC name, it's in character.txt.txt

That's one way, but that only puts the [name] in front of the NPC's name.

I think what he meant, is the titles above NPC names. I've done exactly this on my server.

It requires editing 4 files to make it work.
First, open defineNeuz.h and find where the other structures are defined. Create your own with a unique name and number (the number doesn't have to be the only one in that file, just the only structure with that number).
Second, find the NPC in character.inc. In the "setting" area, add m_nStructure= yournewstructure; (replace that with the name you put in defineNeuz.h
Third, modify etc.inc and etc.txt.txt to add the name of the title that will appear above the NPC name (use the others as an example).
 
Status
Not open for further replies.
Back