Jump to content
  • 0

How to make Custom Old Blue Box (RANDOM ITEM) with Mods.


Archetype Saber

Question


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

item_giftbox.txt                                        
 
// Gift Box Obtainable Items Database        
//
// Structure of Database:                            
// GroupID,ItemID,Rate
 
// GiftBox
4,501,1    // Red Potion
4,502,1    // Orange Potion
4,503,1    // Yellow Potion
4,504,1    // White Potion

item_db.txt

644,Gift_Box,Gift Box,2,1000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getrandgroupitem(IG_GiftBox),1; },{},{}

------------------------

These are the info I get.
Uhm How will I do a custom Box that contains (For Example:) Apple ID: 512 , TCG ID: 7227

I'm just a little bit confused with the keyword "IG_GiftBox"
Link to comment
Share on other sites

6 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:  

trunk/src/map/itemdb.h

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

defined inside trunk/db/const.txt

IG_BlueBox	1
IG_VioletBox	2
IG_CardAlbum	3
IG_GiftBox	4
IG_ScrollBox	5
IG_FingingOre	6
IG_CookieBag	7
IG_FirstAid	8
IG_Herb	9
IG_Fruit	10
IG_Meat	11
IG_Candy	12
IG_Juice	13
IG_Fish	14
IG_Box	15
IG_Gemstone	16
IG_Resist	17
IG_Ore	18
IG_Food	19
IG_Recovery	20
IG_Mineral	21
IG_Taming	22
IG_Scroll	23
IG_Quiver	24
IG_Mask	25
IG_Accesory	26
IG_Jewel	27
IG_GiftBox_1	28
IG_GiftBox_2	29
IG_GiftBox_3	30
IG_GiftBox_4	31
IG_EggBoy	32
IG_EggGirl	33
IG_GiftBoxChina	34
IG_LottoBox	35
IG_FoodBag	36
IG_Potion	37
IG_RedBox_2	38
IG_BleuBox	39
IG_RedBox	40
IG_GreenBox	41
IG_YellowBox	42
IG_OldGiftBox	43
IG_MagicCardAlbum	44
IG_HometownGift	45
IG_Masquerade	46
IG_Tresure_Box_WoE	47
IG_Masquerade_2	48
IG_Easter_Scroll	49
IG_Pierre_Treasurebox	50
IG_Cherish_Box	51
IG_Cherish_Box_Ori	52
IG_Louise_Costume_Box	53
IG_Xmas_Gift	54
IG_Fruit_Basket	55
IG_Improved_Coin_Bag	56
IG_Intermediate_Coin_Bag	57
IG_Minor_Coin_Bag	58
IG_S_Grade_Coin_Bag	59
IG_A_Grade_Coin_Bag	60
IG_Advanced_Weapons_Box	61
IG_Splendid_Box	62

make sure you have added the item in one of these files...or a new file..

trunk/db/re/item_group_db.txt

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

how to make costume obb with new version rathena 

anyone can help me?
 

i fix it by myself

 

 

Edited by melv0
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I recommend you to create your own custom item instead editting that box..

Or a function, with array, rand, getitem, and even an announcement if you want.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

trunk/src/map/itemdb.h

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

defined inside trunk/db/const.txt

IG_BlueBox	1
IG_VioletBox	2
IG_CardAlbum	3
IG_GiftBox	4
IG_ScrollBox	5
IG_FingingOre	6
IG_CookieBag	7
IG_FirstAid	8
IG_Herb	9
IG_Fruit	10
IG_Meat	11
IG_Candy	12
IG_Juice	13
IG_Fish	14
IG_Box	15
IG_Gemstone	16
IG_Resist	17
IG_Ore	18
IG_Food	19
IG_Recovery	20
IG_Mineral	21
IG_Taming	22
IG_Scroll	23
IG_Quiver	24
IG_Mask	25
IG_Accesory	26
IG_Jewel	27
IG_GiftBox_1	28
IG_GiftBox_2	29
IG_GiftBox_3	30
IG_GiftBox_4	31
IG_EggBoy	32
IG_EggGirl	33
IG_GiftBoxChina	34
IG_LottoBox	35
IG_FoodBag	36
IG_Potion	37
IG_RedBox_2	38
IG_BleuBox	39
IG_RedBox	40
IG_GreenBox	41
IG_YellowBox	42
IG_OldGiftBox	43
IG_MagicCardAlbum	44
IG_HometownGift	45
IG_Masquerade	46
IG_Tresure_Box_WoE	47
IG_Masquerade_2	48
IG_Easter_Scroll	49
IG_Pierre_Treasurebox	50
IG_Cherish_Box	51
IG_Cherish_Box_Ori	52
IG_Louise_Costume_Box	53
IG_Xmas_Gift	54
IG_Fruit_Basket	55
IG_Improved_Coin_Bag	56
IG_Intermediate_Coin_Bag	57
IG_Minor_Coin_Bag	58
IG_S_Grade_Coin_Bag	59
IG_A_Grade_Coin_Bag	60
IG_Advanced_Weapons_Box	61
IG_Splendid_Box	62

make sure you have added the item in one of these files...or a new file..

trunk/db/re/item_group_db.txt

I knew it ! I'm thinking that the "IG" 's is located at src. thanks buddy! whatta nice badge you have in there.

I recommend you to create your own custom item instead editting that box..

Or a function, with array, rand, getitem, and even an announcement if you want.

thanks nana for the Idea ! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

How can you make the custom box not 'apple' = view id.

I would like it to be a custom item = but the image is 'gift box/ not apple'

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Edit your "idnum2itemresnametable.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...