Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Official File NPC Editing 101

Pessimistic butt@%&!
Loyal Member
Joined
Jan 18, 2008
Messages
2,057
Reaction score
487
This guide will assume you have the server running with no problems. If you cannot get the server to run, do not post your help requests here unless it is about what I am showing you here.

First off...To do this as I am you will need a few things....

Notepad++..I love this program...and it's free to anyone...

Download it .

To ease editing the propitem.txt you really need Microsoft Excel...I use 2007...

You can download a 60 free trial .

Ok...now to the nitty gritty....I am going to assume you know how to install the previously mentioned programs by yourself...nothing special...just install default.

First thing we are going to do is open propitem.txt in Microsoft Excel...by opening Excel then clicking the open on the top bar located here.

Monolith - Official File NPC Editing 101 - RaGEZONE Forums


Navigate to your resource folder within the Server Files and find propitem.txt.

Once opening it you will be asked some questions about delimiters and stuff....simply click next, then click finish and it will open up to look like this....

(WARNING: If you change any of the setting...or do not follow my instructions exactly..the server files will not be able to read this file and you will have to start over)
Monolith - Official File NPC Editing 101 - RaGEZONE Forums


Now being the only columns we need for this guide are B, H, M, X, Y, and Z..for the sake of space and this guide..I am going to shrink the columns down so we can see them all....

Monolith - Official File NPC Editing 101 - RaGEZONE Forums


Now let me explain these a little for those that may be confused...

Column B is the item name....as you see in the picture the first one is the Rodney Axe. So as you look for your items that you want to edit...this is where you look...later on as we get into greens...this will change...they do not name them the names you see in game...but we will talk about that when we get to it....

Column H is the column you will be using in the character.inc later on....it tells the server which items to include in the vendor....

Column M is the amount the SERVER will charge for the item...this is not the amount the player will see until you edit the CLIENT res files and include the same price.

Column X is the item level....we really won't edit this much..it's more for figuring out which item is which later on.

Column Y is the items rarity...it too won't be edited much unless you want to fine tune your items for sale and add some items...but not all in that group.

Column Z is the most important...this tells the server if this item is allowed to be sold in npc vendors or not...this is the column you will be doing most of your editing in.

OK....lets jump right in and add something that normally isn't there :thumbup1:

First we want to find an item...lets say....Guardian Bow...as stated before...most of the items not normally sold in shops are not named the same as in game...the Guardian weapons in propitem.txt are named II_WEA_BOW_SUHO for the Guardian Bow...in Excel on the left hand side you'll see the rows going left to right are numbered...Guardian weapons start at 1424.

OK..now that we have our Guardian Bow highlighted....like so....

Monolith - Official File NPC Editing 101 - RaGEZONE Forums


Lets do some editing so we can put it in a shop :thumbup1:

First thing you need to edit is the items ability to be in a vendor...that was column Z if you remember correctly...

Monolith - Official File NPC Editing 101 - RaGEZONE Forums


I already have changed the bow to be useable in a vendor...but yours should have a "=" here....if you change that to a "1"...your done! :thumbup1:

Save it...say yes to the warning...it won't hurt....

Now lets move on to the character.inc.

Open it up in Notepad++...if you didn't get my required programs..then do not ask why yours looks different...or why you cant find it...ect ect...just download it...the program is awesome not only here but in editing webpages...ini files...pretty much anything editable due to keeping the format....

But I digress....

This is what you will see when opening it...

Monolith - Official File NPC Editing 101 - RaGEZONE Forums


Lets scroll down till we find the Flaris Weapons shop...the guy named MaFl_Boboku...meaning Ma = Madrigal...FL = Flaris...Boboku = The guys name in game.

Now you see this...

