Index: sql/item_armor.sql =================================================================== --- sql/item_armor.sql (revision 3803) +++ sql/item_armor.sql (working copy) @@ -9606,7 +9606,7 @@ INSERT INTO `item_armor` VALUES ('21340', 'halakaala', '99', '4194303', '0', '0', '0', '4', '0'); INSERT INTO `item_armor` VALUES ('21341', 'oreiads_tathlum', '99', '1589788', '0', '0', '0', '8', '0'); INSERT INTO `item_armor` VALUES ('21342', 'erlenes_notebook', '99', '4194303', '0', '0', '0', '8', '0'); -INSERT INTO `item_armor` VALUES ('10293', 'chocobo_shirt', '1', '4194303', '0', '0', '0', '32', '0'); +INSERT INTO `item_armor` VALUES ('10293', 'chocobo_shirt', '1', '4194303', '309', '0', '0', '32', '0'); INSERT INTO `item_armor` VALUES ('27648', 'ares_mask_+1', '99', '8385', '0', '0', '0', '16', '0'); INSERT INTO `item_armor` VALUES ('27649', 'skadis_visor_+1', '99', '2426144', '0', '0', '0', '16', '0'); INSERT INTO `item_armor` VALUES ('27650', 'usukane_somen_+1', '99', '137218', '0', '0', '0', '16', '0'); Index: sql/item_mods.sql =================================================================== --- sql/item_mods.sql (revision 3803) +++ sql/item_mods.sql (working copy) @@ -37,6 +37,7 @@ -- Contenu de la table `item_mods` -- +INSERT INTO `item_mods` VALUES(10293, 1, 2); INSERT INTO `item_mods` VALUES(11265, 1, 1); INSERT INTO `item_mods` VALUES(11266, 1, 1); INSERT INTO `item_mods` VALUES(11267, 1, 1); @@ -681,6 +682,7 @@ INSERT INTO `item_mods` VALUES(11798, 13, 10); INSERT INTO `item_mods` VALUES(11798, 14, 10); INSERT INTO `item_mods` VALUES(11798, 23, 25); +INSERT INTO `item_mods` VALUES(11811, 1, 7); INSERT INTO `item_mods` VALUES(12108, 1, 30); INSERT INTO `item_mods` VALUES(12108, 8, 2); INSERT INTO `item_mods` VALUES(12108, 9, 2); Index: sql/item_usable.sql =================================================================== --- sql/item_usable.sql (revision 3803) +++ sql/item_usable.sql (working copy) @@ -1660,6 +1660,7 @@ INSERT INTO `item_usable` VALUES (10269, 0, 'creek_top_+1', 1, 8, 0, 0, 1, 30, 86400, 0); INSERT INTO `item_usable` VALUES (10270, 0, 'river_top_+1', 1, 8, 0, 0, 1, 30, 86400, 0); INSERT INTO `item_usable` VALUES (10271, 0, 'dune_gilet_+1', 1, 8, 0, 0, 1, 30, 86400, 0); +INSERT INTO `item_usable` VALUES (10293, 0, 'chocobo_shirt', 1, 4, 0, 0, 1, 30, 72000, 0); INSERT INTO `item_usable` VALUES (10875, 0, 'snowman_cap', 1, 1, 0, 0, 1, 30, 3600, 0); INSERT INTO `item_usable` VALUES (11273, 0, 'custom_gilet_+1', 1, 8, 0, 0, 1, 30, 72000, 0); INSERT INTO `item_usable` VALUES (11274, 0, 'custom_top_+1', 1, 8, 0, 0, 1, 30, 72000, 0); Index: scripts/globals/items/chocobo_shirt.lua =================================================================== --- scripts/globals/items/chocobo_shirt.lua (revision 0) +++ scripts/globals/items/chocobo_shirt.lua (working copy) @@ -0,0 +1,31 @@ +----------------------------------------- +-- ID: 10293 +-- Chocobo Shirt +-- Gives 4-12? crystals based on the day +----------------------------------------- + +----------------------------------------- +-- OnItemCheck +----------------------------------------- + +function onItemCheck(target) + local result = 0; + if (target:getFreeSlotsCount() == 0) then + result = 308; + end + return result; +end; + +----------------------------------------- +-- OnItemUse +----------------------------------------- + +function onItemUse(target) + local quantity = math.random(4,12); + + -- Days: 0-7: Fire, Earth, Water, Wind, Ice, Lightn, Light, Dark (src/map/vana_time.h) + local day = VanadielDayElement(); + local crystals = {0x1000,0x1003,0x1005,0x1002,0x1001,0x1004,0x1006,0x1007}; + + target:addItem( crystals[day + 1], quantity); +end;