Selaa lähdekoodia

Corrected script for some item (#7392)

* Added missing ; on active_transform and various fixes

Fixed #7382

Thanks to @kaninhot004 !
idk-whoami 2 vuotta sitten
vanhempi
commit
73112801c6
3 muutettua tiedostoa jossa 26 lisäystä ja 26 poistoa
  1. 9 9
      db/re/item_combos.yml
  2. 12 12
      db/re/item_db_equip.yml
  3. 5 5
      db/re/item_db_etc.yml

+ 9 - 9
db/re/item_combos.yml

@@ -12566,13 +12566,13 @@ Body:
           - SweetNightM_Card
           - Vampire's_Servant
     Script: |
-      bonus bMatkRate,(getrefine()/3);
+      bonus bMatkRate,(getequiprefinerycnt(EQI_ARMOR)/3);
   - Combos:
       - Combo:
           - LivingDead_Card
           - Vampire's_Servant
     Script: |
-      bonus bAtkRate,(getrefine()/3);
+      bonus bAtkRate,(getequiprefinerycnt(EQI_ARMOR)/3);
   - Combos:
       - Combo:
           - Ill_Dracula_Card
@@ -19452,8 +19452,8 @@ Body:
           - Wizardy_Staff
     Script: |
       .@r = getequiprefinerycnt(EQI_HAND_R);
-      bonus bMatkRate,6*.@r;
-      bonus bDex,2*.@r;
+      bonus bMatkRate,6;
+      bonus bDex,2;
       bonus bVariableCastrate,-.@r;
   - Combos:
       - Combo:
@@ -20895,7 +20895,7 @@ Body:
           - DesireOfDeath
           - aegis_310655
     Script: |
-      autobonus "{ bonus bFlee,150; bonus bDelayrate,-100; }",50,10000,BF_WEAPON,"{ active_transform 1635,10000 }";
+      autobonus "{ bonus bFlee,150; bonus bDelayrate,-100; }",50,10000,BF_WEAPON,"{ active_transform 1635,10000; }";
       /*Unknow Rate*/
   - Combos:
       - Combo:
@@ -22531,7 +22531,7 @@ Body:
           - Dynast
           - aegis_310655
     Script: |
-      autobonus "{ bonus bStr,200; }",50,5000,BF_WEAPON,"{ active_transform 2221,5000 }";
+      autobonus "{ bonus bStr,200; }",50,5000,BF_WEAPON,"{ active_transform 2221,5000; }";
   - Combos:
       - Combo:
           - FrontiaBoots
@@ -26161,13 +26161,13 @@ Body:
           - Phantom_Of_Masquerade    # 19497
           - Thanatos_Card    # 4399
     Script: |
-      bonus bBaseAtk,pow(getrefine(),2)*4;
+      bonus bBaseAtk,pow(getequiprefinerycnt(EQI_HEAD_TOP),2)*4;
   - Combos:
       - Combo:
           - Phantom_Of_Masquerade    # 19497
           - SLD_Thanatos_Card_J    # 300338
     Script: |
-      bonus bBaseAtk,pow(getrefine(),2)*2;
+      bonus bBaseAtk,pow(getequiprefinerycnt(EQI_HEAD_TOP),2)*2;
   - Combos:
       - Combo:
           - Walking_Stick_    # 1675
@@ -27815,7 +27815,7 @@ Body:
           - Card_Of_Reaper    # 27133
     Script: |
       bonus bAgi,3;
-      bonus Flee,50;
+      bonus bFlee,50;
       bonus2 bSkillAtk,"GC_ROLLINGCUTTER",50;
   - Combos:
       - Combo:

+ 12 - 12
db/re/item_db_equip.yml

@@ -30794,7 +30794,7 @@ Body:
     Refineable: true
     Script: |
       bonus bMdef,3;
-      bonus3 bAutoSpellwhenhit,"AL_HEAL",max(1,getskilllv("AL_HEAL")),20;
+      bonus3 bAutoSpellWhenHit,"AL_HEAL",max(1,getskilllv("AL_HEAL")),20;
   - Id: 2546
     AegisName: Beach_Manteau
     Name: Beach Manteau
@@ -51983,7 +51983,7 @@ Body:
       bonus2 bSubEle,Ele_Water,7;
       bonus2 bAddMonsterDropItem,12354,100;
       bonus2 bAddMonsterDropItem,530,300;
-      bonus5 bAutoSpellwhenhit,"BA_FROSTJOKER",(getrefine()>7?5:1),20,BF_WEAPON|BF_MAGIC,0;
+      bonus5 bAutoSpellWhenHit,"BA_FROSTJOKER",(getrefine()>7?5:1),20,BF_WEAPON|BF_MAGIC,0;
   - Id: 5739
     AegisName: Sagittarius_Crown
     Name: Sagittarius Crown
@@ -68071,7 +68071,7 @@ Body:
     Refineable: true
     Script: |
       .@r = getrefine();
-      bonus bflee,5*(.@r/2);
+      bonus bFlee,5*(.@r/2);
       if (.@r>=9)
          bonus2 bSkillAtk,"KO_HAPPOKUNAI",20;
   - Id: 15179
@@ -76956,7 +76956,7 @@ Body:
     View: 808
     Script: |
       autobonus "{ bonus bAtkEle,Ele_Fire; }",10,180000,BF_WEAPON,"{ specialeffect2 EF_ENHANCE; }";
-      bonus3 bAutospell,"AS_SONICBLOW",5,10;
+      bonus3 bAutoSpell,"AS_SONICBLOW",5,10;
   - Id: 18660
     AegisName: Indi_Feather_Band
     Name: Indian Feather Headband
@@ -77358,7 +77358,7 @@ Body:
     View: 827
     Script: |
       bonus bVit,2;
-      bonus bMaxHp,100;
+      bonus bMaxHP,100;
   - Id: 18682
     AegisName: Teardrop
     Name: Teardrop
@@ -78655,7 +78655,7 @@ Body:
     View: 105
     Script: |
       bonus bVit,1;
-      bonus bMaxHprate,5;
+      bonus bMaxHPrate,5;
       .@r = getrefine();
       if (.@r>=7)
          bonus2 bSubEle,Ele_Neutral,1;
@@ -85697,7 +85697,7 @@ Body:
     View: 102
     Script: |
       bonus bAllStats,1;
-      bonus MaxHp,200;
+      bonus bMaxHP,200;
   - Id: 19311
     AegisName: Greater_Dracul_Horn
     Name: Greater Dracule Horn
@@ -111178,7 +111178,7 @@ Body:
     Script: |
       .@r = getrefine();
       bonus bMaxHP,.@r*10;
-      bonus bMDef,1;
+      bonus bMdef,1;
       if (.@r >= 7) {
          bonus bMaxHPrate,3;
       }
@@ -153203,10 +153203,10 @@ Body:
          .@dmg = 15;
       if (.@r>=11)
          .@dmg += 20;
-      bonus2 RC_Brute,r,.@dmg;
-      bonus2 RC_Fish,r,.@dmg;
-      bonus2 RC_Brute,r,.@dmg;
-      bonus2 RC_Fish,r,.@dmg;
+      bonus2 bAddRace,RC_Brute,.@dmg;
+      bonus2 bAddRace,RC_Fish,.@dmg;
+      bonus2 bAddRace,RC_Brute,.@dmg;
+      bonus2 bAddRace,RC_Fish,.@dmg;
   - Id: 470125
     AegisName: E_Auto_Leg_A
     Name: Automatic Leg Type A (bind)    # !todo check english name

+ 5 - 5
db/re/item_db_etc.yml

@@ -36795,7 +36795,7 @@ Body:
       } else if (.@r >= 7) {
          .@mdef += 3;
       }
