Jump to content
  • 0

H>How to make item like Card Album?


Rocky Road

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   0
  • Joined:  11/08/14
  • Last Seen:  

I dunno if right thread but please help me?

I wanna make an item like Old Card Album that will get only rare cards and custom cards only? and when going to open the card it will announce what card did you get.. please anyone?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

 

open ra/db/item_db2.txt

make a new item -



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


 

next step is

open ra/db/const.txt

Find IG_Advanced_Weapons_Box 61

below add this

IG_whatever 63 //IG_whatever must be same in the item_db2.txt script command

 

next step

open ra/db/item_group_db.txt

import: db/item_whatever.txt - put this

 

next step

make a new script named

item_whatever.txt - place this in ra/db/

 

next step

open item_whatever.txt - in ra/db/item_whatever.txt



//Explanation 63 - is the number you input in const.txt
// - 1111 - this is the itemID
// - 9 - this is the rate

63,1111,9
63,<Item ID>,<Rate>


 

next step

open ra/src/map/itemdb.h

 

find this part

#define MAX_ITEMGROUP #62

 

the number is 62 where in const.txt the max group number is 62 - but you add another item group..

- just add + 1 in 62 so make it

 

#define MAX_ITEMGROUP #63

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   0
  • Joined:  11/08/14
  • Last Seen:  

open ra/db/item_db2.txt

make a new item -

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

open ra/db/const.txt

Find IG_Advanced_Weapons_Box 61

below add this

IG_whatever 63 //IG_whatever must be same in the item_db2.txt script command

next step

open ra/db/item_group_db.txt

import: db/item_whatever.txt - put this

next step

make a new script named

item_whatever.txt - place this in ra/db/

next step

open item_whatever.txt - in ra/db/item_whatever.txt

//Explanation 63 - is the number you input in const.txt
// - 1111 - this is the itemID
// - 9 - this is the rate

63,1111,9
63,<Item ID>,<Rate>
next step

open ra/src/map/itemdb.h

find this part

#define MAX_ITEMGROUP #62

the number is 62 where in const.txt the max group number is 62 - but you add another item group..

- just add + 1 in 62 so make it

#define MAX_ITEMGROUP #63

Let me try it sir thanks :) i will update you if i didnt go well thanks :)

Edited by chromus24
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...