New exchange for add vendor item

Results 1 to 6 of 6
  1. #1
    Apprentice Newfolder is offline
    MemberRank
    Jan 2015 Join Date
    9Posts

    New exchange for add vendor item

    I'm not sure if I'm correct but
    AddVendorItem = Penya
    AddVendorItem2 = Red Chip

    I'm trying to add a new exchange like for perin, quest items or for a new currency for my new custom item.

    How will I do this?
    Thanks.


  2. #2
    Owner raventh1984 is offline
    MemberRank
    May 2011 Join Date
    NetherlandsLocation
    1,499Posts

    Re: New exchange for add vendor item

    You need to do this inside the source.

    Look at how AddVendorItem2 is doing and build from there like AddVendorItem3 etc.

  3. #3
    Apprentice Newfolder is offline
    MemberRank
    Jan 2015 Join Date
    9Posts

    Re: New exchange for add vendor item

    Quote Originally Posted by raventh1984 View Post
    You need to do this inside the source.

    Look at how AddVendorItem2 is doing and build from there like AddVendorItem3 etc.
    AddVendorItem2
    Spoiler:

    else if( script.Token == "AddVenderItem2" || script.Token == "AddVendorItem2")
    {
    script.GetToken(); // (
    int nSlot = script.GetNumber(); script.GetToken(); //
    DWORD dwId = script.GetNumber(); script.GetToken(); //


    LPVENDOR_ITEM pVendorItem = new VENDOR_ITEM;
    pVendorItem->m_dwItemId = dwId;
    lpCharacter->m_venderItemAry2[ nSlot ].Add( pVendorItem );
    }
    else if( script.Token == "SetVenderType" )
    {
    script.GetToken();
    int nVenderType = script.GetNumber();
    lpCharacter->m_nVenderType = nVenderType;
    script.GetToken();
    }


    Questions:
    1. Is this the only script I need to copy in order for this to work? I tried searching AddVendorItem in Source and only one file show up.
    2. I don't know which line dictates that Red Chips is the item required for the exchange.
    3. Does this mean that if I create AddVendorItem3 then I would have to put first a value to every item in propItem for this to work
    4. Will this work with Flyff NPC Editor since you can only add AddVendorItem and AddVendorItem2 and there isn't a column for the new currency

  4. #4
    Owner raventh1984 is offline
    MemberRank
    May 2011 Join Date
    NetherlandsLocation
    1,499Posts

    Re: New exchange for add vendor item

    Well i can give you the link. Its on an Diff Forum so what i can do is Re-Release it here.

  5. #5
    Apprentice Newfolder is offline
    MemberRank
    Jan 2015 Join Date
    9Posts

    Re: New exchange for add vendor item

    Quote Originally Posted by raventh1984 View Post
    Well i can give you the link. Its on an Diff Forum so what i can do is Re-Release it here.
    That would help me a lot. Thanks.

  6. #6
    Account Upgraded | Title Enabled! Ratpack is offline
    MemberRank
    May 2011 Join Date
    312Posts

    Re: New exchange for add vendor item

    Quote Originally Posted by raventh1984 View Post
    Well i can give you the link. Its on an Diff Forum so what i can do is Re-Release it here.
    can you give me the link too pls.



Advertisement