Jump to content

simplemhan

Members
  • Posts

    308
  • Joined

  • Last visited

Posts posted by simplemhan

  1. 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

  2. you can also try this

    item_db2 script

    25500,Custom_Box,Custom Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_whatever),1; },{},{}

    const.txt:

    IG_whatever<TAB>55

    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.

  3. here is a example if you want a 10% drop rate the calculation is this 10x100 = 1000, put 1000 to your item_rate

    if you want 100% drop rate the calculation is this 100x100 = 10000, put 10000 to your item_rate

×
×
  • Create New...