[how to][tutorial] adding new npcs

Results 1 to 12 of 12
  1. #1
    Account Inactive RynoKabbage is offline
    InactiveRank
    Apr 2012 Join Date
    Lakeland, FloriLocation
    140Posts

    [how to][tutorial] adding new npcs

    [how to][tutorial] adding new npcs
    ok so i check in the tutorial and didnt find any tut on this so i decided to make one because some of the tuts i seen on other sites were missing very important details.

    ok 1st u will need a dyo manager. you can DL these tools it has everything u would need including dyo manager
    flyffTools.rar

    log into the game a find where u want to put the npc. then press 9, and the position will show up in the position.txt file of the client.

    open the dyo file where u want the new npc to be i did mine in WdMadgrical.dyo

    then add this:
    Code:
    ----------
    5
    122.613
    0
    0
    0
    6945.22
    100
    3228.916
    1
    1
    1
    5
    982
    -1
    0
    2
    MaFl_RYNO
    1
    0
    ----------
    -1
    This is the direction the character looks. i think its in a 360 deg direction but im not 100%
    This is the X coordinates
    this is the Z coordinates in the position.txt file
    this is the model Id number of the npc.
    this is the name of the character thats also in character.inc
    this is always at the very end of the dyo code. scroll all the way down in the dyo manager and u will see it. never delete or change this. you will not have to add a -1 to the npc your adding i just put it here so people would know.
    i think this is the angle of the npc. 100 is upright. i have not messed with to know for sure.
    change these to what ever you want then save the file inside the world folder where u found it. be sure to save it in both the client/world and the server/world files just to be safe.

    now to make it a shop to where u can buy thing.

    open up character.inc and find a place to put this code:
    Code:
    MaFl_RYNO
    {
    	setting
    	{
    		AddMenu( MMI_TRADE  );
    		AddVendorItem( 0, IK3_SWD, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_AXE, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_CHEERSTICK, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_KNUCKLEHAMMER, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_BOW, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_YOYO, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_STAFF, -1, 190, 190, 50 );
    		AddVendorItem( 0, IK3_WAND, -1, 190, 190, 50 );
    		AddVendorItem( 0, IK3_SHIELD, -1, 300, 300, 50 );
    		m_nStructure= SRT_WEAPON;
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000883
    	);
    
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000884
    	);
    }
    you can add or change anything u want.
    THIS IS VERY IMPORTANT. AND I HAD TO FIND OUT THE HARD WAY.
    when making new npc's in the character.inc MAKE SURE there is a space before the { and after the }. if ther is not all the npc's will be messed up.

    example of what i mean.
    Code:
    }// this is the end of the last npc shop
    //SPACE
    MaFl_RYNO
    {
    	setting
    	{
    		AddMenu( MMI_TRADE  );
    		AddVendorItem( 0, IK3_SWD, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_AXE, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_CHEERSTICK, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_KNUCKLEHAMMER, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_BOW, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_YOYO, -1,  190, 190, 50 );
    		AddVendorItem( 0, IK3_STAFF, -1, 190, 190, 50 );
    		AddVendorItem( 0, IK3_WAND, -1, 190, 190, 50 );
    		AddVendorItem( 0, IK3_SHIELD, -1, 300, 300, 50 );
    		m_nStructure= SRT_WEAPON;
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000883
    	);
    
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000884
    	);
    }//end of new npc we added
    //SPACE
    MaFl_Jayson //npc below the one we added
    Last edited by RynoKabbage; 13-05-12 at 12:51 PM.


  2. #2
    Account Inactive Satanas is offline
    InactiveRank
    Jun 2010 Join Date
    9Posts

    Re: [how to][tutorial] adding new npcs

    Can you please re-upload the file? Because the file has been deleted. Thanks.

  3. #3
    Account Inactive SirSmashalot is offline
    InactiveRank
    Oct 2006 Join Date
    105Posts

    Re: [how to][tutorial] adding new npcs

    You can download dyo manager here :
    dyoManager-1.2.zip

  4. #4
    Account Inactive botzock is offline
    InactiveRank
    May 2009 Join Date
    21Posts

    Re: [how to][tutorial] adding new npcs

    Ok so it means that if i want to remove an npc for example Is. Then I'll search for Is in the WdMadgrical.dyo and delete her code in there. Am I right?

  5. #5
    127.0.0.1 Groxy101 is offline
    True MemberRank
    Apr 2010 Join Date
    382Posts

    Re: [how to][tutorial] adding new npcs

    Quote Originally Posted by botzock View Post
    Ok so it means that if i want to remove an npc for example Is. Then I'll search for Is in the WdMadgrical.dyo and delete her code in there. Am I right?
    Yes, but keep in mind that alot of npc's are in the dyo more than once (Flaris, SM, Darkon, etc).

  6. #6
    Account Inactive botzock is offline
    InactiveRank
    May 2009 Join Date
    21Posts

    Re: [how to][tutorial] adding new npcs

    Ok now i got this! Thanks for the Help! You have my like!

  7. #7
    Account Inactive SirSmashalot is offline
    InactiveRank
    Oct 2006 Join Date
    105Posts

    Re: [how to][tutorial] adding new npcs

    Anyone happen to know what the numbers on each AddVendorItem line mean?

    *edit*
    Nevermind, found it :D
    Last edited by SirSmashalot; 16-02-13 at 08:06 PM.

  8. #8
    Account Inactive botzock is offline
    InactiveRank
    May 2009 Join Date
    21Posts

    Re: [how to][tutorial] adding new npcs

    Quote Originally Posted by SirSmashalot View Post
    Anyone happen to know what the numbers on each AddVendorItem line mean?

    *edit*
    Nevermind, found it :D
    It would be really nice if you share it to me lol

  9. #9
    Account Inactive SirSmashalot is offline
    InactiveRank
    Oct 2006 Join Date
    105Posts

    Re: [how to][tutorial] adding new npcs

    Quote Originally Posted by botzock View Post
    It would be really nice if you share it to me lol
    Read this :
    How to add a item to a NPC

    :)

  10. #10
    Account Inactive botzock is offline
    InactiveRank
    May 2009 Join Date
    21Posts

    Re: [how to][tutorial] adding new npcs

    Quote Originally Posted by SirSmashalot View Post
    Thanks!

  11. #11
    Registered Komel is offline
    MemberRank
    Aug 2014 Join Date
    г. НаберLocation
    6Posts

    Re: [how to][tutorial] adding new npcs

    When I save me an error and disappear all the NPC

  12. #12
    Newbie GameGuard is offline
    MemberRank
    Dec 2014 Join Date
    VenezuelaLocation
    3Posts

    Re: [how to][tutorial] adding new npcs

    Excelent



Advertisement