瀏覽代碼

Corrected script for some item (#5733)

idk-whoami 4 年之前
父節點
當前提交
12143456ed
共有 2 個文件被更改,包括 21 次插入7 次删除
  1. 17 3
      db/re/item_db_equip.yml
  2. 4 4
      sql-files/item_db_re_equip.sql

+ 17 - 3
db/re/item_db_equip.yml

@@ -67804,8 +67804,9 @@ Body:
     Type: Weapon
     SubType: Bow
     Attack: 60
-    Range: 1
+    Range: 5
     Jobs:
+      Archer: true
       BardDancer: true
       Hunter: true
     Locations:
@@ -67813,7 +67814,9 @@ Body:
     WeaponLevel: 1
     EquipLevelMin: 1
     Script: |
-      bonus bUnbreakableWeapon;
+      bonus bMaxHP,100;
+      bonus2 bAddMonsterDropItem,11518,100;
+      /* CONFIRM The Rate*/
   - Id: 18105
     AegisName: Academy_Bow
     Name: Academy Bow
@@ -67824,13 +67827,16 @@ Body:
     Range: 5
     Slots: 1
     Jobs:
+      Archer: true
       BardDancer: true
       Hunter: true
     Locations:
       Both_Hand: true
     WeaponLevel: 1
-    EquipLevelMin: 1
+    EquipLevelMin: 30
     Refineable: true
+    Script: |
+      bonus bHit,20-(4*(BaseLevel/10));
   - Id: 18106
     AegisName: P_Bow3
     Name: Eden Bow III
@@ -68085,6 +68091,8 @@ Body:
     WeaponLevel: 3
     EquipLevelMin: 65
     Refineable: true
+    Script: |
+      bonus2 bAddMonsterDropItem,1753,200;
   - Id: 18116
     AegisName: Metal_Bow
     Name: Metal Bow
@@ -68398,6 +68406,12 @@ Body:
     Attack: 160
     Range: 5
     Slots: 1
+    Jobs:
+      Archer: true
+      BardDancer: true
+      Hunter: true
+      Rogue: true
+      Thief: true
     Locations:
       Both_Hand: true
     WeaponLevel: 4

+ 4 - 4
sql-files/item_db_re_equip.sql

@@ -3290,8 +3290,8 @@ REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`pr
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`location_left_hand`,`location_right_hand`,`weapon_level`,`script`) VALUES (18101,'F_Bow_Of_Rudra_C','Rudra Bow','Weapon','Bow',2,185,5,true,true,true,true,true,true,4,'bonus bAtkEle,Ele_Holy;\nbonus bInt,5;\nskill "AL_CURE",1;\nskill "AL_HEAL",1;\nbonus2 bResEff,Eff_Poison,5000;\nbonus2 bResEff,Eff_Curse,5000;\nbonus2 bResEff,Eff_Silence,5000;\nbonus2 bResEff,Eff_Confusion,5000;\nbonus2 bResEff,Eff_Blind,5000;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`script`) VALUES (18102,'E_Bow_Of_Rudra_C','Rudra Bow','Weapon','Bow',2,185,5,true,true,true,true,true,true,true,4,'bonus bAtkEle,Ele_Holy;\nbonus bInt,5;\nskill "AL_CURE",1;\nskill "AL_HEAL",1;\nbonus2 bResEff,Eff_Poison,5000;\nbonus2 bResEff,Eff_Curse,5000;\nbonus2 bResEff,Eff_Silence,5000;\nbonus2 bResEff,Eff_Confusion,5000;\nbonus2 bResEff,Eff_Blind,5000;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`weight`,`attack`,`magic_attack`,`range`,`job_barddancer`,`job_hunter`,`class_third`,`class_third_upper`,`class_third_baby`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18103,'Mystic_Bow','Mystic Bow','Weapon','Bow',1700,75,100,5,true,true,true,true,true,true,true,3,105,true,'bonus bInt,4;\nbonus2 bSkillUseSP,"WM_SEVERE_RAINSTORM",10;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`attack`,`range`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`script`) VALUES (18104,'Adventure_Bow','Adventure Bow','Weapon','Bow',60,1,true,true,true,true,1,1,'bonus bUnbreakableWeapon;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`weight`,`attack`,`range`,`slots`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`) VALUES (18105,'Academy_Bow','Academy Bow','Weapon','Bow',1200,90,5,1,true,true,true,true,1,1,true);
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`script`) VALUES (18104,'Adventure_Bow','Adventure Bow','Weapon','Bow',60,5,true,true,true,true,true,1,1,'bonus bMaxHP,100;\nbonus2 bAddMonsterDropItem,11518,100;\n/* CONFIRM The Rate*/');
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18105,'Academy_Bow','Academy Bow','Weapon','Bow',1200,90,5,1,true,true,true,true,true,1,30,true,'bonus bHit,20-(4*(BaseLevel/10));');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nocart`,`trade_nostorage`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`) VALUES (18106,'P_Bow3','Eden Bow III','Weapon','Bow',140,5,true,true,true,true,true,3,60,100,true,true,true,true,true,true,true);
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nosell`,`trade_nocart`,`trade_nostorage`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`,`script`) VALUES (18107,'Malang_Snow_Crab','Malangdo Crab','Weapon','Bow',120,5,true,true,true,true,true,true,true,1,50,100,true,true,true,true,true,true,true,true,'bonus bLuk,3;\nbonus bCritAtkRate,50;\nif (BaseLevel>99)\n   bonus bLongAtkRate,20;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`attack`,`range`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nosell`,`trade_nocart`,`trade_nostorage`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`,`script`) VALUES (18108,'Brindle_Eel','Zebra Eel','Weapon','Bow',180,5,true,true,true,true,1,50,100,true,true,true,true,true,true,true,true,'bonus bAgi,3;\nautobonus "{ bonus bAspd,2; }",10,5000,BF_WEAPON,"{ specialeffect2 EF_HASTEUP; }";\nif (BaseLevel>99)\n   bonus bLongAtkRate,20;');
@@ -3301,7 +3301,7 @@ REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`pr
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`trade_override`,`trade_nodrop`,`script`) VALUES (18112,'Upg_Bow','Upg Bow','Weapon','Bow',20,600,60,5,1,true,true,true,true,true,3,1,true,100,true,'.@r = getrefine();\nbonus bBaseAtk,(.@r*7);\nbonus bLongAtkRate,(.@r*2);\nif (BaseJob == Job_Hunter)\n   bonus bBaseAtk,20;\nif (BaseLevel>70)\n   bonus bBaseAtk,(((BaseLevel-70)/10)*10);');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18113,'Velum_Arbalest','Vellum Arbalest','Weapon','Bow',20,1100,50,5,true,true,true,true,true,true,true,4,95,true,'bonus3 bSPVanishRaceRate,RC_Player_Human,1000,4;\nbonus bAspd,-5;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18114,'Velum_CrossBow','Vellum CrossBow','Weapon','Bow',20,1100,110,5,true,true,true,true,true,true,true,4,95,true,'bonus2 bAddRace,RC_Player_Human,30+getrefine();\nbonus2 bIgnoreDefRaceRate,RC_Player_Human,30;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`) VALUES (18115,'Orc_Archer_Bow_','Orc Archer Bow','Weapon','Bow',20,1600,120,5,1,true,true,true,true,true,true,true,3,65,true);
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18115,'Orc_Archer_Bow_','Orc Archer Bow','Weapon','Bow',20,1600,120,5,1,true,true,true,true,true,true,true,3,65,true,'bonus2 bAddMonsterDropItem,1753,200;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nocart`,`trade_nostorage`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`,`script`) VALUES (18116,'Metal_Bow','Metal Bow','Weapon','Bow',20,50,5,1,true,true,true,true,true,3,1,true,100,true,true,true,true,true,true,true,'.@r = getrefine();\nif (BaseJob == Job_Hunter && Upper!=2)\n   bonus bBaseAtk,10;\nbonus bBaseAtk,(.@r*3);\nbonus bLongAtkRate,.@r;\n.@i = min(BaseLevel/10,12);\nif (.@i>2)\n   bonus bBaseAtk,((.@i-2)*5);');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`) VALUES (18117,'Royal_Bow','Royal Bow','Weapon','Bow',200000,1500,80,5,1,true,true,true,true,true,true,4,105,true);
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`attack`,`range`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nocart`,`trade_nostorage`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`,`script`) VALUES (18118,'TE_Woe_Bow','TE Woe Bow','Weapon','Bow',120,5,true,true,true,true,true,true,true,3,40,true,100,true,true,true,true,true,true,true,'bonus2 bAddRace,RC_Player_Human,40;\nbonus2 bAddRace,RC_Player_Doram,40;\nbonus2 bAddEff,Eff_Curse,1000;');
@@ -3314,7 +3314,7 @@ REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`pr
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_rogue`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18125,'Arcus_Daemonicus','Arcus Daemonicus','Weapon','Bow',20,1000,130,5,2,true,true,true,true,4,80,true,'/*Fix me: bonus2 bAddClass,Class_All,50; when equipped with shadow arrows*/\nif (getrefine()>9) {\n   bonus bAspd,1;\n   bonus bUseSPrate,-20;\n}');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_hunter`,`class_third`,`class_third_upper`,`class_third_baby`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18126,'Ru_Blue_Bow','Blue Bow','Weapon','Bow',10,1200,150,5,1,true,true,true,true,true,true,3,100,true,'bonus bAgi,5;\nbonus bDex,5;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`weight`,`attack`,`range`,`slots`,`job_hunter`,`class_third`,`class_third_upper`,`class_third_baby`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18127,'Ru_Gold_Bow','Ru Gold Bow','Weapon','Bow',1200,150,5,2,true,true,true,true,true,true,3,120,true,'bonus bAgi,8;\nbonus bDex,8;');
-REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nocart`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`) VALUES (18128,'Infinity_Bow','Infinity Bow','Weapon','Bow',20,500,160,5,1,true,true,4,100,true,100,true,true,true,true,true,true);
+REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nocart`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`) VALUES (18128,'Infinity_Bow','Infinity Bow','Weapon','Bow',20,500,160,5,1,true,true,true,true,true,true,true,4,100,true,100,true,true,true,true,true,true);
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`weight`,`attack`,`range`,`slots`,`job_hunter`,`class_upper`,`class_third`,`class_third_upper`,`class_third_baby`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`view`,`script`) VALUES (18129,'Ixion_Wing_S','Ixion Wing','Weapon','Bow',300,135,5,3,true,true,true,true,true,true,true,4,70,true,11,'autobonus "{ bonus bAspdRate,7; }",5+getrefine(),7000,BF_WEAPON,"{ specialeffect2 EF_HASTEUP; }";\nbonus2 bAddSkillBlow,"AC_CHARGEARROW",3;');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`job_thief`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`script`) VALUES (18130,'Crimson_Bow','Crimson Bow','Weapon','Bow',20,1200,120,5,2,true,true,true,true,true,true,true,3,70,true,'.@r = getrefine();\nbonus bBaseAtk,((BaseLevel/10)*5)+(.@r<=15?pow(.@r,2):225);');
 REPLACE INTO `item_db_re` (`id`,`name_aegis`,`name_english`,`type`,`subtype`,`price_buy`,`weight`,`attack`,`range`,`slots`,`job_archer`,`job_barddancer`,`job_hunter`,`job_rogue`,`location_left_hand`,`location_right_hand`,`weapon_level`,`equip_level_min`,`refineable`,`trade_override`,`trade_nodrop`,`trade_notrade`,`trade_nocart`,`trade_noguildstorage`,`trade_nomail`,`trade_noauction`,`script`) VALUES (18132,'Unity_Bow','Unity Bow','Weapon','Bow',20,600,114,5,1,true,true,true,true,true,true,3,1,true,100,true,true,true,true,true,true,'bonus bBaseAtk,pow(getrefine(),2)*125/100;');