Help on NPC Tabs

Results 1 to 5 of 5
  1. #1
    Member Ricobob is offline
    MemberRank
    Apr 2009 Join Date
    89Posts

    Help on NPC Tabs

    Can anyone post a guide on how to add tabs on an NPC?

    Thank you in advance.


  2. #2
    Cory James Cuvvvie is offline
    MemberRank
    Nov 2009 Join Date
    707Posts

    Re: Help on NPC Tabs

    Quote Originally Posted by Ricobob View Post
    Can anyone post a guide on how to add tabs on an NPC?

    Thank you in advance.
    Its really not that hard. Just look in character.inc at the shops, you should figure out quickly. If not, i suppose I could help you.

  3. #3
    Member Ricobob is offline
    MemberRank
    Apr 2009 Join Date
    89Posts

    Re: Help on NPC Tabs

    I know how to add it on character.inc but do how do I add the name of the tab on character.txt?

  4. #4
    Cory James Cuvvvie is offline
    MemberRank
    Nov 2009 Join Date
    707Posts

    Re: Help on NPC Tabs

    Okay. So this is a small piece of character.inc.
    Quote Originally Posted by character.inc View Post
    MaFl_Boboku
    {
    setting
    {
    AddMenu( MMI_DIALOG );
    AddMenu( MMI_TRADE );
    //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";
    }

    SetName
    (
    IDS_CHARACTER_INC_000021
    );

    AddVendorSlot( 0,
    IDS_CHARACTER_INC_000022
    );

    AddVendorSlot( 1,
    IDS_CHARACTER_INC_000023
    );

    AddVendorSlot( 2,
    IDS_CHARACTER_INC_000024
    );

    AddVendorSlot( 3,
    IDS_CHARACTER_INC_000025

    );
    }
    On the top, the tab #'s are bolded. 0 being the first tab, 3 being the last [fourth].

    On the bottom, the AddVendorSlot, is where the name of each tab is declared. They are declared in character.txt

    You can add your own values to character.txt to name the tabs using character.inc

    If you need anymore help let me know.
    Last edited by Cuvvvie; 01-05-10 at 02:00 AM.

  5. #5
    Member Ricobob is offline
    MemberRank
    Apr 2009 Join Date
    89Posts

    Re: Help on NPC Tabs

    Thank you so much Cuvvvie



Advertisement