NPC Tutorials

Page 1 of 2 12 LastLast
Results 1 to 25 of 29
  1. #1
    the sound's resound echo Jelle is offline
    MemberRank
    Jun 2009 Join Date
    ._.Location
    1,036Posts

    NPC Tutorials

    What do you need for this guide?
    -Notepad
    -RESEditor (Search it)
    -Human brain (Just a little)
    -Time

    What does this guide tell you?
    -How to change name of NPC
    -How to add a Trade option a NPC
    -How to add a Buff-Option to a NPC
    -How to change the name of a Trade-Tab

    This guide is really simple and easy to follow!
    Spoiler:

    -How to change name of NPC
    First you are going to do, is open up character.inc
    This file is located in your server files (Resource)
    Open it with Notepad (Or Notepad ++, idc)
    For the sake of this guide we will change name of
    Novelist Gergantes wich is located at Flaris
    Inside character.inc press CTRL+F and typ in Gergantes
    This is the tab of Novelist Gergantes:
    Code:
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		
    		SetImage
    		(
    		IDS_CHARACTER_INC_000493
    		);
    		m_szDialog= "MaFl_Gergantes.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000494
    	);
    }
    IDS_CHARACTER_INC_000494 This is the name of the NPC
    So what we now do is open character.txt.txt with Notepad
    Scroll all the way down and make a new IDS_CHARACTER_INC
    Make it something like this:
    IDS_CHARACTER_INC_001000 OurNPC
    OurNPC is the name we change Gergantes in. This can be changed to everything you want.
    Now inside the character.inc
    Change
    Code:
    	IDS_CHARACTER_INC_000494
    to
    Code:
    	IDS_CHARACTER_INC_001000
    Save it, and you are done in the server files.
    Open your RESEditor and open the Datasub1.res (located in your client) delete the character.inc and the character.txt.txt inside it. Now add the new character.inc and character.txt.txt wich are inside the server files.
    Save it, replace it with your previous DataSub1.res
    And you are done!


    Spoiler:

    -How to add a Trade option to a NPC
    We will give Novelist Gergantes a trade option right now!
    Open up character.inc (Located in your server files) with Notepad
    Press ctrl+f and typ in Gergantes and hit enter
    This is what you will get (if you followed previous guide, the CHARACTER_INC's might be a little different)
    Code:
    MaFl_Gergantes
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		
    		SetImage
    		(
    		IDS_CHARACTER_INC_000493
    		);
    		m_szDialog= "MaFl_Gergantes.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000494
    	);
    }
    Now add
    AddMenu( MMI_TRADE );
    Below
    AddMenu( MMI_DIALOG );
    So it will look like
    Code:
    		AddMenu( MMI_DIALOG );
    		AddMenu( MMI_TRADE  );
    Now we have to add a trade-tab. I will make the NPC sell some armor.
    Beneath AddMenu, add:
    Code:
    		AddVendorItem( 0, IK3_SUIT, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 1, 15, 27, 25 );
    		AddVendorItem( 1, IK3_SUIT, 3, 15, 27, 25 );
    		AddVendorItem( 1, IK3_HELMET, 3, 15, 27, 25 );
    		AddVendorItem( 1, IK3_GAUNTLET, 3, 15, 27, 25 );
    		AddVendorItem( 1, IK3_BOOTS, 3, 15, 27, 25 );
    		AddVendorItem( 2, IK3_SUIT, 2, 15, 27, 25 );
    		AddVendorItem( 2, IK3_HELMET, 2, 15, 27, 25 );
    		AddVendorItem( 2, IK3_GAUNTLET, 2, 15, 27, 25 );
    		AddVendorItem( 2, IK3_BOOTS, 2, 15, 27, 25 );
    		m_nStructure= SRT_SHIELD;
    Now Gergantes will look like this:
    Code:
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
                    AddMenu( MMI_TRADE );
    		AddVendorItem( 0, IK3_SUIT, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_SUIT, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_SUIT, 2, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 2, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 2, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 2, 15, 27, 25 );
    		m_nStructure= SRT_SHIELD;
    		
    		SetImage
    		(
    		IDS_CHARACTER_INC_000493
    		);
    		m_szDialog= "MaFl_Gergantes.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000494
    	);
    }
    Last thing you need to do is add the name of the tab
    So change it to this:
    Code:
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
                    AddMenu( MMI_TRADE );
    		AddVendorItem( 0, IK3_SUIT, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 1, 15, 27, 25 );
    		AddVendorItem( 0, IK3_SUIT, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 3, 15, 27, 25 );
    		AddVendorItem( 0, IK3_SUIT, 2, 15, 27, 25 );
    		AddVendorItem( 0, IK3_HELMET, 2, 15, 27, 25 );
    		AddVendorItem( 0, IK3_GAUNTLET, 2, 15, 27, 25 );
    		AddVendorItem( 0, IK3_BOOTS, 2, 15, 27, 25 );
    		m_nStructure= SRT_SHIELD;
    		
    		SetImage
    		(
    		IDS_CHARACTER_INC_000493
    		);
    		m_szDialog= "MaFl_Gergantes.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000494
    	);
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000028
    	);
    }
    Now you added a trade-option + trade-tab + some basic items selling
    Want to change name of the tab? Check the last guide in this thread
    Its very easy ;)
    Too get this all inside your client,
    Open DataSub1.res with any RESEditor, replace the character.inc with the new one, save it, and you are done.


    Spoiler:

    How to add buff function to a NPC
    For the sake of this guide we will use Novelist Gergantes to be pimped with buffs
    Open up the character.inc with Notepad
    Ctrl+F and search for Gergantes
    This is what gergantes should be like:
    Code:
    MaFl_Gergantes
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		
    		SetImage
    		(
    		IDS_CHARACTER_INC_000493
    		);
    		m_szDialog= "MaFl_Gergantes.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000494
    	);
    }
    If you did my previous two guides, it might look different, doesnt matter, you can still add the buff function.
    Beneath
    Code:
    		AddMenu( MMI_DIALOG );
    ADD
    Code:
    		AddMenu( MMI_NPC_BUFF );
    //		( SKILL ID, 스킬레벨, 가능한 플레이어 최소, 최대 레벨, 지속시간(ms) )
    		SetBuffSkill( SI_ASS_CHEER_QUICKSTEP,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_HASTE, 	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_CATSREFLEX,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_CANNONBALL,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_MENTALSIGN,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_HEAPUP, 	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_BEEFUP,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_ACCURACY,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_RIN_SUP_SPIRITUREFORTUNE,	10, 1, 129, 86400000 );
    		SetBuffSkill( SI_RIN_SUP_PROTECT,	10, 1, 129, 86400000 );
    		SetBuffSkill( SI_RIN_SUP_GEBURAHTIPHRETH,	10, 1, 129, 86400000 );
    Now the whole gergantes should look like this:
    Code:
    MaFl_Gergantes
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		AddMenu( MMI_NPC_BUFF );
    //		( SKILL ID, 스킬레벨, 가능한 플레이어 최소, 최대 레벨, 지속시간(ms) )
    		SetBuffSkill( SI_ASS_CHEER_QUICKSTEP,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_HASTE, 	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_CATSREFLEX,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_CANNONBALL,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_MENTALSIGN,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_HEAPUP, 	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_BEEFUP,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_ASS_CHEER_ACCURACY,	20, 1, 129, 86400000 );
    		SetBuffSkill( SI_RIN_SUP_SPIRITUREFORTUNE,	10, 1, 129, 86400000 );
    		SetBuffSkill( SI_RIN_SUP_PROTECT,	10, 1, 129, 86400000 );
    		SetBuffSkill( SI_RIN_SUP_GEBURAHTIPHRETH,	10, 1, 129, 86400000 );
    
    		
    		SetImage
    		(
    		IDS_CHARACTER_INC_000493
    		);
    		m_szDialog= "MaFl_Gergantes.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000494
    	);
    }
    20= Level of Skill
    1= Minimum level to receive buffs
    129= Maximum level to receive buffs (if you have V14 change it to 121)
    86400000= Time duration of buffs (=24hours)
    Save it.
    Now open your client's datasub1.res with any RESEditor
    Delete the character.inc
    Replace it with the new one inside your server files
    Save it, and you are done!


    Spoiler:

    -How to change the name of a Trade-Tab
    First thing you do is open character.inc with Notepad or Notepad +
    Press Ctrl+F and typ in the name of the NPC.
    For the sake of this guide I will change the tab name of Dior.
    This is the character.inc of Dior
    Code:
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		AddMenu( MMI_TRADE  );
    		AddVendorItem( 0, IK3_STICK, -1, 1, 30, 100 );
    		AddVendorItem( 1, IK3_BOARD, -1, 1, 30, 100 );
    		AddVendorItem( 2, IK3_ACCEL, -1, 1, 1, 100 );
    		m_nStructure= SRT_STATION;
    		SetImage
    		(
    		IDS_CHARACTER_INC_000058
    		);
    		m_szDialog= "MaFl_Dior.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000059
    	);
    
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000060
    	);
    
    	AddVendorSlot( 1,
    	IDS_CHARACTER_INC_000061
    	);
    
    	AddVendorSlot( 2,
    	IDS_CHARACTER_INC_000062
    	);
    
    	AddVendorSlot( 3,
    	IDS_CHARACTER_INC_000063
    	);
    }
    AddVendorSlot( 0, = The first tab
    AddVendorSlot( 1, = The second tab
    AddVendorSlot( 2, = The third tab
    AddVendorSlot( 3, = The fourth tab
    A NPC can not have more then four tabs.
    So if we look at AddVendorSlot( 0, the IDS_CHARACTER_INC of that = 000060
    Open up character.txt.txt with Notepad or Notepad +
    Scroll all the way down and typ in:
    IDS_CHARACTER_INC_111111 TestTab
    111111 Can be everything, as long as it is not in use already
    TestTab is the name we give the tab. This can also be renamed to something else.
    Now go back to your character.inc
    Change
    Code:
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000060
    	);
    to
    Code:
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_111111
    	);
    Save it.
    You are now done.
    Open DataSub1.res with any RESEditor, delete character.inc and character.txt.txt and replace it with the new ones located at your server files.
    Save it, and enjoy!


    I hope I did not make this guide for nothing, enjoy it!

    CREDITS:
    -Me for making these guides
    -The maker of RESEditor
    -Serusuriel for releasing V15 and V14 official file's at Ragezone.
    -Trozay (Denichu)

    -Jelle
    Last edited by Jelle; 05-06-10 at 09:43 PM.


  2. #2
    the sound's resound echo Jelle is offline
    MemberRank
    Jun 2009 Join Date
    ._.Location
    1,036Posts

    Re: NPC Tutorials

    All four guides added!
    Enjoy ;)

  3. #3
    Account Upgraded | Title Enabled! lenspsv is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    273Posts

    Re: NPC Tutorials

    Can you add how to add items?
    Example. A Sprotect in boboku or something? D:

    ---------- Post added at 02:24 PM ---------- Previous post was at 02:24 PM ----------

    Can you add how to add items?
    Example: A Sprotect in boboku or something? D:

  4. #4
    the sound's resound echo Jelle is offline
    MemberRank
    Jun 2009 Join Date
    ._.Location
    1,036Posts

    Re: NPC Tutorials

    Quote Originally Posted by lenspsv View Post
    Can you add how to add items?
    Example. A Sprotect in boboku or something? D:

    ---------- Post added at 02:24 PM ---------- Previous post was at 02:24 PM ----------

    Can you add how to add items?
    Example: A Sprotect in boboku or something? D:
    Yeah sure I will make it.

  5. #5
    Account Upgraded | Title Enabled! lenspsv is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    273Posts

    Re: NPC Tutorials

    Ty :D

  6. #6
    WORK. demz123 is offline
    MemberRank
    Apr 2010 Join Date
    C:/wamp/www/Location
    336Posts

    Re: NPC Tutorials

    woahhhh thx man for guide :D

  7. #7
    Valued Member krocky10 is offline
    MemberRank
    Apr 2009 Join Date
    125Posts

    Re: NPC Tutorials

    Nice Guide dude =P

  8. #8
    We are Maverick! Dell Honne is offline
    MemberRank
    Feb 2009 Join Date
    ON, CanadaLocation
    3,271Posts

    Re: NPC Tutorials

    Finally an up-to-date guide on the first page, You can make it easier by using a FlyFF NPC editor to add items to an NPC you know. You can find the editor in the release section.

  9. #9
    the sound's resound echo Jelle is offline
    MemberRank
    Jun 2009 Join Date
    ._.Location
    1,036Posts

    Re: NPC Tutorials

    I know :)
    But some people just want to learn what it all means
    And how to do it yourself ;)
    So I though.. lets learn them how the files work and what they do.

  10. #10
    Account Upgraded | Title Enabled! Denichu is offline
    MemberRank
    Mar 2009 Join Date
    744Posts

    Re: NPC Tutorials

    Nice guide :>

  11. #11
    Valued Member krocky10 is offline
    MemberRank
    Apr 2009 Join Date
    125Posts

    Re: NPC Tutorials

    Yeah there is one called Ricky's Flyff Npc Editor that makes everything more Easy.
    link: http://forum.ragezone.com/f457/flyff...editor-636586/

  12. #12
    Account Upgraded | Title Enabled! Denichu is offline
    MemberRank
    Mar 2009 Join Date
    744Posts

    Re: NPC Tutorials

    Quote Originally Posted by krocky10 View Post
    Yeah there is one called Ricky's Flyff Npc Editor that makes everything more Easy.
    link: http://forum.ragezone.com/f457/flyff...editor-636586/
    omega Zero mentioned that.
    And aagibcheat answered: Yea, but im showing people how the files work.
    So, useless reply :<

  13. #13
    Account Upgraded | Title Enabled! lenspsv is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    273Posts

    Re: NPC Tutorials

    When comes the tutorial of adding items? :$

  14. #14
    Account Upgraded | Title Enabled! Denichu is offline
    MemberRank
    Mar 2009 Join Date
    744Posts

    Re: NPC Tutorials

    Quote Originally Posted by lenspsv View Post
    When comes the tutorial of adding items? :$
    That's calld leeching :>
    Try to find it out urself.
    Imma give you 1 tip: defineItem.h, propItem.txt
    Find the rest out urself

  15. #15
    Account Upgraded | Title Enabled! lenspsv is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    273Posts

    Re: NPC Tutorials

    Quote Originally Posted by Denichu View Post
    That's calld leeching :>
    Try to find it out urself.
    Imma give you 1 tip: defineItem.h, propItem.txt
    Find the rest out urself
    yeah ok, i know ho to do it, but, for a example, i have this:

    AddVenderItem( 1, IK3_SCROLL, -1, 1, 1, 1);

    And it is a re-skill, how do i change it to a Sprotect for example.
    That is what i dont know

  16. #16
    Apprentice mickhoz is offline
    MemberRank
    Dec 2006 Join Date
    18Posts

    Re: NPC Tutorials

    dude about your buffer... uhm.. i get the get buffed dialog but nothing happens... ?

    by the way put it to gergantes for a test

    any suggestions...?

  17. #17
    Account Upgraded | Title Enabled! Denichu is offline
    MemberRank
    Mar 2009 Join Date
    744Posts

    Re: NPC Tutorials

    Quote Originally Posted by lenspsv View Post
    yeah ok, i know ho to do it, but, for a example, i have this:

    AddVenderItem( 1, IK3_SCROLL, -1, 1, 1, 1);

    And it is a re-skill, how do i change it to a Sprotect for example.
    That is what i dont know
    Go to propItem.txt and change the minimum level and maximum rarity to w/e u want it wont effect anything but the shop. So like if u set minimum level **** even a player thats level 1 could buy it. Then like this:

    AddVenderItem( 1, IK3_SCROLL, -1, (minimum level), (maximum rarity), 100);


    Quote Originally Posted by mickhoz View Post
    dude about your buffer... uhm.. i get the get buffed dialog but nothing happens... ? by the way put it to gergantes for a test any suggestions...?
    Put it in ur Server Files AND in ur client's dataSub1.res

  18. #18
    i sell platypus Improved is offline
    MemberRank
    Jun 2009 Join Date
    DenmarkLocation
    2,819Posts

    Re: NPC Tutorials

    Thanks alot. Helped me while testing out the re-pack :3

  19. #19
    Account Upgraded | Title Enabled! |Waffles| is offline
    MemberRank
    Jun 2010 Join Date
    California, UsaLocation
    291Posts

    Re: NPC Tutorials

    Bump. I think this is a guide that should be at least near the front page.

    Also, imma add this to my [Gi-Normous] Compile of Releases.

    +1 :D Thanks for the guide.

  20. #20
    Apprentice postedo is offline
    MemberRank
    Aug 2010 Join Date
    5Posts

    Re: NPC Tutorials

    i did what your said but in game nothing changes what do i wrong
    (srry for bad English dutch, and bad in English ad school)

    done found the problem was changing in the wrong file
    Last edited by postedo; 04-10-10 at 09:49 PM.

  21. #21
    i sell platypus Improved is offline
    MemberRank
    Jun 2009 Join Date
    DenmarkLocation
    2,819Posts

    Re: NPC Tutorials

    Quote Originally Posted by postedo View Post
    i did what your said but in game nothing changes what do i wrong
    (srry for bad English dutch, and bad in English ad school)

    done found the problem was changing in the wrong file
    First post first necro.

  22. #22
    Apprentice postedo is offline
    MemberRank
    Aug 2010 Join Date
    5Posts

    Re: NPC Tutorials

    Quote Originally Posted by Improved View Post
    First post first necro.
    yea i know ...... but it woks now so happy after all

  23. #23
    Apprentice felipex13 is offline
    MemberRank
    Feb 2010 Join Date
    7Posts

    Re: NPC Tutorials

    about adding buffer to an npc I added it to a cs buff pet and I get the "Get buffed" message but when I press get buffed nothing happens but when im near a buff pang and I press get buffed with my cs pet it works mind telling me why that happens and how to fix it please.

  24. #24
    the sound's resound echo Jelle is offline
    MemberRank
    Jun 2009 Join Date
    ._.Location
    1,036Posts

    Re: NPC Tutorials

    Quote Originally Posted by felipex13 View Post
    about adding buffer to an npc I added it to a cs buff pet and I get the "Get buffed" message but when I press get buffed nothing happens but when im near a buff pang and I press get buffed with my cs pet it works mind telling me why that happens and how to fix it please.
    Bro, the last reply to this thread was 1 year ago.
    Anyways, are you sure you edited Helper_Ver12?

  25. #25
    Apprentice felipex13 is offline
    MemberRank
    Feb 2010 Join Date
    7Posts

    Re: NPC Tutorials

    Quote Originally Posted by Jelle View Post
    Bro, the last reply to this thread was 1 year ago.
    Anyways, are you sure you edited Helper_Ver12?
    yea im sure I used the ver12 one see I can buff myself with the buff pang but I added the buff function to a cs pet but it doesn't work it only works when im near a buff pang



Page 1 of 2 12 LastLast

Advertisement