Jump to content
  • 0

Item Script Help


rexxar31

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

anyone who can make an item script like Old Blue Box that has a random of 5 items to be obtained when clicked? And random items will be obtained by percent of chance? Ex. yggberry = 10% to be obtained and yggleaf is 1% and another 5-10 items. thanks for advance :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Here's a Example

db/const.txt

IG_Custom_Box 62

db/item_db2.txt

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

db/re/item_group_db.txt or db/pre-re/item_group_db.txt

import: db/item_custom_box.txt

and add this in you're SVN's db folder

item_custom_box.txt

// Gift Box Obtainable Items Database
//
// Structure of Database:
// GroupID,ItemID,Rate

62,30000,5

anyone who can make an item script like Old Blue Box that has a random of 5 items to be obtained when clicked?

Uhmm if you want you can make like this

getitem <Item ID>,<Quantity>;

because i think that Example i gave you is a single item only and it not gives 5 to 10 items but it will give you random items when it used

Edited by Lelouch
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

ill try this one :)) thanks for the reply

EDIT: Does it need sprites and textures?

Edited by rexxar31
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

sprite's and texture's are not in server side you can find it in client side

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

yah. what i mean is, does it need to have custom textures and sprites? there is no view id in the item in itemdb2.txt.

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