Jump to content
  • 0

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


Question

Posted
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"

6 answers to this question

Recommended Posts

Posted

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
Posted

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 ! 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...