Official File NPC Editing 101

Wow...I pulled away from FlyFF shortly after posting this tut and had no idea it ran as long as it did...

As for the newer questions...I created this using V11 files...alot has changed in the files themselves so this tut might be outdated...questions about newer items probably will not be answered here...

I really created this due to the fact that I prefer to do things manually rather then allowing some program do it for me....as someone stated earlier...you learn more about the way things work inside "The machine" this way and can eventually do better things later on....

If you can learn it this way you can pretty much teach yourself later on when things change...and they always do :)
 
followed your step, changed AddVendorItem( 2, IK3_YOYO, 2, 15, 27, 50 ) to AddVendorItem( 2, IK3_YOYO, 2, 15, 200, 50 ). when i logged to the game, trade button wont work. after clicking trade, it does nothing. was wondering if this works in v18? :/
 
Thank you, i added

and the items are showing. apparently, i tried removing the blue items but still they are showing and the set items only shows until level30.

Nerf or remove all of the AddVendorItem from the npc u added to.
 
Thank you, i added

and the items are showing. apparently, i tried removing the blue items but still they are showing and the set items only shows until level30.

-----------------------SOLVED------------------------------------------------------------------------------------------------

btw, whats the
IDS_PROPITEM_TXT_ for the ultimates? coz i was dragging 1 down in the excel file and the ultimate weapon showed up in npc selling it very cheap :O i want to increase the price value
 
-----------------------SOLVED------------------------------------------------------------------------------------------------

btw, whats the
IDS_PROPITEM_TXT_ for the ultimates? coz i was dragging 1 down in the excel file and the ultimate weapon showed up in npc selling it very cheap :O i want to increase the price value

Search for WEAPON_ULTIMATE in the spec_item and increase dwCost.
 
Using clean V15 files.
As soon as I save the file propItem.txt with excel and save it (even without making any changes) WorldServer.exe will not work anymore. Will open, load for few seconds and then close. I need to restore the file.
I even downloaded Office 2007 but the same problem occurs. Makes sense as a text file open as a table with so many symbols and characters would make some unwanted changes.
In produces the next error log:
Code:
2024/ 7/ 5   01:54:26   propItem.txt ID:0 last_read(ID:16716 name:Rabbit Hat(M))
Any ideas or workarounds?
 
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.
i cant see the image because of photobucket . .
 
Because this thread is 15 years old and Photobucket kicked me out a long time ago.....
sorry sir im not fast learner but i rely want to learn about making flyff . . can you repeat explain about this [ AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 ) ] when i open the excel i dont know where did you get the number 0, weapon type , 1, 15, 27, 50 & also the parts :cry::cry:
 
Back