Official File NPC Editing 101

Page 1 of 8 12345678 LastLast
Results 1 to 15 of 109
  1. #1
    Pessimistic Ass@%&! Monolith is offline
    Alpha MaleRank
    Jan 2008 Join Date
    DallasLocation
    2,301Posts

    Official File NPC Editing 101

    Official File NPC Editing 101
    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 here.

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

    You can download a 60 free trial here.

    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.



    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)


    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....



    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

    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....



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

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



    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!

    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...



    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 by Monolith; 01-11-09 at 06:46 PM.


  2. #2
    Account Upgraded | Title Enabled! divinepunition is offline
    True MemberRank
    Dec 2008 Join Date
    FranceLocation
    629Posts

    Re: Official File NPC Editing 101

    nice work, i din't know about this rarity usage...

  3. #3
    Account Inactive SARA19988 is offline
    InactiveRank
    Oct 2009 Join Date
    21Posts

    Re: Official File NPC Editing 101

    thanks

  4. #4
    3D Dev heathj is offline
    True MemberRank
    Sep 2008 Join Date
    UKLocation
    507Posts

    Re: Official File NPC Editing 101

    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

  5. #5
    Account Inactive jason145 is offline
    InactiveRank
    Sep 2008 Join Date
    My Computer, AULocation
    350Posts

    Re: Official File NPC Editing 101

    Very nice guide. Thanks

  6. #6
    Account Upgraded | Title Enabled! fluxbox is offline
    True MemberRank
    Sep 2004 Join Date
    KanagawaLocation
    303Posts

    Re: Official File NPC Editing 101

    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.

  7. #7
    Pessimistic Ass@%&! Monolith is offline
    Alpha MaleRank
    Jan 2008 Join Date
    DallasLocation
    2,301Posts

    Re: Official File NPC Editing 101

    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 :)

  8. #8
    Templar FlyFF <3 Thrinaria is offline
    True MemberRank
    Sep 2008 Join Date
    AmsterdamLocation
    508Posts

    Re: Official File NPC Editing 101

    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 by Thrinaria; 05-11-09 at 08:06 PM.

  9. #9
    Account Inactive imnotfake0991 is offline
    InactiveRank
    Nov 2009 Join Date
    83Posts

    Re: Official File NPC Editing 101

    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?

  10. #10
    Pessimistic Ass@%&! Monolith is offline
    Alpha MaleRank
    Jan 2008 Join Date
    DallasLocation
    2,301Posts

    Re: Official File NPC Editing 101

    It tells you in the guide...

    Quote Originally Posted by Me
    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...

  11. #11
    Account Upgraded | Title Enabled! fluxbox is offline
    True MemberRank
    Sep 2004 Join Date
    KanagawaLocation
    303Posts

    Re: Official File NPC Editing 101

    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.

  12. #12
    Pessimistic Ass@%&! Monolith is offline
    Alpha MaleRank
    Jan 2008 Join Date
    DallasLocation
    2,301Posts

    Re: Official File NPC Editing 101

    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.

  13. #13
    Account Inactive Tigras is offline
    InactiveRank
    Mar 2009 Join Date
    48Posts

    Re: Official File NPC Editing 101

    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?

  14. #14
    Not working on UnitedFlyf Mootie is offline
    DeveloperRank
    Apr 2009 Join Date
    1,591Posts

    Re: Official File NPC Editing 101

    Quote Originally Posted by heathj View Post
    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.

  15. #15
    Account Inactive Leecher is offline
    InactiveRank
    Oct 2009 Join Date
    4Posts

    Re: Official File NPC Editing 101

    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.



Page 1 of 8 12345678 LastLast

Advertisement