-      bonus bMDef,.@mdef;
+      bonus bMdef,.@mdef;
   - Id: 25672
     AegisName: EP17_1_EVT05
     Name: Modification Module (Vit)
@@ -44033,7 +44033,7 @@ Body:
     Type: Card
     SubType: Enchant
     Script: |
-      autobonus "{ bonus bStr,200; }",50,5000,BF_WEAPON,"{ active_transform 2221,5000 }";
+      autobonus "{ bonus bStr,200; }",50,5000,BF_WEAPON,"{ active_transform 2221,5000; }";
       /*Unknow Rate*/
   - Id: 29438
     AegisName: Z-Knockback
@@ -49372,7 +49372,7 @@ Body:
     Flags:
       DropEffect: CLIENT
     Script: |
-      bonus bMAtkRate,10;
+      bonus bMatkRate,10;
       bonus2 bSubRace,RC_Demon,-5;
       bonus bMaxSPrate,-50;
   - Id: 300354
@@ -50187,7 +50187,7 @@ Body:
     Type: Card
     SubType: Enchant
     Script: |
-      autobonus "{ bonus bFlee,150; bonus bDelayrate,-100; }",50,10000,BF_WEAPON,"{ active_transform 1635,10000 }";
+      autobonus "{ bonus bFlee,150; bonus bDelayrate,-100; }",50,10000,BF_WEAPON,"{ active_transform 1635,10000; }";
       /*Unknow Rate*/
   - Id: 310076
     AegisName: Cassock_Str
@@ -62219,7 +62219,7 @@ Body:
     SubType: Enchant
     Script: |
       .@r = getrefine();
-      bonus bMAtk,20*(.@r/3);
+      bonus bMatk,20*(.@r/3);
       bonus2 bMagicAtkEle,Ele_All,5*(.@r/3);
       if (.@r>=9) {
         bonus bMatkRate,10;