Browse Source

Fixes Increase Soil Card effects (#5948)

* Fixes #5940.
* Adjusts the damage change from target to user.
Thanks to @KrokusPokus!
Aleos 4 years ago
parent
commit
8fc0ab44cd
4 changed files with 12 additions and 12 deletions
  1. 5 5
      db/pre-re/item_db_etc.yml
  2. 5 5
      db/re/item_db_etc.yml
  3. 1 1
      sql-files/item_db_etc.sql
  4. 1 1
      sql-files/item_db_re_etc.sql

+ 5 - 5
db/pre-re/item_db_etc.yml

@@ -5529,11 +5529,11 @@ Body:
     Flags:
     Flags:
       BuyingStore: true
       BuyingStore: true
     Script: |
     Script: |
-      bonus2 bAddDamageClass,1285,-50;
-      bonus2 bAddDamageClass,1286,-50;
-      bonus2 bAddDamageClass,1287,-50;
-      bonus2 bAddDamageClass,1899,-50;
-      bonus2 bAddDamageClass,1900,-50;  
+      bonus2 bAddDefMonster,1285,-50;
+      bonus2 bAddDefMonster,1286,-50;
+      bonus2 bAddDefMonster,1287,-50;
+      bonus2 bAddDefMonster,1899,-50;
+      bonus2 bAddDefMonster,1900,-50;
   - Id: 4232
   - Id: 4232
     AegisName: Wild_Ginseng_Card
     AegisName: Wild_Ginseng_Card
     Name: Hermit Plant Card
     Name: Hermit Plant Card

+ 5 - 5
db/re/item_db_etc.yml

@@ -5833,11 +5833,11 @@ Body:
       BuyingStore: true
       BuyingStore: true
       DropEffect: CLIENT
       DropEffect: CLIENT
     Script: |
     Script: |
-      bonus2 bAddDamageClass,1285,-50;
-      bonus2 bAddDamageClass,1286,-50;
-      bonus2 bAddDamageClass,1287,-50;
-      bonus2 bAddDamageClass,1899,-50;
-      bonus2 bAddDamageClass,1900,-50;
+      bonus2 bAddDefMonster,1285,-50;
+      bonus2 bAddDefMonster,1286,-50;
+      bonus2 bAddDefMonster,1287,-50;
+      bonus2 bAddDefMonster,1899,-50;
+      bonus2 bAddDefMonster,1900,-50;
   - Id: 4232
   - Id: 4232
     AegisName: Wild_Ginseng_Card
     AegisName: Wild_Ginseng_Card
     Name: Hermit Plant Card
     Name: Hermit Plant Card

+ 1 - 1
sql-files/item_db_etc.sql

@@ -515,7 +515,7 @@ REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`wei
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`script`) VALUES (4228,'Sleeper_Card','Sleeper Card','Card',20,10,true,true,true,'bonus3 bAddMonsterDropItem,12031,RC_Fish,100;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`script`) VALUES (4228,'Sleeper_Card','Sleeper Card','Card',20,10,true,true,true,'bonus3 bAddMonsterDropItem,12031,RC_Fish,100;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_head_top`,`location_head_mid`,`location_head_low`,`flag_buyingstore`,`script`) VALUES (4229,'C_Tower_Manager_Card','Tower Keeper Card','Card',20,10,true,true,true,true,'bonus bInt,1;\nbonus bCastrate,-5;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_head_top`,`location_head_mid`,`location_head_low`,`flag_buyingstore`,`script`) VALUES (4229,'C_Tower_Manager_Card','Tower Keeper Card','Card',20,10,true,true,true,true,'bonus bInt,1;\nbonus bCastrate,-5;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`script`) VALUES (4230,'Shinobi_Card','Shinobi Card','Card',20,10,true,true,true,'bonus bAgi,1;\nbonus3 bAutoSpellWhenHit,"AS_CLOAKING",5,100;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`script`) VALUES (4230,'Shinobi_Card','Shinobi Card','Card',20,10,true,true,true,'bonus bAgi,1;\nbonus3 bAutoSpellWhenHit,"AS_CLOAKING",5,100;');
-REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_left_hand`,`flag_buyingstore`,`script`) VALUES (4231,'Increase_Soil_Card','Mi Gao Card','Card',20,10,true,true,'bonus2 bAddDamageClass,1285,-50;\nbonus2 bAddDamageClass,1286,-50;\nbonus2 bAddDamageClass,1287,-50;\nbonus2 bAddDamageClass,1899,-50;\nbonus2 bAddDamageClass,1900,-50;');
+REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_left_hand`,`flag_buyingstore`,`script`) VALUES (4231,'Increase_Soil_Card','Mi Gao Card','Card',20,10,true,true,'bonus2 bAddDefMonster,1285,-50;\nbonus2 bAddDefMonster,1286,-50;\nbonus2 bAddDefMonster,1287,-50;\nbonus2 bAddDefMonster,1899,-50;\nbonus2 bAddDefMonster,1900,-50;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`script`) VALUES (4232,'Wild_Ginseng_Card','Hermit Plant Card','Card',20,10,true,true,true,'bonus2 bAddItemGroupHealRate,IG_Herb,50;\nbonus3 bAddMonsterDropItem,507,RC_Plant,300;\nbonus3 bAddMonsterDropItem,508,RC_Plant,200;\nbonus3 bAddMonsterDropItem,509,RC_Plant,100;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`script`) VALUES (4232,'Wild_Ginseng_Card','Hermit Plant Card','Card',20,10,true,true,true,'bonus2 bAddItemGroupHealRate,IG_Herb,50;\nbonus3 bAddMonsterDropItem,507,RC_Plant,300;\nbonus3 bAddMonsterDropItem,508,RC_Plant,200;\nbonus3 bAddMonsterDropItem,509,RC_Plant,100;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4233,'Baby_Leopard_Card','Baby Leopard Card','Card',20,10,true,true,'bonus bLuk,3;\nif (BaseClass == Job_Merchant)\n   bonus bUnbreakableArmor;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4233,'Baby_Leopard_Card','Baby Leopard Card','Card',20,10,true,true,'bonus bLuk,3;\nif (BaseClass == Job_Merchant)\n   bonus bUnbreakableArmor;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4234,'Anolian_Card','Anolian Card','Card',20,10,true,true,'bonus3 bAutoSpellWhenHit,"AC_CONCENTRATION",1+9*(getskilllv("AC_CONCENTRATION") == 10),30;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4234,'Anolian_Card','Anolian Card','Card',20,10,true,true,'bonus3 bAutoSpellWhenHit,"AC_CONCENTRATION",1+9*(getskilllv("AC_CONCENTRATION") == 10),30;');

