Ok...I know someone knows how to do this...

Results 1 to 5 of 5
  1. #1
    Pessimistic Ass@%&! Monolith is offline
    MemberRank
    Jan 2008 Join Date
    DallasLocation
    2,299Posts

    ! Ok...I know someone knows how to do this...

    Worked on attempting to edit what the npc's sell last night....

    Here's what I figured out so far....

    character.inc is obviously what controls it.....

    I have figured out

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
    Is the basis on adding or removing things....

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
    The first number is the slot in which the npc stores the item....

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
    This seems to be some array used for blocks of item...

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
    This number is based on the job....1 being mercenary...2 being assist....3 being acrobat and 4 being magician....

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
    This number seems to control what level the items in the array are.....can't figure these out...

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );
    And it seems no matter what combination I use...these numbers elude me....put the wrong ones and either the world server crashes...or the items disappear...

    Can someone throw me a bone here?


  2. #2
    Member superkid101 is offline
    MemberRank
    Dec 2008 Join Date
    61Posts

    Re: Ok...I know someone knows how to do this...

    Looked around a little and found this....
    Code:
    character.inc (datasub1.res)
    propitem.txt (datasub2.res)
    
    We take as an example of the NPC Is:
    
    IS
    
    MaFl_Is
    (
    setting
    (
    Addmenu (MMI_DIALOG) / / dialog option
    Addmenu (MMI_TRADE) / / Option Trading
    AddVendorItem (0, IK3_SCROLL -1, 1, 10, 100); / / Item Adden
    SetImage
    (
    IDS_CHARACTER_INC_000064
    );
    m_szDialog = "MaFl_Is.txt";
    )
    
    SetName
    (
    IDS_CHARACTER_INC_000065
    );
    
    AddVendorSlot (0,
    IDS_CHARACTER_INC_000066
    );
    )
    
    
    
    AddVendorItem (0, IK3_SCROLL -1, 1, 10, 100);
    
    AddVendorItem (0, IK3_SCROLL -1, 1, 10, 100);
    SLOT 1-4 (The tab in which the item appears.)
    The Itemart to be sold (eg for IK3_TICKET Azria ticket)
    From 1 = level 1 11 = Until Level 11 i.e. 1.120 Items from 1 to 120 would
    -1 = Job ID
    The rest is unimportant x)
    But now to the propitem.txt
    
    
    
    Attached is a file name Showmark.txt
    
    In this file there are 3 examples of how to find the Shopable value of the items and thus gets into the shop.
    It should be noted that the 0 bit to the left of X and Y is always equal with the other zeros.
    X and Y to indicate where one must be to sit 1st
    By default, the CS Items in this place a zero.
    If one applies this template and sets the value to 1,
    hope it can help any.

  3. #3
    Enthusiast Fssf is offline
    MemberRank
    May 2009 Join Date
    30Posts

    Re: Ok...I know someone knows how to do this...

    Code:
    AddVendorItem( 0, IK3_SWD, 1, 15, 27, 50 );

    Probally it defines what kind of item it is, CS, Bow,Axe,Blinkwing,Equipment.

  4. #4
    Pessimistic Ass@%&! Monolith is offline
    MemberRank
    Jan 2008 Join Date
    DallasLocation
    2,299Posts

    Re: Ok...I know someone knows how to do this...

    Yes that helps some....alot actually...

    Guess I need to spend some time in the res files and figure out all the item stuff....

    I'll work on it and make a list and a guide...unless someone beats me to it ;)



    edit:
    Holy crap!!!!

    The propitem.txt and propitem.xls contain a perins worth of information lol

    Contains what they are worth....what their stats are ect ect!!!!
    Last edited by Monolith; 24-10-09 at 08:12 PM.

  5. #5
    Pessimistic Ass@%&! Monolith is offline
    MemberRank
    Jan 2008 Join Date
    DallasLocation
    2,299Posts

    Re: Ok...I know someone knows how to do this...

    Come on people...I know at least 2 people here know how to do this for sure....

    *cough*mootie*cough*zebra*cough*

    lol

    Hook us up...



Advertisement