Jump to content

simplemhan

Members
  • Posts

    308
  • Joined

  • Last visited

Community Answers

  1. simplemhan's post in Script for box like obb was marked as the answer   
    this is the same script in obb.
    item_db2 script
    25500,Custom_Box,Custom Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_whatever),1; },{},{}
    const.txt:
    IG_whatever<TAB>62
    Find IG_Advanced_Weapons_Box 61, check the last number and name for the last IG_ and add the following below that
    IG_whatever 62 (Depending on the last ID in there of course AND make sure to tab after IG_whatever, NOT space)
    item_group_db.txt:
    import: db/item_whatever.txt
    item_whatever.txt:
    62,<Item ID>,<Rate>
    62,<Item ID>,<Rate>
    62,<Item ID>,<Rate>
    62,<Item ID>,<Rate>
    // As many as you want
    item_whatever.txt
    // Structure of Database:
    // GroupID,ItemID,Rate
    62,ID,1 //The Group ID you must set in your db/const.txt
    62,5013,1 //Lord Kaho's Horn
    itemdb.h
    #define MAX_ITEMGROUP #62 - change this to your IG_whatever# and add plus 1
    means
    #define MAX_ITEMGROUP #63 for my example
×
×
  • Create New...