From ed72a947a6c97804c1eef5b80bfa49d99f7d7586 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 8 Nov 2013 07:18:40 +0100 Subject: Item DB overhaul http://hercules.ws/board/topic/2954-item-db-file-structure-overhaul - Item db was changed to libconfig format. - This new format is larger than the original format, but it's less subject to conflicts when some items are edited and the file gets updated. - It is no longer necessary to specify fields with no value, and only the actually used fields are specified. - Items scripts (especially the long ones) are made more readable by splitting them into multiple lines, with proper indentation. - A converter perl script is provided in the tools directory (and a link to the web-based version of the same script canbe found in the above forum topic) - All of this was made possible thanks to Ind, Yommy. Signed-off-by: Haru --- db/item_db2.conf | 554 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 554 insertions(+) create mode 100644 db/item_db2.conf (limited to 'db/item_db2.conf') diff --git a/db/item_db2.conf b/db/item_db2.conf new file mode 100644 index 000000000..5705c82c5 --- /dev/null +++ b/db/item_db2.conf @@ -0,0 +1,554 @@ +item_db: ( +// Items Additional Database +// +/****************************************************************************** + ************* Entry structure ************************************************ + ****************************************************************************** +{ + // =================== Mandatory fields =============================== + Id: ID (int) + AegisName: "Aegis_Name" (string, optional if Inherit: true) + Name: "Item Name" (string, optional if Inherit: true) + // =================== Optional fields ================================ + Type: Item Type (int, defaults to 3 = etc item) + Buy: Buy Price (int, defaults to Sell * 2) + Sell: Sell Price (int, defaults to Buy / 2) + Weight: Item Weight (int, defaults to 0) + Atk: Attack (int, defaults to 0) + Matk: Magical Attack (int, defaults to 0, ignored in pre-re) + Def: Defense (int, defaults to 0) + Range: Attack Range (int, defaults to 0) + Slots: Slots (int, defaults to 0) + Job: Job mask (int, defaults to all jobs = 0xFFFFFFFF) + Upper: Upper mask (int, defaults to any = 0x3f) + Gender: Gender (int, defaults to both = 2) + Loc: Equip location (int, required value for equipment) + WeaponLv: Weapon Level (int, defaults to 0) + EquipLv: Equip required level (int, defaults to 0) + EquipLv: [min, max] (alternative syntax with min / max level) + Refine: Refineable (boolean, defaults to true) + View: View ID (int, defaults to 0) + Script: <" + Script + (it can be multi-line) + "> + OnEquipScript: <" OnEquip Script (can also be multi-line) "> + OnUnequipScript: <" OnUnequip Script (can also be multi-line) "> + // =================== Optional fields (item_db2 only) ================ + Inherit: true/false (boolean, if true, inherit the values + that weren't specified, from item_db.conf, + else override it and use default values) +}, +******************************************************************************/ + +// THQ Quest Items +// ============================================================= +/* +{ + Id: 7950 + AegisName: "THG_Membership" + Name: "THG Membership" + Type: 3 + Sell: 10 + Weight: 10 +}, +*/ +/* +{ + Id: 7951 + AegisName: "Token_Bag" + Name: "Token Bag" + Type: 3 + Sell: 10 + Weight: 10 +}, +*/ +/* +{ + Id: 1998 + AegisName: "Jeramiah's_Jur" + Name: "Jeramiah's Jur" + Type: 3 + Sell: 10 + Weight: 10 +}, +*/ +/* +{ + Id: 1999 + AegisName: "Zed's_Staff" + Name: "Zed's Staff" + Type: 3 + Sell: 10 + Weight: 10 +}, +*/ +// Official Event Items that had their Effects removed after the event was completed +/* +{ + Id: 585 + AegisName: "Wurst" + Name: "Brusti" + Type: 11 + Buy: 2 + Weight: 40 + Script: <" + itemheal rand(15,20),0; + itemskill PR_MAGNIFICAT,3; + "> +}, +*/ +/* +{ + Id: 679 + AegisName: "Gold_Pill" + Name: "Pilule" + Type: 0 + Buy: 5000 + Weight: 300 + Script: <" percentheal 50,50; "> +}, +*/ +/* +{ + Id: 2681 + AegisName: "Republic_Ring" + Name: "Republic Anniversary Ring" + Type: 5 + Buy: 20 + Weight: 100 + Loc: 136 + Refine: false + Script: <" bonus bAllStats,3; "> +}, +*/ +/* +{ + Id: 5134 + AegisName: "Pumpkin_Hat" + Name: "Pumpkin-Head" + Type: 5 + Buy: 20 + Weight: 200 + Def: 2 + Loc: 256 + View: 206 + Script: <" bonus2 bSubRace,RC_Demon,5; "> +}, +*/ +/* +{ + Id: 5136 + AegisName: "Santa's_Hat_" + Name: "Louise's Santa Hat" + Type: 5 + Buy: 20 + Weight: 100 + Def: 3 + Loc: 256 + View: 20 + Script: <" + bonus bMdef,1; + bonus bLuk,1; + bonus3 bAutoSpellWhenHit,AL_HEAL,3,50; + bonus3 bAutoSpellWhenHit,AL_BLESSING,10,50; + "> +}, +*/ +/* +{ + Id: 5145 + AegisName: "Carnival_Joker_Jester" + Name: "Carnival Jester" + Type: 5 + Buy: 10 + Weight: 100 + Loc: 256 + View: 89 + Script: <" bonus bAllStats,3; "> +}, +*/ +/* +{ + Id: 5147 + AegisName: "Baseball_Cap" + Name: "Baseball Cap" + Type: 5 + Buy: 0 + Weight: 200 + Def: 3 + Loc: 256 + View: 216 + Script: <" + bonus2 bExpAddRace,RC_Boss,50; + bonus2 bExpAddRace,RC_NonBoss,50; + "> +}, +*/ +/* +{ + Id: 5201 + AegisName: "Party_Hat_B" + Name: "2nd Anniversary Party Hat" + Type: 5 + Buy: 20 + Weight: 300 + Def: 3 + Loc: 256 + View: 144 + Script: <" bonus bAllStats,3; "> +}, +*/ +/* +{ + Id: 5202 + AegisName: "Pumpkin_Hat_" + Name: "Pumpkin Hat" + Type: 5 + Buy: 20 + Weight: 200 + Def: 2 + Loc: 256 + View: 206 + Script: <" + bonus bAllStats,2; + bonus2 bSubRace,RC_Demon,5; + bonus3 bAddMonsterDropItem,529,RC_DemiHuman,1500; + "> +}, +*/ +/* +{ + Id: 5204 + AegisName: "Event_Pierrot_Nose" + Name: "Rudolf's Red Nose" + Type: 5 + Buy: 20 + Weight: 100 + Loc: 1 + Refine: false + View: 49 + Script: <" + bonus2 bResEff,Eff_Blind,3000; + bonus2 bAddMonsterDropItem,12130,30; + "> +}, +*/ +/* +{ + Id: 5264 + AegisName: "Aussie_Flag_Hat" + Name: "Australian Flag Hat" + Type: 5 + Buy: 20 + Weight: 500 + Def: 4 + Loc: 256 + View: 304 + Script: <" bonus bAllStats,2; "> +}, +*/ +/* +{ + Id: 5356 + AegisName: "Pumpkin_Hat_H" + Name: "Pumpkin Hat" + Type: 5 + Buy: 20 + Weight: 200 + Def: 2 + Loc: 256 + View: 206 + Script: <" + bonus bAllStats,2; + bonus2 bSubRace,RC_Demon,5; + bonus2 bMagicAddRace,RC_Demon,5; + "> +}, +*/ +/* +{ + Id: 5811 + AegisName: "Santa_Beard" + Name: "Santa Beard" + Type: 5 + Buy: 20 + Weight: 100 + Def: 5 + Loc: 1 + Refine: false + View: 25 + Script: <" bonus2 bSubRace,RC_Brute,5; "> +}, +*/ +/* +{ + Id: 11702 + AegisName: "Moon_Cookie" + Name: "Moon Cookie" + Type: 11 + Buy: 0 + Weight: 10 + Script: <" + sc_end SC_POISON; + sc_end SC_SILENCE; + sc_end SC_BLIND; + sc_end SC_CONFUSION; + sc_end SC_CURSE; + sc_end SC_ILLUSION; + itemskill AL_BLESSING,7; + "> +}, +*/ +/* +{ + Id: 12131 + AegisName: "Lucky_Potion" + Name: "Lucky Potion" + Type: 0 + Buy: 2 + Weight: 100 + Script: <" sc_start SC_FOOD_LUK,180000,15; "> +}, +*/ +/* +{ + Id: 12143 + AegisName: "Red_Can" + Name: "Red Can" + Type: 2 + Buy: 50000 + Weight: 300 + Script: <" percentheal 25,25; "> +}, +*/ +// Event effect: Summon monster? Probably Rice_Cake. x_x +/* +{ + Id: 12199 + AegisName: "Rice_Scroll" + Name: "Rice Scroll" + Type: 2 + Buy: 0 +}, +*/ +/* +{ + Id: 12200 + AegisName: "Event_Cake" + Name: "Event Cake" + Type: 2 + Buy: 20 + Weight: 50 + Script: <" itemskill PR_MAGNIFICAT,3; "> +}, +*/ +/* +{ + Id: 12238 + AegisName: "New_Year_Rice_Cake_1" + Name: "New Year Rice Cake" + Type: 0 + Buy: 20 + Weight: 100 + Script: <" + percentheal 20,15; + sc_start SC_FOOD_STR,1200000,3; + sc_start SC_FOOD_INT,1200000,3; + sc_start SC_FOOD_LUK,1200000,3; + sc_start SC_MOVHASTE_INFINITY,5000,0; + "> +}, +*/ +/* +{ + Id: 12239 + AegisName: "New_Year_Rice_Cake_2" + Name: "New Year Rice Cake" + Type: 0 + Buy: 20 + Weight: 100 + Script: <" + percentheal 20,15; + sc_start SC_FOOD_DEX,1200000,3; + sc_start SC_FOOD_AGI,1200000,3; + sc_start SC_FOOD_VIT,1200000,3; + sc_start SC_MOVHASTE_INFINITY,5000,0; + "> +}, +*/ +// iRO St. Patrick's Day Event 2008 +// ============================================================= +/* +{ + Id: 12715 + AegisName: "Black_Treasure_Chest" + Name: "Black Treasure Chest" + Type: 2 + Buy: 0 + Weight: 200 + Script: <" callfunc "F_08stpattyseventbox"; "> +}, +*/ +// iRO Valentine's Day Event 2009 +// ============================================================= +/* +{ + Id: 12742 + AegisName: "Valentine_Gift_Box_M" + Name: "Valentine Gift Box" + Type: 2 + Buy: 10 + Script: <" getitem 7946,1; "> +}, +*/ +/* +{ + Id: 12743 + AegisName: "Valentine_Gift_Box_F" + Name: "Valentine Gift Box" + Type: 2 + Buy: 10 + Script: <" getitem 7947,1; "> +}, +*/ +/* +{ + Id: 12744 + AegisName: "Chocolate_Box" + Name: "Chocolate Box" + Type: 2 + Buy: 10 + Script: <" getitem 558,1; "> +}, +*/ +/* +{ + Id: 14466 + AegisName: "Valentine's_Emblem_Box" + Name: "Valentine's Emblem Box" + Type: 2 + Buy: 10 + Script: <" getitem 5817,1; "> +}, +*/ +/* +{ + Id: 7946 + AegisName: "Gold_Ring_Of_Valentine" + Name: "Gold Ring Of Valentine" + Type: 3 + Buy: 10 +}, +*/ +/* +{ + Id: 7947 + AegisName: "Silver_Ring_Of_Valentine" + Name: "Silver Ring Of Valentine" + Type: 3 + Buy: 10 +}, +*/ +/* +{ + Id: 7948 + AegisName: "Box" + Name: "Box" + Type: 3 + Buy: 10 + Weight: 10 +}, +*/ +/* +{ + Id: 5817 + AegisName: "Valentine's_Emblem" + Name: "Valentine's Emblem" + Type: 5 + Buy: 10 + Def: 3 + Loc: 136 + Refine: false + Script: <" + bonus bAtkRate,3; + bonus bMatkRate,3; + bonus bAllStats,2; + bonus bFlee,10; + bonus bAspd,1; + bonus bMdef,3; + bonus2 bSkillAtk,"AL_HEAL",10; + bonus2 bSkillHeal,AL_HEAL,10; + bonus2 bSkillHeal,AM_POTIONPITCHER,10; + bonus2 bAddItemHealRate,IG_Potion,10; + "> +}, +*/ +// iRO Halloween Event 2009 +// ============================================================= +/* +{ + Id: 5668 + AegisName: "Weird_Pumpkin_Hat" + Name: "Weird Pumpkin Hat" + Type: 5 + Buy: 20 + Def: 5 + Loc: 256 + View: 206 + Script: <" + bonus bMdef,5; + bonus2 bAddMonsterDropItem,12192,2500; + "> +}, +*/ +/* +{ + Id: 6298 + AegisName: "Crushed_Pumpkin" + Name: "Crushed Pumpkin" + Type: 3 + Buy: 0 +}, +*/ +/* +{ + Id: 6299 + AegisName: "Worn_Fabric" + Name: "Worn Fabric" + Type: 3 + Buy: 0 +}, +*/ +// Old Tuxedo and Wedding Dress, will display the outfit when worn. +// ================================================================== +/* +{ + Id: 2338 + AegisName: "Wedding_Dress" + Name: "Wedding Dress" + Type: 5 + Buy: 43000 + Weight: 500 + Job: 0xFFFFFFFE + Loc: 16 + OnEquipScript: <" sc_start SC_WEDDING,-1,0; "> + OnUnequipScript: <" sc_end SC_WEDDING; "> +}, +*/ +/* +{ + Id: 7170 + AegisName: "Tuxedo" + Name: "Tuxedo" + Type: 5 + Buy: 43000 + Weight: 10 + Job: 0xFFFFFFFE + Gender: 1 + Loc: 16 + OnEquipScript: <" sc_start SC_WEDDING,-1,0; "> + OnUnequipScript: <" sc_end SC_WEDDING; "> +}, +*/ +) -- cgit v1.2.3-70-g09d2