Jump to content
  • 0

make new Box like Old blue box


java

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

hi hello to make item like Old blue box,

the list of item at box is :

Red Stoking 25% random rate item get

Puri Potion 50% random rate item get

and get random when clicked base rate of that chance

ty before

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Source Part ....

trunk/src/map/itemdb.h

//The max. item group count (increase this when needed).
#define MAX_ITEMGROUP 63

increase the value .... depend on how many new box you want...


Database Part .....

trunk/db/const.txt

IG_Custom_Box 63

add this ...

trunk/db/re/item_giftbox.txt

// Structure of Database:
// GroupID,ItemID,Rate

inside

trunk/db/re/item_db.txt

getrandgroupitem( IG_Custom_Box ),1;

just make sure you recompile after edit source part....

beside there is alot way to create new random item "box" ...refer the forum .. use search engine...


/swt ...our wiki also got guide on how to add a new "Box"

Groupranditem

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  251
  • Reputation:   20
  • Joined:  12/22/11
  • Last Seen:  

thank you so much

:)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...