Преглед изворни кода

Resolves some statuses ending early from items (#5817)

* Partial fix for #5766.
* Items that Auto Guard, Ruwach, or Angelus skills should stay active when the item is removed.
Thanks to @mrjnumber1!
Aleos пре 3 година
родитељ
комит
b857e2749a

+ 0 - 4
db/pre-re/item_db_equip.yml

@@ -28300,8 +28300,6 @@ Body:
       bonus bMaxHP,50;
       bonus bMaxSP,10;
       skill "AL_RUWACH",1;
-    UnEquipScript: |
-      sc_end SC_RUWACH;
   - Id: 5213
     AegisName: Black_Bunny_Band
     Name: Sheila Hairnet
@@ -31603,8 +31601,6 @@ Body:
     Script: |
       bonus bVit,1;
       skill "AL_ANGELUS",1;
-    UnEquipScript: |
-      sc_end SC_ANGELUS;
   - Id: 5383
     AegisName: Hunting_Cap
     Name: Hunter's Cap

+ 0 - 2
db/pre-re/item_db_etc.yml

@@ -6451,8 +6451,6 @@ Body:
       BuyingStore: true
     Script: |
       bonus3 bAutoSpellWhenHit,"CR_AUTOGUARD",3+7*(getskilllv("CR_AUTOGUARD") == 10),30;
-    UnEquipScript: |
-      sc_end SC_AUTOGUARD;
   - Id: 4300
     AegisName: Chimera_Card
     Name: Chimera Card

+ 0 - 4
db/re/item_db_equip.yml

@@ -41773,8 +41773,6 @@ Body:
       bonus bMaxHP,50;
       bonus bMaxSP,10;
       skill "AL_RUWACH",1;
-    UnEquipScript: |
-      sc_end SC_RUWACH;
   - Id: 5213
     AegisName: Black_Bunny_Band
     Name: Sheila Hairnet
@@ -44957,8 +44955,6 @@ Body:
     Script: |
       bonus bVit,1;
       skill "AL_ANGELUS",1;
-    UnEquipScript: |
-      sc_end SC_ANGELUS;
   - Id: 5383
     AegisName: Hunting_Cap
     Name: Hunter's Cap

+ 0 - 2
db/re/item_db_etc.yml

@@ -6820,8 +6820,6 @@ Body:
       DropEffect: CLIENT
     Script: |
       bonus3 bAutoSpellWhenHit,"CR_AUTOGUARD",3+7*(getskilllv("CR_AUTOGUARD") == 10),30;
-    UnEquipScript: |
-      sc_end SC_AUTOGUARD;
   - Id: 4300
     AegisName: Chimera_Card
     Name: Chimera Card

+ 2 - 2
sql-files/item_db_equip.sql

@@ -1333,7 +1333,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`,`defense`,`location_head_top`,`armor_level`,`refineable`,`view`) VALUES (5209,'Yellow_Baseball_Cap','Love Dad Cap','Armor',20,300,2,true,1,true,263);
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`) VALUES (5210,'Flying_Angel','Flapping Angel Wing','Armor',20,300,1,true,1,10,true,264,100,true,true,true,'bonus bCastrate,-3;\nbonus bAspdRate,3;\nbonus bInt,1;\nbonus bAgi,1;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5211,'Dress_Hat','Dress Hat','Armor',200,2,1,true,1,20,true,265,'bonus bMdef,7;\nbonus bStr,1;\nbonus bInt,1;\nbonus2 bAddClass,Class_All,2;\nbonus bMAtkRate,2;\nbonus bHealPower,5;\nif (getrefine()>=7) {\n   bonus2 bAddClass,Class_All,1;\n   bonus bMAtkRate,1;\n   bonus bHealPower,1;\n}');
-REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`,`unequip_script`) VALUES (5212,'Satellite_Hairband','Satellite Hairband','Armor',1000,3,1,true,1,30,true,266,'bonus bMaxHP,50;\nbonus bMaxSP,10;\nskill "AL_RUWACH",1;','sc_end SC_RUWACH;');
+REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5212,'Satellite_Hairband','Satellite Hairband','Armor',1000,3,1,true,1,30,true,266,'bonus bMaxHP,50;\nbonus bMaxSP,10;\nskill "AL_RUWACH",1;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5213,'Black_Bunny_Band','Sheila Hairnet','Armor',200,2,true,1,1,true,267,'bonus bAgi,2;\nbonus bMdef,3;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`location_head_top`,`location_head_mid`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5214,'Moonlight_Flower_Hat','Moonlight Flower Hat','Armor',200,3,true,true,1,1,true,268,'bonus bDex,2;\nbonus3 bAutoSpell,"AL_INCAGI",1,50;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`job_all`,`job_novice`,`job_supernovice`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`) VALUES (5215,'Angelic_Chain_','Evolved Angel Wing','Armor',20,100,2,true,false,false,true,1,true,38,100,true,true,true,'bonus bMdef,3;\nbonus bDex,1;\nbonus bInt,1;\nbonus2 bSubRace,RC_Demon,3;');
@@ -1503,7 +1503,7 @@ REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`wei
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5379,'Balloon_Hat','Tam','Armor',800,3,1,true,1,50,true,385,'bonus bMdef,2;\nbonus bMatkRate,2+(getrefine()/2);');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`) VALUES (5380,'Fish_Head_Hat','Fish Head Hat','Armor',20,400,1,true,1,true,386,100,true,true,true,'bonus3 bAutoSpell,"SA_FROSTWEAPON",1,5;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`) VALUES (5381,'Santa_Poring_Hat','Santa Poring Hat','Armor',20,100,2,1,true,1,387,100,true,true,true,'bonus bMdef,2;\nbonus2 bAddEle,Ele_Dark,3;\nbonus2 bSubEle,Ele_Dark,3;');
-REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`,`unequip_script`) VALUES (5382,'Bell_Ribbon','Bell Ribbon','Armor',20,200,3,1,true,1,true,388,100,true,true,true,'bonus bVit,1;\nskill "AL_ANGELUS",1;','sc_end SC_ANGELUS;');
+REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`) VALUES (5382,'Bell_Ribbon','Bell Ribbon','Armor',20,200,3,1,true,1,true,388,100,true,true,true,'bonus bVit,1;\nskill "AL_ANGELUS",1;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`job_all`,`job_novice`,`job_supernovice`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`script`) VALUES (5383,'Hunting_Cap','Hunter\'s Cap','Armor',20,250,3,1,true,false,false,true,1,50,true,389,100,true,true,true,'bonus bLuk,1;\nbonus2 bAddRace,RC_Brute,10;\nbonus2 bAddRace,RC_Player_Doram,10;\nbonus2 bAddRace,RC_DemiHuman,5;\nbonus2 bAddRace,RC_Player_Human,5;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5384,'Santa_Hat_1','Twin Pompom By JB','Armor',20,200,1,1,true,1,20,true,390,'bonus bLuk,3;\nskill "WZ_ESTIMATION",1;\nbonus3 bAutoSpell,"AL_INCAGI",1,500;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`trade_nosell`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`,`script`,`unequip_script`) VALUES (5385,'Yoyo_Hat','Yoyo Hat','Armor',20,300,1,true,1,20,true,391,100,true,true,true,true,true,'skill "TF_HIDING", 1;','sc_end SC_HIDING;');

+ 1 - 1
sql-files/item_db_etc.sql

@@ -583,7 +583,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_head_top`,`location_head_mid`,`location_head_low`,`flag_buyingstore`,`script`) VALUES (4296,'Cramp_Card','Cramp Card','Card',20,10,true,true,true,true,'bonus2 bGetZenyNum,500,1;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_hand`,`flag_buyingstore`,`script`) VALUES (4297,'Cruiser_Card','Cruiser Card','Card',20,10,true,true,'bonus bCritAtkRate,10;\nbonus2 bCriticalAddRace,RC_Brute,7;\nbonus2 bCriticalAddRace,RC_Player_Doram,7;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4298,'Cremy_Fear_Card','Creamy Fear Card','Card',20,10,true,true,'bonus2 bAddEffWhenHit,Eff_Confusion,600;');
-REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`,`unequip_script`) VALUES (4299,'Clock_Card','Clock Card','Card',20,10,true,true,'bonus3 bAutoSpellWhenHit,"CR_AUTOGUARD",3+7*(getskilllv("CR_AUTOGUARD") == 10),30;','sc_end SC_AUTOGUARD;');
+REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4299,'Clock_Card','Clock Card','Card',20,10,true,true,'bonus3 bAutoSpellWhenHit,"CR_AUTOGUARD",3+7*(getskilllv("CR_AUTOGUARD") == 10),30;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4300,'Chimera_Card','Chimera Card','Card',20,10,true,true,'bonus2 bAddEffWhenHit,Eff_Poison,300+600*(BaseJob == Job_Assassin);');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4301,'Killer_Mantis_Card','Killer Mantis Card','Card',20,10,true,true,'bonus2 bAddEffWhenHit,Eff_Bleeding,600;');
 REPLACE INTO `item_db` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`script`) VALUES (4302,'Tao_Gunka_Card','Tao Gunka Card','Card',20,10,true,true,'bonus bMaxHPrate,100;\nbonus bDef,-50;\nbonus bMdef,-50;');

+ 2 - 2
sql-files/item_db_re_equip.sql

@@ -1900,7 +1900,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`,`job_all`,`job_novice`,`job_supernovice`,`location_head_top`,`armor_level`,`refineable`,`view`) VALUES (5209,'Yellow_Baseball_Cap','Love Dad Cap','Armor',20,300,true,false,false,true,1,true,263);
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`script`) VALUES (5210,'Flying_Angel','Flapping Angel Wing','Armor',20,300,3,true,1,10,true,264,100,true,'bonus bVariableCastrate,-3;\nbonus bAspdRate,3;\nbonus bInt,1;\nbonus bAgi,1;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5211,'Dress_Hat','Dress Hat','Armor',200,3,1,true,1,20,true,265,'bonus bMdef,7;\nbonus bStr,1;\nbonus bInt,1;\nbonus2 bAddClass,Class_All,2;\nbonus bMatkRate,2;\nbonus bHealPower,5;\nif (getrefine()>=7) {\n   bonus2 bAddClass,Class_All,1;\n   bonus bMatkRate,1;\n   bonus bHealPower,1;\n}');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`,`unequip_script`) VALUES (5212,'Satellite_Hairband','Satellite Hairband','Armor',1000,6,1,true,1,30,true,266,'bonus bMaxHP,50;\nbonus bMaxSP,10;\nskill "AL_RUWACH",1;','sc_end SC_RUWACH;');
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5212,'Satellite_Hairband','Satellite Hairband','Armor',1000,6,1,true,1,30,true,266,'bonus bMaxHP,50;\nbonus bMaxSP,10;\nskill "AL_RUWACH",1;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5213,'Black_Bunny_Band','Sheila Hairnet','Armor',200,4,true,1,1,true,267,'bonus bAgi,2;\nbonus bMdef,3;\nbonus2 bAddMonsterDropItem,558,500;\nbonus2 bAddItemHealRate,558,2000;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`weight`,`defense`,`location_head_top`,`location_head_mid`,`armor_level`,`equip_level_min`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`script`) VALUES (5214,'Moonlight_Flower_Hat','Moonlight Flower Hat','Armor',200,3,true,true,1,1,true,268,100,true,'bonus bDex,2;\nbonus3 bAutoSpell,"AL_INCAGI",1,50;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`job_all`,`job_novice`,`job_supernovice`,`location_head_top`,`armor_level`,`refineable`,`view`,`script`) VALUES (5215,'Angelic_Chain_','Evolved Angel Wing','Armor',20,100,4,true,false,false,true,1,true,38,'bonus bMdef,3;\nbonus bDex,1;\nbonus bInt,1;\nbonus2 bSubRace,RC_Demon,3;');
@@ -2070,7 +2070,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`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5379,'Balloon_Hat','Tam','Armor',800,5,1,true,1,50,true,385,'bonus bMdef,2;\nbonus bMatkRate,2+(getrefine()/2);');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`script`) VALUES (5380,'Fish_Head_Hat','Fish Head Hat','Armor',20,400,2,true,1,true,386,100,true,'bonus3 bAutoSpell,"SA_FROSTWEAPON",1,50;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`view`,`trade_override`,`trade_nodrop`,`script`) VALUES (5381,'Santa_Poring_Hat','Santa Poring Hat','Armor',20,100,4,1,true,1,387,100,true,'bonus bMdef,2;\nbonus2 bAddEle,Ele_Dark,3;\nbonus2 bSubEle,Ele_Dark,3;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`script`,`unequip_script`) VALUES (5382,'Bell_Ribbon','Bell Ribbon','Armor',20,200,5,1,true,1,true,388,100,true,'bonus bVit,1;\nskill "AL_ANGELUS",1;','sc_end SC_ANGELUS;');
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`script`) VALUES (5382,'Bell_Ribbon','Bell Ribbon','Armor',20,200,5,1,true,1,true,388,100,true,'bonus bVit,1;\nskill "AL_ANGELUS",1;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`job_all`,`job_novice`,`job_supernovice`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (5383,'Hunting_Cap','Hunter\'s Cap','Armor',20,250,6,1,true,false,false,true,1,50,true,389,'bonus bLuk,1;\nbonus2 bAddRace,RC_Brute,10;\nbonus2 bAddRace,RC_Player_Doram,10;\nbonus2 bMagicAddRace,RC_Brute,5;\nbonus2 bMagicAddRace,RC_Player_Doram,5;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`slots`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`trade_override`,`trade_nodrop`,`script`) VALUES (5384,'Santa_Hat_1','Twin Pompom By JB','Armor',20,200,2,1,true,1,20,true,390,100,true,'bonus bLuk,3;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`defense`,`location_head_top`,`armor_level`,`equip_level_min`,`refineable`,`view`,`script`,`unequip_script`) VALUES (5385,'Yoyo_Hat','Yoyo Hat','Armor',20,300,2,true,1,20,true,391,'skill "TF_HIDING",1;','sc_end SC_HIDING;');

+ 1 - 1
sql-files/item_db_re_etc.sql

@@ -585,7 +585,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_head_top`,`location_head_mid`,`location_head_low`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4296,'Cramp_Card','Cramp Card','Card',20,10,true,true,true,true,'CLIENT','bonus2 bGetZenyNum,500,3;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_right_hand`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4297,'Cruiser_Card','Cruiser Card','Card',20,10,true,true,'CLIENT','bonus bCritAtkRate,10;\nbonus2 bCriticalAddRace,RC_Brute,7;\nbonus2 bCriticalAddRace,RC_Player_Doram,7;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4298,'Cremy_Fear_Card','Creamy Fear Card','Card',20,10,true,true,'CLIENT','bonus2 bAddEffWhenHit,Eff_Confusion,600;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`,`unequip_script`) VALUES (4299,'Clock_Card','Clock Card','Card',20,10,true,true,'CLIENT','bonus3 bAutoSpellWhenHit,"CR_AUTOGUARD",3+7*(getskilllv("CR_AUTOGUARD") == 10),30;','sc_end SC_AUTOGUARD;');
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4299,'Clock_Card','Clock Card','Card',20,10,true,true,'CLIENT','bonus3 bAutoSpellWhenHit,"CR_AUTOGUARD",3+7*(getskilllv("CR_AUTOGUARD") == 10),30;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4300,'Chimera_Card','Chimera Card','Card',20,10,true,true,'CLIENT','bonus2 bAddEffWhenHit,Eff_Poison,300+600*(BaseJob == Job_Assassin);');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4301,'Killer_Mantis_Card','Killer Mantis Card','Card',20,10,true,true,'CLIENT','bonus2 bAddEffWhenHit,Eff_Bleeding,600;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`price_buy`,`weight`,`location_armor`,`flag_buyingstore`,`flag_dropeffect`,`script`) VALUES (4302,'Tao_Gunka_Card','Tao Gunka Card','Card',20,10,true,true,'CLIENT','bonus bMaxHPrate,100;\nbonus bDefRate,-50;\nbonus bMdefRate,-50;');