+ 1 - 1
sql-files/item_db_re_etc.sql

@@ -517,7 +517,7 @@ REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4228,'Sleeper_Card','Sleeper Card','Card',20,10,true,true,true,'CLIENT','bonus3 bAddMonsterDropItem,12031,RC_Fish,100;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4228,'Sleeper_Card','Sleeper Card','Card',20,10,true,true,true,'CLIENT','bonus3 bAddMonsterDropItem,12031,RC_Fish,100;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_head_top`,`location_head_mid`,`location_head_low`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4229,'C_Tower_Manager_Card','Tower Keeper Card','Card',20,10,true,true,true,true,'CLIENT','bonus bInt,1;\nbonus bVariableCastrate,-5;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_head_top`,`location_head_mid`,`location_head_low`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4229,'C_Tower_Manager_Card','Tower Keeper Card','Card',20,10,true,true,true,true,'CLIENT','bonus bInt,1;\nbonus bVariableCastrate,-5;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4230,'Shinobi_Card','Shinobi Card','Card',20,10,true,true,true,'CLIENT','bonus bAgi,1;\nbonus3 bAutoSpellWhenHit,"AS_CLOAKING",5,100;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4230,'Shinobi_Card','Shinobi Card','Card',20,10,true,true,true,'CLIENT','bonus bAgi,1;\nbonus3 bAutoSpellWhenHit,"AS_CLOAKING",5,100;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_left_hand`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4231,'Increase_Soil_Card','Mi Gao Card','Card',20,10,true,true,'CLIENT','bonus2 bAddDamageClass,1285,-50;\nbonus2 bAddDamageClass,1286,-50;\nbonus2 bAddDamageClass,1287,-50;\nbonus2 bAddDamageClass,1899,-50;\nbonus2 bAddDamageClass,1900,-50;');
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_left_hand`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4231,'Increase_Soil_Card','Mi Gao Card','Card',20,10,true,true,'CLIENT','bonus2 bAddDefMonster,1285,-50;\nbonus2 bAddDefMonster,1286,-50;\nbonus2 bAddDefMonster,1287,-50;\nbonus2 bAddDefMonster,1899,-50;\nbonus2 bAddDefMonster,1900,-50;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4232,'Wild_Ginseng_Card','Hermit Plant Card','Card',20,10,true,true,true,'CLIENT','bonus2 bAddItemGroupHealRate,IG_Herb,50;\nbonus3 bAddMonsterDropItem,507,RC_Plant,300;\nbonus3 bAddMonsterDropItem,508,RC_Plant,200;\nbonus3 bAddMonsterDropItem,509,RC_Plant,100;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_accessory`,`location_left_accessory`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4232,'Wild_Ginseng_Card','Hermit Plant Card','Card',20,10,true,true,true,'CLIENT','bonus2 bAddItemGroupHealRate,IG_Herb,50;\nbonus3 bAddMonsterDropItem,507,RC_Plant,300;\nbonus3 bAddMonsterDropItem,508,RC_Plant,200;\nbonus3 bAddMonsterDropItem,509,RC_Plant,100;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4233,'Baby_Leopard_Card','Baby Leopard Card','Card',20,10,true,true,'CLIENT','bonus bLuk,3;\nif (BaseClass == Job_Merchant)\n   bonus bUnbreakableArmor;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4233,'Baby_Leopard_Card','Baby Leopard Card','Card',20,10,true,true,'CLIENT','bonus bLuk,3;\nif (BaseClass == Job_Merchant)\n   bonus bUnbreakableArmor;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4234,'Anolian_Card','Anolian Card','Card',20,10,true,true,'CLIENT','bonus3 bAutoSpellWhenHit,"AC_CONCENTRATION",1+9*(getskilllv("AC_CONCENTRATION") == 10),30;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4234,'Anolian_Card','Anolian Card','Card',20,10,true,true,'CLIENT','bonus3 bAutoSpellWhenHit,"AC_CONCENTRATION",1+9*(getskilllv("AC_CONCENTRATION") == 10),30;');