From 39d9b1222999fd3d96e88dbf0b3129d94c4685be Mon Sep 17 00:00:00 2001 From: Pokye <98105181+Pokye@users.noreply.github.com> Date: Fri, 17 Jun 2022 12:22:52 -0300 Subject: [PATCH] Added missing script on some items (#7036) Fixed #7022 Thanks to @XanKriegor1 ! --- db/re/item_db_equip.yml | 3 ++ db/re/item_db_usable.yml | 2 + db/re/item_group_db.yml | 90 ++++++++++++++++++++++++++++++++++++ src/map/itemdb.hpp | 1 + src/map/script_constants.hpp | 1 + 5 files changed, 97 insertions(+) diff --git a/db/re/item_db_equip.yml b/db/re/item_db_equip.yml index 502ff38a87..341f62ac25 100644 --- a/db/re/item_db_equip.yml +++ b/db/re/item_db_equip.yml @@ -38242,6 +38242,9 @@ Body: Script: | bonus bMaxSP,-300; skill "MG_SIGHT",1; + bonus2 bAddMonsterDropItem,970,50; + bonus2 bAddMonsterDropItem,971,50; + bonus2 bAddMonsterDropItem,972,50; UnEquipScript: | sc_end SC_SIGHT; - Id: 2977 diff --git a/db/re/item_db_usable.yml b/db/re/item_db_usable.yml index 9bed92cc28..e57c263430 100644 --- a/db/re/item_db_usable.yml +++ b/db/re/item_db_usable.yml @@ -10970,6 +10970,8 @@ Body: Weight: 100 Flags: BuyingStore: true + Script: | + getgroupitem(IG_Splendid_Box2); - Id: 12609 AegisName: Old_Ore_Box Name: Old Ore Box diff --git a/db/re/item_group_db.yml b/db/re/item_group_db.yml index 1e666e4c26..ed0f4297f8 100644 --- a/db/re/item_group_db.yml +++ b/db/re/item_group_db.yml @@ -18003,6 +18003,96 @@ Body: Rate: 1 - Item: Mystic_Bow Rate: 2 + - Group: Splendid_Box2 + SubGroups: + - SubGroup: 1 + List: + - Item: Krasnaya + Rate: 232 + - Item: Alca_Bringer + Rate: 232 + - Item: Chrome_Twohand_Sword + Rate: 232 + - Item: Krishna + Rate: 232 + - Item: Cakram + Rate: 232 + - Item: Durga + Rate: 232 + - Item: Vecer_Axe + Rate: 232 + - Item: Giant_Axe + Rate: 232 + - Item: Hunting_Spear + Rate: 232 + - Item: Imperial_Spear + Rate: 232 + - Item: Rafini_Staff + Rate: 232 + - Item: Falken_Blitz + Rate: 232 + - Item: Elven_Bow + Rate: 232 + - Item: Green_Whistle + Rate: 232 + - Item: Stem_Whip + Rate: 232 + - Item: Rotha_Shield + Rate: 232 + - Item: Imperial_Guard + Rate: 232 + - Item: Elven_Ears + Rate: 232 + - Item: Diabolus_Robe + Rate: 232 + - Item: Diabolus_Armor + Rate: 232 + - Item: Dragon_Vest + Rate: 232 + - Item: Variant_Shoes + Rate: 232 + - Item: Tidal_Shoes + Rate: 232 + - Item: Black_Leather_Boots + Rate: 232 + - Item: Diabolus_Boots + Rate: 232 + - Item: Black_Leather_Boots_ + Rate: 232 + - Item: Diabolus_Manteau + Rate: 232 + - Item: Dragon_Manteau + Rate: 232 + - Item: Piece_Of_Angent_Skin + Rate: 232 + - Item: Bison_Horn + Rate: 232 + - Item: Krieg + Rate: 232 + - Item: Weihna + Rate: 232 + - Item: Black_Wing + Rate: 232 + - Item: Twin_Edge_B + Rate: 232 + - Item: Twin_Edge_R + Rate: 232 + - Item: Ruber + Rate: 232 + - Item: Bone_Plate + Rate: 232 + - Item: Ebone_Armor + Rate: 232 + - Item: Erde + Rate: 232 + - Item: Red_Square_Bag + Rate: 232 + - Item: Carga_Mace + Rate: 232 + - Item: Red_Ether_Bag + Rate: 232 + - Item: Mystic_Bow + Rate: 232 - Group: SPRING_FESTIVAL_SCROLL SubGroups: - SubGroup: 1 diff --git a/src/map/itemdb.hpp b/src/map/itemdb.hpp index d94f7d7a24..4cdc74bf68 100644 --- a/src/map/itemdb.hpp +++ b/src/map/itemdb.hpp @@ -306,6 +306,7 @@ enum e_random_item_group { IG_A_GRADE_COIN_BAG, IG_ADVANCED_WEAPONS_BOX, IG_SPLENDID_BOX, + IG_SPLENDID_BOX2, IG_CARDALBUM_ARMOR, IG_CARDALBUM_HELM, IG_CARDALBUM_ACC, diff --git a/src/map/script_constants.hpp b/src/map/script_constants.hpp index 2bef3c1557..13e5ad06f5 100644 --- a/src/map/script_constants.hpp +++ b/src/map/script_constants.hpp @@ -5071,6 +5071,7 @@ export_constant(IG_A_GRADE_COIN_BAG); export_constant(IG_ADVANCED_WEAPONS_BOX); export_constant(IG_SPLENDID_BOX); + export_constant(IG_SPLENDID_BOX2); export_constant(IG_CARDALBUM_ARMOR); export_constant(IG_CARDALBUM_HELM); export_constant(IG_CARDALBUM_ACC);