Code:
MaFl_Boboku
{
 setting
 {
  AddMenu( MMI_DIALOG );
  AddMenu( MMI_TRADE  );
  AddMenu( MMI_PIERCING );
  //AddMenu( MMI_PIERCING_REMOVE );
  //AddMenu( MMI_CHANGEELEM );
  //AddMenu( MMI_QUEST );
  AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
  AddVendorItem( 0, IK3_AXE, 1, 15, 27, 50 );
  AddVendorItem( 1, IK3_CHEERSTICK, 3, 15, 27, 50 );
  AddVendorItem( 1, IK3_KNUCKLEHAMMER, 3, 15, 27, 50 );
  AddVendorItem( 2, IK3_BOW, 2, 15, 27, 50 );
  AddVendorItem( 2, IK3_YOYO, 2, 15, 27, 50 );
  //AddVendorItem( 3, IK3_PET, -1, 0, **** 100);
  m_nStructure= SRT_WEAPON;
  SetImage
  (
  IDS_CHARACTER_INC_000020
  );
  m_szDialog= "MaFl_Boboku.txt";
  // m_szDlgQuest = "MaFl_Boboku_q.txt";

Now edit your information to match this...

Code:
MaFl_Boboku
{
 setting
 {
  AddMenu( MMI_DIALOG );
  AddMenu( MMI_TRADE  );
  AddMenu( MMI_PIERCING );
  //AddMenu( MMI_PIERCING_REMOVE );
  //AddMenu( MMI_CHANGEELEM );
  //AddMenu( MMI_QUEST );
  AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
  AddVendorItem( 0, IK3_AXE, 1, 15, 27, 50 );
  AddVendorItem( 1, IK3_CHEERSTICK, 3, 15, 27, 50 );
  AddVendorItem( 1, IK3_KNUCKLEHAMMER, 3, 15, 27, 50 );
  AddVendorItem( 2, IK3_BOW, 2, 15, 200, 50 );
  AddVendorItem( 2, IK3_YOYO, 2, 15, 27, 50 );
  //AddVendorItem( 3, IK3_PET, -1, 0, **** 100);
  m_nStructure= SRT_WEAPON;
  SetImage
  (
  IDS_CHARACTER_INC_000020
  );
  m_szDialog= "MaFl_Boboku.txt";
  // m_szDlgQuest = "MaFl_Boboku_q.txt";

All we did was changed the maximum rarity allowed in the group IK3_Bow to 200...which is the max.

Now reload your worldserver....log in and check and you should see the Guardian Bow for sale.

Success!!

Now for the Green Armor Items....

They are named a little different...mostly named after the job required to wear them...and the type of armor it is...meaning...

II_ARM_F_MER_BOOTS_SET_01

These are the F Mercenary Boots in the set.

The way to verify if they are greens or regular items is to look at column X and see the item levels...remember greens are 15,30,45,60,75,90,**** and 120. Regualr items are totally different.

Now edit the shoppable column...column Z remember? With a 1...and your in the money ;)

Open Character.inc and find the vendor in Flaris...

Code:
MaFl_Boboko
{
	setting
	{
		AddMenu( MMI_DIALOG );
		AddMenu( MMI_TRADE  );
		AddVendorItem( 0, IK3_SUIT, 1, 15, 200, 25 );
		AddVendorItem( 0, IK3_HELMET, 1, 15, 200, 25 );
		AddVendorItem( 0, IK3_GAUNTLET, 1, 15, 200, 25 );
		AddVendorItem( 0, IK3_BOOTS, 1, 15, 200, 25 );
		AddVendorItem( 1, IK3_SUIT, 3, 15, 200, 25 );
		AddVendorItem( 1, IK3_HELMET, 3, 15, 200, 25 );
		AddVendorItem( 1, IK3_GAUNTLET, 3, 15, 200, 25 );
		AddVendorItem( 1, IK3_BOOTS, 3, 15, 200, 25 );
		AddVendorItem( 2, IK3_SUIT, 2, 15, 200, 25 );
		AddVendorItem( 2, IK3_HELMET, 2, 15, 200, 25 );
		AddVendorItem( 2, IK3_GAUNTLET, 2, 15, 200, 25 );
		AddVendorItem( 2, IK3_BOOTS, 2, 15, 200, 25 );
		m_nStructure= SRT_SHIELD;
		SetImage
		(
		IDS_CHARACTER_INC_000026
		);
		m_szDialog= "MaFl_Boboko.txt";

After Editing all the greens you want in the shop..simply change the rarity to 200 as seen above and viola!! Your done...

After logging and testing you'll see quite a mess....all these regular armor in with the greens...it's too messy....Well theres a fix for that too...

Find all the regular armors in propitem.txt...they start down around row 742.

Instead of making the items shoppable in Column Z...if we were to put a "=" there..they will not show up!

Instant clean up...do that with all the regular armor items and viola! You have a clean vendor carrying only green items...

Only problem is...now the vendors in Saint Morning and Darkon carry nothing...

But I think with a little work..you can figure out how to put them back...just remember the vendors will only show the rarity items you tell it too...

If Boboku is told to only show rarity 199-200 instead of 15-200...it will clean it up easier...without all that editing of the regular items ;)

Lets see how many people completed reading the guide prior to making changes now LOL

One final warning...some of the items that are in the propitem.txt might not be in your client...if you edit some things and your client keeps crashing when you open that vendor...you do not have that item in your client...you will have to set up a client patcher and edit the res files to include it...or you can simply not use that item.
 
Last edited:
Elite Diviner
Joined
Sep 21, 2008
Messages
452
Reaction score
52
nice guide, i was unsure how to edit npc shops didnt look too much into it as i dont run a public server but opening propitem in excel that was very clever make it a lot easier to edit nice job
 
Experienced Elementalist
Joined
Sep 12, 2004
Messages
287
Reaction score
32
I would like to understand how to patch the client with these files. I have directly copied them under my client root folder but my client closes down after a few seconds of opening it. I tried putting it inside its res files, overwriting the ones inside, but still to no avail.

Please advise.

Great tut by the way.
 
Pessimistic butt@%&!
Loyal Member
Joined
Jan 18, 2008
Messages
2,057
Reaction score
487
I found a post a while back that discussed what you ask about...but for the life of me I cannot remeber if it was here or elsewhere....

I do remember it had to do with a md5 checksum in a txt file somewhere in the server files that told the client exactly what it had to have....

I myself do not know how to do it...but they are some here that do...I know MFlyFF havea patcher and Musura does also...so Mootie and Zebra probably know how...

Hopefully someone will make a tut on how to do it :)
 
Templar FlyFF <3
Joined
Sep 25, 2008
Messages
307
Reaction score
21
Kag0r did u delete ur flyff.a after editing?
Also yea uhm I'm also not sure where to edit it but there was sumthin... mhm... gotta check

Mono, GJ for the guide. should be helpfull
 
Last edited:
Newbie Spellweaver
Joined
Nov 5, 2009
Messages
83
Reaction score
7
i have a question. for this,

If Boboku is told to only show rarity 199-200 instead of 15-200...it will clean it up easier...without all that editing of the regular items ;)

how to i change his "settings" so he will only display 15-200 do i do that in the propitem.txt or somewhere else?
 
Pessimistic butt@%&!
Loyal Member
Joined
Jan 18, 2008
Messages
2,057
Reaction score
487
It tells you in the guide...

Me said:
Now lets move on to the character.inc.

Open it up in Notepad++...if you didn't get my required programs..then do not ask why yours looks different...or why you cant find it...ect ect...just download it...the program is awesome not only here but in editing webpages...ini files...pretty much anything editable due to keeping the format....

But I digress....

This is what you will see when opening it...

Funny part is I added that on the end after I edited all the items lol

So I'm not sure if it works or not...in theory it should...
 
Experienced Elementalist
Joined
Sep 12, 2004
Messages
287
Reaction score
32
Still stuck on the patching part. I have tried your sample NPC but still no luck.

I have removed the file flyff.a still client opens for a while then closes.
 
Pessimistic butt@%&!
Loyal Member
Joined
Jan 18, 2008
Messages
2,057
Reaction score
487
I am not offering any support for client patching here.

I do not know how to do it..or want to learn...I simply edited my own .res files and play...

I do not have a public server....so I cannot help on any aspects that are generated while attempting to make your server public.
 
Newbie Spellweaver
Joined
Mar 29, 2009
Messages
41
Reaction score
0
Lol, this may sound obvious to some people, but I don't get it.
When I downloaded the server files, the client crashed when I traded with Is, so I thought she was selling an item that didn't exist in my Flyff-client. I followed this guide to fix that problem, edited the Shopable columns and all. So far everything was working. When I was done editing, I wanted to see if it had worked, so I launched all the servers in the right order, but World Server.exe kept crashing. Then I used FRM to extract the propItem.txt in dataSub2.res, put it in my Resource folder, launched the servers, everything was fine. So I thought I had done something wrong, so I extracted Fame's propItem.txt, launched the servers, and the world server kept crashing. Can someone tell me what I'm doing wrong?
 
Not working on UnitedFlyf
Loyal Member
Joined
Apr 21, 2009
Messages
1,385
Reaction score
934
nice guide, i was unsure how to edit npc shops didnt look too much into it as i dont run a public server but opening propitem in excel that was very clever make it a lot easier to edit nice job

Please kill me now >___> that makes my whole propItem/defineitem to database parser useless. Ah well, it wasn't finished anyways.
 
Initiate Mage
Joined
Oct 31, 2009
Messages
4
Reaction score
0
i thought everyone knew this o.o

now if you could create a guide on duplicating and moving npcs that would be even more awesome.
 
Elite Diviner
Joined
Nov 6, 2009
Messages
473
Reaction score
44
and how can i find for example, a sunstone, in the propitem.txt / not propitem.txt.txt.
 
Joined
Nov 12, 2009
Messages
701
Reaction score
113
and how can i find for example, a sunstone, in the propitem.txt / not propitem.txt.txt.


You have to go into propitem.txt.txt, and and find [CTRL+F] sunstone, then copy the item ID. In this case, it is IDS_PROPITEM_TXT_008064

THEN you go into propitem.txt, and Find [CTRL+F] IDS_PROPITEM_TXT_008064. And voila, there's your sunstone, line 1728.
 
Experienced Elementalist
Joined
Nov 9, 2008
Messages
289
Reaction score
5
hey in character.inc for example azria ticket

can be like this?
AddVendorItem( 1, IK3_TICKET, -1, 1, 2, 100 );

and the coral ticket how can I do?
 
Banned
Banned
Joined
Oct 14, 2008
Messages
246
Reaction score
123
hey in character.inc for example azria ticket

can be like this?
AddVendorItem( 1, IK3_TICKET, -1, 1, 2, 100 );

and the coral ticket how can I do?

You'll want to go to your propitem.txt (the one from the guide above) and look at the H column for coral island, it should say what AddVendorItem you need.
 
Back
Top