Index: mobutils.cpp =================================================================== --- mobutils.cpp (revision 2241) +++ mobutils.cpp (working copy) @@ -176,10 +176,27 @@ } PMob->setModifier(MOD_ATT, BaseAttack); + + //MNK attack rate should be lower + if(PMob->GetMJob() == JOB_MNK){ + BaseAttack = (float)BaseAttack*0.4; + } + PMob->setModifier(MOD_ACC, BaseAttack); PMob->m_Weapons[SLOT_MAIN]->setDamage(GetWeaponDamage(PMob)); + //reduce weapon delay of MNK + if(PMob->GetMJob()==JOB_MNK){ + uint16 delay = PMob->m_Weapons[SLOT_MAIN]->getDelay(); + + //reduce delay based on level + //this will remove about 78 delay at level 75 + delay -= (((float)PMob->GetMLevel() * 1.05) * 1000) / 60; + + PMob->m_Weapons[SLOT_MAIN]->setDelay(delay); + } + uint16 fSTR = GetBaseToRank(3, PMob->GetMLevel()); uint16 fDEX = GetBaseToRank(3, PMob->GetMLevel()); uint16 fAGI = GetBaseToRank(3, PMob->GetMLevel()); Index: zoneutils.cpp =================================================================== --- zoneutils.cpp (revision 2241) +++ zoneutils.cpp (working copy) @@ -293,6 +293,7 @@ PMob->m_Weapons[SLOT_MAIN]->setMaxHit(1); PMob->m_Weapons[SLOT_MAIN]->setSkillType(Sql_GetIntData(SqlHandle,16)); + PMob->m_Weapons[SLOT_MAIN]->setDelay((Sql_GetIntData(SqlHandle,17) * 1000)/60); PMob->m_Behaviour = (uint16)Sql_GetIntData(SqlHandle,18); @@ -375,9 +376,21 @@ if(PMob->GetMJob()==JOB_WAR && PMob->m_minLevel >= 25 || PMob->GetSJob()==JOB_WAR && PMob->m_minLevel >= 50){ PMob->addModifier(MOD_DOUBLE_ATTACK,15); } + + //MNK has 100% double attack + if(PMob->GetMJob()==JOB_MNK){ + PMob->addModifier(MOD_DOUBLE_ATTACK,100); + } + if(PMob->GetMJob()==JOB_THF && PMob->m_minLevel >= 55){ PMob->addModifier(MOD_TRIPLE_ATTACK,7); } + + //MNK has 15% triple attack + if(PMob->GetMJob()==JOB_MNK && PMob->m_minLevel >= 55){ + PMob->addModifier(MOD_TRIPLE_ATTACK,15); + } + PZone->InsertMOB(PMob); luautils::OnMobInitialise(PMob); } Index: mob_skill.sql =================================================================== --- mob_skill.sql (revision 2241) +++ mob_skill.sql (working copy) @@ -42,13 +42,13 @@ -- -- Contenu de la table `mob_skill` --- +-- -- ------------------------------------------ -- Normal Monster -- ------------------------------------------ --- Rabbits +-- Rabbits -- Base (206) INSERT INTO `mob_skill` VALUES (1,206,1,'Foot_Kick', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (2,206,2,'Dust_Cloud', 4, 10.0, 2000, 1500, 4, 0); @@ -109,11 +109,11 @@ INSERT INTO `mob_skill` VALUES(36, 188, 36, 'Blank_Gaze', 0, 16.0, 2000, 1500, 4, 0); -- Mandragora -INSERT INTO `mob_skill` VALUES (45,178,45,'Dream_Flower', 1, 15.0, 2000, 1500, 4, 0); -- Not used by Lycopodia +-- INSERT INTO `mob_skill` VALUES (45,178,45,'Dream_Flower', 1, 15.0, 2000, 1500, 4, 0); -- Not used by Lycopodia INSERT INTO `mob_skill` VALUES (46,178,46,'Wild_Oats', 0, 12.5, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (48,178,48,'Photosynthesis', 0, 7.0, 2000, 1500, 1, 0); INSERT INTO `mob_skill` VALUES (49,178,49,'Leaf_Dagger', 0, 7.0, 2000, 1500, 4, 0); -- 1hp/tick --- INSERT INTO `mob_skill` VALUES(44, 178, 44, 'Head_Butt', 0, 7.0, 2000, 1500, 4, 0); +INSERT INTO `mob_skill` VALUES(44, 178, 44, 'Head_Butt', 0, 7.0, 1500, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES(50, 178, 50, 'Scream', 1, 15.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES(0, 178, 0, 'Petal_Pirouette', 0, 15.0, 2000, 1500, 4, 0); -- Only used by certain NM -- INSERT INTO `mob_skill` VALUES(0, 178, 0, 'Demonic_Flower', 0, 7.0, 2000, 1500, 4, 0); -- Only used by certain NM @@ -157,9 +157,9 @@ INSERT INTO `mob_skill` VALUES (80,48,80,'Final_Sting', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (79,48,79,'Pollen', 0, 7.0, 2000, 1500, 1, 0); INSERT INTO `mob_skill` VALUES (78,48,78,'Sharp_Sting', 0, 10.0, 2000, 1500, 4, 0); --- INSERT INTO `mob_skill` VALUES (0,0,0,'Frenzy_Pollen', 0, 7.0, 2000, 1500, 2, 0); -- Only used by Nightmare Hornets and Chasmic Hornet. +-- INSERT INTO `mob_skill` VALUES (0,0,0,'Frenzy_Pollen', 0, 7.0, 2000, 1500, 2, 0); -- Only used by Nightmare Hornets and Chasmic Hornet. --- Beetle +-- Beetle INSERT INTO `mob_skill` VALUES (82,49,82,'Power_Attack', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (83,49,83,'Hi-Freq_Field', 4, 16.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (84,50,84,'Rhino_Attack', 0, 7.0, 2000, 1500, 4, 0); @@ -248,7 +248,7 @@ -- INSERT INTO `mob_skill` VALUES (0,0,0,'Scratch', 0, 7.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES (0,0,0,'Triple_Attack', 0, 7.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES (0,0,0,'Dread_Dive', 0, 7.0, 2000, 1500, 4, 0); -- Used instead of Gliding Spike by certain NM --- INSERT INTO `mob_skill` VALUES (0,0,0,'Blind_Vortex', 0, 7.0, 2000, 1500, 4, 0); -- Used in place of Triple Attack by certain NM +-- INSERT INTO `mob_skill` VALUES (0,0,0,'Blind_Vortex', 0, 7.0, 2000, 1500, 4, 0); -- Used in place of Triple Attack by certain NM -- INSERT INTO `mob_skill` VALUES (0,0,0,'Giga Scream', 0, 7.0, 2000, 1500, 4, 0); -- Used by some NM in place of Triple Attack -- Cockatrice @@ -279,7 +279,7 @@ -- INSERT INTO `mob_skill` VALUES (0,0,0,'Sound_Vacuum', 0, 7.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES (0,0,0,'MP Absorption', 0, 7.0, 2000, 1500, 4, 0); --- Slime +-- Slime INSERT INTO `mob_skill` VALUES (175,228,175,'Fluid_Spread', 1, 10.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (176,228,176,'Fluid_Toss', 0, 18.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES (0,0,0,'Digest', 0, 7.0, 2000, 1500, 4, 0); @@ -400,7 +400,7 @@ -- INSERT INTO `mob_skill` VALUES (0,0,0,'Vulcanian_Impact', 0, 7.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES (0,0,0,'Hellstorm', 1, 15.0, 2000, 1500, 4, 0); --- Evil Weapon +-- Evil Weapon INSERT INTO `mob_skill` VALUES (257,110,257,'Smite_of_Rage', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (258,110,258,'Whirl_of_Rage', 1, 10.0, 2000, 1500, 4, 0); -- INSERT INTO `mob_skill` VALUES (0,0,0,'Smite_of_Fury', 0, 7.0, 2000, 1500, 4, 0); @@ -564,7 +564,7 @@ INSERT INTO `mob_skill` VALUES (554,235,482,'Sickle_Slash', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (555,235,483,'Acid_Spray', 4, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (556,235,484,'Spider_Web', 1, 7.0, 2000, 1500, 4, 0); --- Wyvern +-- Wyvern INSERT INTO `mob_skill` VALUES (557,265,485,'Dispelling_Wind', 1, 15.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (558,265,486,'Deadly_Drive', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (559,265,487,'Wind_Wall', 0, 7.0, 2000, 1500, 1, 0); @@ -637,7 +637,7 @@ -- corse INSERT INTO `mob_skill` VALUES (276,74,902,'Envoutement', 0, 7.0, 2000, 1500, 4, 0); --- -------------------- +-- -------------------- -- VALUES POST 1024 -- Take tpid and +256 then -1024 to find the correct param for the packet -- Take animid and -1024 to find the correct param @@ -662,7 +662,7 @@ INSERT INTO `mob_skill` VALUES (1460,27,1162,'Frigid_Shuffle', 1, 10.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (1461,27,1163,'Wing_Whirl', 1, 10.0, 2000, 1500, 4, 0); --- Imp +-- Imp INSERT INTO `mob_skill` VALUES (1455,165,1180,'Frenetic_Rip', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (1453,165,1181,'Abrasive_Tantara', 1, 10.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (1454,165,1182,'Deafening_Tantara', 1, 10.0, 2000, 1500, 4, 0); @@ -727,7 +727,7 @@ INSERT INTO `mob_skill` VALUES (1960,82,1597,'Nocturnal_Combustion', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (1962,82,1599,'Penumbral_Impact', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (1963,82,1600,'Dark_Wave', 0, 7.0, 2000, 1500, 4, 0); --- Ghrah +-- Ghrah INSERT INTO `mob_skill` VALUES (1187,122,1061,'Hexidiscs', 0, 7.0, 2000, 1500, 4, 0); INSERT INTO `mob_skill` VALUES (1185,122,1065,'Actinic_Burst', 0, 7.0, 2000, 1500, 4, 0); Index: mob_family_system.sql =================================================================== --- mob_family_system.sql (revision 2241) +++ mob_family_system.sql (working copy) @@ -88,7 +88,7 @@ INSERT INTO `mob_family_system` VALUES (23,'AnimatedWeapon-Staff',18,'Unclassified',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); INSERT INTO `mob_family_system` VALUES (24,'AnimatedWeapon-Sword',18,'Unclassified',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); INSERT INTO `mob_family_system` VALUES (25,'Antica',7,'Beastmen',0,40,116,140,1,3,1,1,1,3,3,3,3,1,1,1,1,1,1,1.25,0.5,1,1,1,0.5,8); -INSERT INTO `mob_family_system` VALUES (26,'Antlion',20,'Vermin',1,40,108,120,1,3,3,3,3,3,5,3,3,1,1,1,1,1,1,1.125,0.875,1,1,1.25,0.875,8); +INSERT INTO `mob_family_system` VALUES (26,'Antlion',20,'Vermin',1,40,108,125,1,3,3,3,3,3,5,3,3,1,1,1,1,1,1,1.125,0.875,1,1,1.25,0.875,8); INSERT INTO `mob_family_system` VALUES (27,'Apkallu',8,'Bird',0,40,105,90,3,2,1,6,6,4,5,3,3,1,1,1,1,1,1,1,1.125,0.875,0.5,1,1,6); INSERT INTO `mob_family_system` VALUES (28,'Automaton-Harlequin',18,'Unclassified',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); INSERT INTO `mob_family_system` VALUES (29,'Automaton-Sharpshot',18,'Unclassified',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); @@ -128,8 +128,8 @@ INSERT INTO `mob_family_system` VALUES (63,'Chariot',4,'ArchaicMachine',3,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1.125,1,1.125,0.875,1,0.875,1,0); INSERT INTO `mob_family_system` VALUES (64,'Chigoe',20,'Vermin',0,40,120,90,3,2,1,6,6,4,5,3,3,1,1,1,1,1.125,1.125,1,1,1,1,1,1,4); INSERT INTO `mob_family_system` VALUES (65,'Clionid',21,'Voragean',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); -INSERT INTO `mob_family_system` VALUES (66,'Clot',1,'Amorph',1,40,100,120,1,3,3,4,3,6,6,3,3,0.5,0.5,0.25,0.25,1.25,1,1,1,1,0.5,1,1,6); -INSERT INTO `mob_family_system` VALUES (67,'Clot',1,'Amorph',1,40,100,120,1,3,3,4,3,6,6,3,3,0.25,0.25,0.125,0.125,1.562,1.25,1.25,1.25,1.25,0.625,1.25,1.25,6); +INSERT INTO `mob_family_system` VALUES (66,'Clot',1,'Amorph',1,40,100,120,1,3,3,4,3,6,2,3,3,0.5,0.5,0.25,0.25,1.25,1,1,1,1,0.5,1,1,6); +INSERT INTO `mob_family_system` VALUES (67,'Clot',1,'Amorph',1,40,100,120,1,3,3,4,3,6,2,3,3,0.25,0.25,0.125,0.125,1.562,1.25,1.25,1.25,1.25,0.625,1.25,1.25,6); INSERT INTO `mob_family_system` VALUES (68,'Cluster',3,'Arcana',0,40,95,140,6,3,6,3,1,5,4,3,3,1,1,1,1,1.25,1,1,1,1,1,1,1,1); INSERT INTO `mob_family_system` VALUES (69,'Cluster',3,'Arcana',0,40,95,140,6,3,6,3,1,5,4,3,3,0.875,0.875,0.875,0.875,1.375,1.125,1.125,1.125,1.125,1.125,1.125,1.125,1); INSERT INTO `mob_family_system` VALUES (70,'Cockatrice',8,'Bird',1,40,112,140,6,3,6,3,1,5,4,3,3,1,1,1,1,1,1.25,1.25,0.875,1,1,1,1,4); @@ -141,7 +141,7 @@ INSERT INTO `mob_family_system` VALUES (76,'Crab',2,'Aquan',0,40,108,120,2,5,2,4,3,3,3,3,3,0.875,0.875,0.875,0.875,0.875,1,0.875,0.875,1,0.75,0.875,0.875,6); INSERT INTO `mob_family_system` VALUES (77,'Crab',2,'Aquan',0,40,108,120,2,5,2,4,3,3,3,3,3,1,1,1,1,1,1.25,1,1,1.25,0.875,1,1,6); INSERT INTO `mob_family_system` VALUES (78,'Craver',12,'Empty',0,40,96,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); -INSERT INTO `mob_family_system` VALUES (79,'Crawler',20,'Vermin',1,40,90,120,1,3,4,3,3,6,5,5,3,1,1,1,1,1,1.25,1,1,1.25,1,1.125,1.25,4); +INSERT INTO `mob_family_system` VALUES (79,'Crawler',20,'Vermin',1,40,105,120,3,3,4,3,3,6,5,5,3,1,1,1,1,1,1.25,1,1,1.25,1,1.125,1.25,4); INSERT INTO `mob_family_system` VALUES (80,'Dhalmel',6,'Beast',1,40,105,120,3,2,2,6,3,3,5,3,3,1,1,1,1,1,1,1.25,1,1.25,1,1,1,4); INSERT INTO `mob_family_system` VALUES (81,'Diremite',20,'Vermin',1,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1,1,1,1,1.25,1.25,1,3); INSERT INTO `mob_family_system` VALUES (82,'Djinn',3,'Arcana',0,40,70,140,6,3,6,3,1,5,4,3,3,1,1,1,1,1.125,1,1,1,1,1,1,1,1); @@ -201,7 +201,7 @@ INSERT INTO `mob_family_system` VALUES (136,'Goobbue',17,'Plantoid',1,40,112,90,3,2,1,6,6,4,5,3,3,1,1,1,1,1.25,1,1,1,1.125,1,1,1.25,6); INSERT INTO `mob_family_system` VALUES (137,'Gorger',12,'Empty',0,40,107,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); INSERT INTO `mob_family_system` VALUES (138,'Gorger',12,'Empty',1,40,107,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); -INSERT INTO `mob_family_system` VALUES (139,'Hecteyes',1,'Amorph',1,40,87,140,6,3,6,3,1,5,4,3,3,1,1,0.75,0.75,1,1,1,1,1,1,1,0.875,8); +INSERT INTO `mob_family_system` VALUES (139,'Hecteyes',1,'Amorph',1,40,87,140,6,3,6,3,1,5,2,3,3,1,1,0.75,0.75,1,1,1,1,1,1,1,0.875,8); INSERT INTO `mob_family_system` VALUES (140,'Hippogryph',8,'Bird',1,60,90,140,4,1,4,2,1,5,4,3,3,1,1.25,1,1,1,1,1,1.25,1,1,1,1,7); INSERT INTO `mob_family_system` VALUES (141,'Hippogryph',8,'Bird',1,60,90,140,4,1,4,2,1,5,4,3,3,1,1.25,1,1,0.5,0.5,0.5,0.625,0.5,0.5,0.5,0.5,7); INSERT INTO `mob_family_system` VALUES (142,'Hound',19,'Undead',1,40,102,120,1,3,3,4,3,4,6,3,3,1.688,1.5,1.5,1.5,1.875,1.313,1.5,1.5,1.5,1.5,1.875,1.313,8); @@ -234,13 +234,13 @@ INSERT INTO `mob_family_system` VALUES (169,'Kindred',9,'Demon',0,40,105,140,1,1,3,3,1,2,1,3,3,1,1,1,1,0.75,0.75,0.75,0.75,0.75,0.75,1.25,0.75,8); INSERT INTO `mob_family_system` VALUES (170,'Ladybug',20,'Vermin',0,40,87,120,4,1,4,2,3,6,6,3,3,1,1.25,1,1,1,1.125,0.5,1,1,1,1,1,3); INSERT INTO `mob_family_system` VALUES (171,'Lamiae',7,'Beastmen',0,40,100,140,3,3,3,1,1,2,2,3,3,1,1,1,1,1,1.125,1,1,1.125,0.875,1,1,8); -INSERT INTO `mob_family_system` VALUES (172,'Leech',1,'Amorph',0,40,90,90,1,3,4,3,6,6,5,3,3,1,1,0.75,0.75,1,1,1,1,1,0.5,1.25,1,6); +INSERT INTO `mob_family_system` VALUES (172,'Leech',1,'Amorph',0,40,90,90,1,3,2,3,6,6,5,3,2,1,1,0.75,0.75,1,1,1,1,1,0.5,1.25,1,6); INSERT INTO `mob_family_system` VALUES (173,'Limule',21,'Voragean',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); INSERT INTO `mob_family_system` VALUES (174,'Lizard',14,'Lizard',1,40,92,120,1,3,4,3,3,3,5,3,3,1,1,1,1,1,1.25,1.25,1,1,1,1,1,1); INSERT INTO `mob_family_system` VALUES (175,'MagicPot',3,'Arcana',2,40,82,140,1,3,4,3,1,1,3,3,3,1,1,1.25,1.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,7); INSERT INTO `mob_family_system` VALUES (176,'MamoolJa',7,'Beastmen',2,40,100,120,2,1,3,3,3,3,3,3,3,1,1,1,1,1,1.125,0.875,1,1,1,0.875,1,3); INSERT INTO `mob_family_system` VALUES (177,'MamoolJaKnight',7,'Beastmen',3,40,120,120,2,1,1,3,3,3,3,3,3,1,1,1,1,1,1.125,1.125,1,1,1,1,1,3); -INSERT INTO `mob_family_system` VALUES (178,'Mandragora',17,'Plantoid',0,40,97,120,3,2,3,6,3,3,5,3,3,1,1.25,1,1,1.25,1.25,1.25,1,1.25,1,0.875,1.25,4); +INSERT INTO `mob_family_system` VALUES (178,'Mandragora',17,'Plantoid',0,40,107,120,4,2,4,5,3,3,2,3,3,1,1.25,1,1,1.25,1.25,1.25,1,1.25,1,0.875,1.25,4); INSERT INTO `mob_family_system` VALUES (179,'Manticore',6,'Beast',1,40,112,130,1,3,3,3,2,2,2,3,3,1,1,1,1,0.5,1,0.5,1,1,1.25,1,1,3); INSERT INTO `mob_family_system` VALUES (180,'Marid',6,'Beast',2,40,107,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1.125,1,1,1,1,1,1,4); INSERT INTO `mob_family_system` VALUES (181,'MemoryReceptacle',12,'Empty',2,0,200,90,1,3,4,3,6,6,5,3,3,1,0.5,1,1,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0); @@ -250,7 +250,7 @@ INSERT INTO `mob_family_system` VALUES (185,'Moogle',18,'Unclassified',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); INSERT INTO `mob_family_system` VALUES (186,'Morbol',17,'Plantoid',1,40,120,100,1,2,1,3,5,4,4,3,3,1,1,1,1,1.25,1,1,1,1,0.5,1,1,4); INSERT INTO `mob_family_system` VALUES (187,'Murex',21,'Voragean',0,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0); -INSERT INTO `mob_family_system` VALUES (188,'Opo-opo',6,'Beast',0,40,88,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1.25,1,1,1,1,1,1,5); +INSERT INTO `mob_family_system` VALUES (188,'Opo-opo',6,'Beast',0,40,110,90,1,3,4,3,6,6,2,3,3,1,1,1,1,1,1.25,1,1,1,1,1,1,5); INSERT INTO `mob_family_system` VALUES (189,'Orc',7,'Beastmen',1,40,108,100,1,2,1,1,5,3,3,3,3,1,1,1,1,1,1,1,1,1,1.25,1,1,1); INSERT INTO `mob_family_system` VALUES (190,'OrcishWarmachine',7,'Beastmen',1,40,113,100,4,6,4,5,5,1,3,3,3,1,1,1,1,1,1,1,1,1,1.25,1,1,1); INSERT INTO `mob_family_system` VALUES (191,'Orobon',2,'Aquan',1,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1,1,1,1.125,0.875,1,1,6); @@ -260,7 +260,7 @@ INSERT INTO `mob_family_system` VALUES (195,'Pixie',18,'Unclassified',0,40,90,100,4,6,4,5,5,1,3,3,3,0.375,0.375,0.375,0.375,0.375,0.375,0.375,0.375,0.375,0.375,0.375,0.375,3); INSERT INTO `mob_family_system` VALUES (196,'Poroggo',7,'Beastmen',0,40,70,140,6,3,6,3,1,5,4,3,3,1,1,1,1,1,1.125,1,1,1.125,0.5,0.5,1,6); INSERT INTO `mob_family_system` VALUES (197,'Pugil',2,'Aquan',1,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1.25,1,1,1.25,0.5,1,1,6); -INSERT INTO `mob_family_system` VALUES (198,'Puk',10,'Dragon',0,40,93,90,1,3,4,3,6,6,5,3,3,1,1.25,1,1,1,1.125,1,1,1,1,1,1,3); +INSERT INTO `mob_family_system` VALUES (198,'Puk',10,'Dragon',0,40,93,90,1,3,4,3,6,6,2,3,3,1,1.25,1,1,1,1.125,1,1,1,1,1,1,3); INSERT INTO `mob_family_system` VALUES (199,'Qiqirn',7,'Beastmen',0,40,88,140,4,1,4,1,1,4,4,3,3,1,1,1,1,1,1,1.125,1,1,1,1,1,4); INSERT INTO `mob_family_system` VALUES (200,'Quadav',7,'Beastmen',0,40,120,110,1,1,3,2,4,3,3,3,3,1,1.25,1,1,1.125,1,1,1,1,1,1.125,0.875,6); INSERT INTO `mob_family_system` VALUES (201,'Quadav',7,'Beastmen',1,40,120,110,1,1,3,2,4,3,3,3,3,1,1,1,1,0.5,0.563,0.5,0.5,0.625,0.438,0.5,0.5,6); @@ -274,9 +274,9 @@ INSERT INTO `mob_family_system` VALUES (207,'Rafflesia',17,'Plantoid',0,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1.125,1,1,1,1,1,1,1,4); INSERT INTO `mob_family_system` VALUES (208,'Ram',6,'Beast',3,40,120,100,1,3,4,3,5,1,3,3,3,1,1,1,1,1,0.875,1,1,1,1,1,1,4); INSERT INTO `mob_family_system` VALUES (209,'Rampart',4,'ArchaicMachine',2,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1.125,1,1,0.875,1,1,1,5); -INSERT INTO `mob_family_system` VALUES (210,'Raptor',14,'Lizard',1,70,90,120,4,1,4,2,3,6,6,3,3,1,1,1,1,0.875,1,1,1,1,1.25,1,1,1); +INSERT INTO `mob_family_system` VALUES (210,'Raptor',14,'Lizard',1,70,90,120,4,1,4,2,3,6,1,3,3,1,1,1,1,0.875,1,1,1,1,1.25,1,1,1); INSERT INTO `mob_family_system` VALUES (211,'Ruszor',2,'Aquan',1,40,100,120,3,3,3,3,3,3,3,3,3,1,1,1,1,1,0.5,0.5,0.875,1,1,1,1,2); -INSERT INTO `mob_family_system` VALUES (212,'Sabotender',17,'Plantoid',0,40,100,90,3,2,1,6,6,4,5,3,3,1,1,1,1,1,1.25,1,1,1,0.5,0.875,1.25,6); +INSERT INTO `mob_family_system` VALUES (212,'Sabotender',17,'Plantoid',0,40,100,90,3,2,1,6,6,4,2,3,3,1,1,1,1,1,1.25,1,1,1,0.5,0.875,1.25,6); INSERT INTO `mob_family_system` VALUES (213,'Sahagin',7,'Beastmen',0,40,107,110,2,2,1,4,4,1,2,3,3,1,1,1,1,1,1,1,1,1.25,0.5,1,1,6); INSERT INTO `mob_family_system` VALUES (214,'Sandworm',1,'Amorph',0,0,90,180,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1,1.25,0.875,1,1,1.25,0.875,4); INSERT INTO `mob_family_system` VALUES (215,'Sandworm',1,'Amorph',5,0,90,180,1,3,4,3,6,6,5,3,3,1,1,1,1,0.5,0.5,1.125,0.25,0.25,0.5,1,0.5,4); @@ -292,9 +292,9 @@ INSERT INTO `mob_family_system` VALUES (225,'ShadowLord',18,'Unclassified',1,40,120,140,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8); INSERT INTO `mob_family_system` VALUES (226,'Sheep',6,'Beast',1,40,120,110,1,3,4,3,4,3,5,3,3,1,1,1,1,1.25,1,1,1,1.25,1,1,1,4); INSERT INTO `mob_family_system` VALUES (227,'Skeleton',19,'Undead',0,40,95,140,1,3,3,3,1,5,1,3,3,0.875,0.5,1.125,1.25,1.25,0.875,1,1,1,1,1.25,0.5,4); -INSERT INTO `mob_family_system` VALUES (228,'Slime',1,'Amorph',1,40,100,120,1,3,3,4,3,6,6,3,3,0.5,0.5,0.25,0.25,1.5,1.5,1.5,1.5,1.5,0.75,1.5,1.5,6); -INSERT INTO `mob_family_system` VALUES (229,'Slime',1,'Amorph',1,40,100,120,1,3,3,4,3,6,6,3,3,0.5,0.5,0.25,0.25,1.25,1,1,1,1,0.5,1,1,6); -INSERT INTO `mob_family_system` VALUES (230,'Slime',1,'Amorph',1,40,100,120,1,3,3,4,3,6,6,3,3,0.5,0.5,0.25,0.25,1.5,1.125,1.125,1.125,1.125,0.625,1.125,1.125,6); +INSERT INTO `mob_family_system` VALUES (228,'Slime',1,'Amorph',1,40,100,120,1,3,3,4,3,6,1,3,3,0.5,0.5,0.25,0.25,1.5,1.5,1.5,1.5,1.5,0.75,1.5,1.5,6); +INSERT INTO `mob_family_system` VALUES (229,'Slime',1,'Amorph',1,40,100,120,1,3,3,4,3,6,1,3,3,0.5,0.5,0.25,0.25,1.25,1,1,1,1,0.5,1,1,6); +INSERT INTO `mob_family_system` VALUES (230,'Slime',1,'Amorph',1,40,100,120,1,3,3,4,3,6,1,3,3,0.5,0.5,0.25,0.25,1.5,1.125,1.125,1.125,1.125,0.625,1.125,1.125,6); INSERT INTO `mob_family_system` VALUES (231,'Slug',1,'Amorph',1,40,90,90,1,3,4,3,6,6,5,3,3,1,1,1,1,1,1.125,1,1,1,1,1,1,6); INSERT INTO `mob_family_system` VALUES (232,'Snoll',3,'Arcana',0,40,89,140,6,3,6,3,1,5,4,3,3,1,1,1,1,1.125,1,1,1,1,1,1,1,2); INSERT INTO `mob_family_system` VALUES (233,'Soulflayer',9,'Demon',0,40,100,140,6,3,3,3,1,5,4,3,3,1,1,1,1,0.875,0.875,1,1,1.125,1,1.125,0.5,6); Index: bio.lua =================================================================== --- bio.lua (revision 2241) +++ bio.lua (working copy) @@ -61,4 +61,4 @@ return final; -end; \ No newline at end of file +end; Index: paralyze.lua =================================================================== --- paralyze.lua (revision 2241) +++ paralyze.lua (working copy) @@ -28,6 +28,9 @@ -- Calculate potency. potency = (multiplier * (pMND + dMND)) / 10; + if potency > 25 then + potency = 25 + end --printf("Duration : %u",duration); --printf("Potency : %u",potency); if(target:hasStatusEffect(EFFECT_PARALYSIS)) then --effect already on, do nothing @@ -69,4 +72,4 @@ end return EFFECT_PARALYSIS; -end; \ No newline at end of file +end; Index: bio_ii.lua =================================================================== --- bio_ii.lua (revision 2241) +++ bio_ii.lua (working copy) @@ -60,4 +60,4 @@ return final; -end; \ No newline at end of file +end; Index: dia.lua =================================================================== --- dia.lua (revision 2241) +++ dia.lua (working copy) @@ -59,4 +59,4 @@ return final; -end; \ No newline at end of file +end; Index: bio_iii.lua =================================================================== --- bio_iii.lua (revision 2241) +++ bio_iii.lua (working copy) @@ -12,7 +12,7 @@ ----------------------------------------- function onSpellCast(caster,target,spell) - + --calculate raw damage basedmg = caster:getSkillLevel(DARK_MAGIC_SKILL) / 4; dmg = calculateMagicDamage(basedmg,3,caster,spell,target,DARK_MAGIC_SKILL,MOD_INT,false); @@ -35,29 +35,29 @@ dmg = adjustForTarget(target,dmg); --add in final adjustments including the actual damage dealt final = finalMagicAdjustments(caster,target,spell,dmg); - + -- Calculate duration. duration = 30; -- +30 sec by merit - + -- Check for Dia. dia = target:getStatusEffect(EFFECT_DIA); -- Calculate DoT (rough, though fairly accurate) dotdmg = 4 + math.floor(caster:getSkillLevel(DARK_MAGIC_SKILL) / 60); - + -- Do it! if(dia == nil or (BIO_OVERWRITE == 0 and dia:getPower() <= 3) or (BIO_OVERWRITE == 1 and dia:getPower() < 3)) then target:delStatusEffect(EFFECT_BIO); -- delete old bio target:addStatusEffect(EFFECT_BIO,dotdmg,3,duration,FLAG_ERASABLE); end - + --Try to kill same tier Dia (default behavior) if(DIA_OVERWRITE == 1 and dia ~= nil) then if(dia:getPower() <= 3) then target:delStatusEffect(EFFECT_DIA); end end - + return final; - + end; \ No newline at end of file Index: Beak_Lunge.lua =================================================================== --- Beak_Lunge.lua (revision 2241) +++ Beak_Lunge.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .7; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Stomping.lua =================================================================== --- Stomping.lua (revision 2241) +++ Stomping.lua (working copy) @@ -16,7 +16,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,2,3,4); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Tail_Swing.lua =================================================================== --- Tail_Swing.lua (revision 2241) +++ Tail_Swing.lua (working copy) @@ -24,7 +24,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Mow.lua =================================================================== --- Mow.lua (revision 2241) +++ Mow.lua (working copy) @@ -19,20 +19,17 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local power = math.random(1,4) + 6; - target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.5) then + local power = math.random(1,4) + 6; + target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end end local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .3; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Tail_Slap.lua =================================================================== --- Tail_Slap.lua (revision 2241) +++ Tail_Slap.lua (working copy) @@ -21,13 +21,13 @@ local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,4);--power=1;tic=0;duration=4; + target:addStatusEffect(typeEffect,1,0,math.random(2,6));--power=1;tic=0;duration=4; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_ATK_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Slam_Dunk.lua =================================================================== --- Slam_Dunk.lua (revision 2241) +++ Slam_Dunk.lua (working copy) @@ -21,12 +21,12 @@ if(resist > 0.5) then local mobTP = mob:getTP(); local duration = mob:getMainLvl()/3.75; - if(mobTP <= 100) then + if(mobTP <= 100) then local duration = 10 + duration; - elseif(mobTP <= 200) then + elseif(mobTP <= 200) then local duration = 15 + duration; - else - local duration = 20 + duration; + else + local duration = 20 + duration; end target:addStatusEffect(typeEffect,1,0,duration); end @@ -34,7 +34,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.4; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Whirl_Claws.lua =================================================================== --- Whirl_Claws.lua (revision 2241) +++ Whirl_Claws.lua (working copy) @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,2,3,4); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Suction.lua =================================================================== --- Suction.lua (revision 2241) +++ Suction.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,4);--power=1;tic=0;duration=4; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,1,0,math.random(2,6));--power=1;tic=0;duration=4; end end local numhits = 1; local accmod = 1; - local dmgmod = .85; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Great_Whirlwind.lua =================================================================== --- Great_Whirlwind.lua (revision 2241) +++ Great_Whirlwind.lua (working copy) @@ -19,17 +19,14 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_CHOKE; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - local power = mob:getMainLvl()/4*.6 + 4; - target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + local power = mob:getMainLvl()/4*.6 + 4; + target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end end - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_IGNORE_SHADOWS); Index: Earth_Pounder.lua =================================================================== --- Earth_Pounder.lua (revision 2241) +++ Earth_Pounder.lua (working copy) @@ -21,13 +21,10 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_DEX_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; end end Index: Blitzstrahl.lua =================================================================== --- Blitzstrahl.lua (revision 2241) +++ Blitzstrahl.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals lightning damage to an enemy. Additional effect: "Stun." -- Type: Magical (Lightning) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,17 +17,14 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,4);--power=1;tic=0;duration=4; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,1,0,4);--power=1;tic=0;duration=4; end end - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_THUNDER,MOBPARAM_IGNORE_SHADOWS); Index: Panzerfaust.lua =================================================================== --- Panzerfaust.lua (revision 2241) +++ Panzerfaust.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 2; local accmod = 1; - local dmgmod = .35; + local dmgmod = .6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Heat_Breath.lua =================================================================== --- Heat_Breath.lua (revision 2241) +++ Heat_Breath.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals fire damage to enemies within a fan-shaped area originating from the caster. -- Type: Magical (Fire) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -15,10 +15,16 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 5; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*2,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_IGNORE_SHADOWS); + + if(dmg > 500) then + dmg = 500; + end + target:delHP(dmg); return dmg; end; Index: Scythe_Tail.lua =================================================================== --- Scythe_Tail.lua (revision 2241) +++ Scythe_Tail.lua (working copy) @@ -21,7 +21,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Disseverment.lua =================================================================== --- Disseverment.lua (revision 2241) +++ Disseverment.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Delivers a fivefold attack. Additional effect: Poison. Accuracy varies with TP. -- Type: Physical (Piercing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,20 +18,17 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); if(resist > 0.5) then local power = (mob:getMainLvl()/15) + math.random(2,4) ; target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end - end end local numhits = 5; local accmod = 1; - local dmgmod = .3; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_ACC_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_PIERCE,info.hitslanded); target:delHP(dmg); Index: Sprout_Smack.lua =================================================================== --- Sprout_Smack.lua (revision 2241) +++ Sprout_Smack.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Additional effect: Slow. Duration of effect varies with TP. -- Type: Physical (Blunt) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,23 +18,20 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_SLOW; if(target:hasStatusEffect(typeEffect) == false and target:hasStatusEffect(EFFECT_HASTE) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - local duration = 30 + (skill:getTP()/100) * math.random(7,10); - if(resist >.7) then - duration = duration - ((resist -.7)* 10) * math.random(1,5); - end - target:addStatusEffect(typeEffect,8,0,duration);--power=8;tic=0; + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + local duration = 30 + (skill:getTP()/100) * math.random(7,10); + if(resist >.7) then + duration = duration - ((resist -.7)* 10) * math.random(1,5); end + target:addStatusEffect(typeEffect,10,0,duration);--power=10;tic=0; end end - + local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Poison_Pick.lua =================================================================== --- Poison_Pick.lua (revision 2241) +++ Poison_Pick.lua (working copy) @@ -19,20 +19,17 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local power = mob:getMainLvl()/5 + 5; - target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.4) then + local power = mob:getMainLvl()/5 + 5; + target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = .5; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Full-Force_Blow.lua =================================================================== --- Full-Force_Blow.lua (revision 2241) +++ Full-Force_Blow.lua (working copy) @@ -20,7 +20,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Wing_Slap.lua =================================================================== --- Wing_Slap.lua (revision 2241) +++ Wing_Slap.lua (working copy) @@ -30,7 +30,7 @@ local numhits = 4; local accmod = 1; - local dmgmod = 0.6; + local dmgmod = 0.8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Double_Ray.lua =================================================================== --- Double_Ray.lua (revision 2241) +++ Double_Ray.lua (working copy) @@ -17,7 +17,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = .7; + local dmgmod = 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_THUNDER,MOBPARAM_IGNORE_SHADOWS); Index: Rumble.lua =================================================================== --- Rumble.lua (revision 2241) +++ Rumble.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_EVASION_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,4); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.3) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,50,0,120); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,50,0,120); end else message = MSG_NO_EFFECT; Index: Tail_Crush.lua =================================================================== --- Tail_Crush.lua (revision 2241) +++ Tail_Crush.lua (working copy) @@ -19,20 +19,17 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local power = mob:getMainLvl()/10 + 10; - target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.5) then + local power = mob:getMainLvl()/10 + 10; + target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Head_Butt.lua =================================================================== --- Head_Butt.lua (revision 2241) +++ Head_Butt.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Damage varies with TP. Additional effect: "Stun." -- Type: Physical (Blunt) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,19 +17,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,5);--power=1;tic=0;duration=5; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,1,0,math.random(2,5));--power=1;tic=0;duration=5; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Frogkick.lua =================================================================== --- Frogkick.lua (revision 2241) +++ Frogkick.lua (working copy) @@ -4,7 +4,7 @@ -- Type: Physical -- Can be dispelled: N/A -- Utsusemi/Blink absorb: 1 shadow --- Range: Melee +-- Range: Melee --------------------------------------------------- require("/scripts/globals/settings"); @@ -20,7 +20,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_PIERCE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Foot_Kick.lua =================================================================== --- Foot_Kick.lua (revision 2241) +++ Foot_Kick.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Foot Kick --- Deals critical damage. Chance of critical hit varies with TP. +-- Deals critical damage. Chance of critical hit varies with TP. -- 100% TP: ??? / 200% TP: ??? / 300% TP: ??? --------------------------------------------------- @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_CRIT_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Primal_Drill.lua =================================================================== --- Primal_Drill.lua (revision 2241) +++ Primal_Drill.lua (working copy) @@ -19,23 +19,20 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BIND; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - local duration = ((skill:getTP()/100) * 5 )+ 15; - if(resist > .7) then - duration = duration - (resist * 10 )- 7; - end - target:addStatusEffect(typeEffect,1,3,duration);--power=1;tic=3; + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.4) then + local duration = ((skill:getTP()/100) * 5 )+ 15; + if(resist > .7) then + duration = duration - (resist * 10 )- 7; end + target:addStatusEffect(typeEffect,1,3,duration);--power=1;tic=3; end end local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .3; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Bad_Breath.lua =================================================================== --- Bad_Breath.lua (revision 2241) +++ Bad_Breath.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals earth damage that inflicts multiple status ailments on enemies within a fan-shaped area originating from the caster. -- Type: Magical (Earth) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -107,7 +107,7 @@ skill:setMsg(MSG_NO_EFFECT); end - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1.5; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_EARTH,MOBPARAM_IGNORE_SHADOWS); Index: Hysteric_Barrage.lua =================================================================== --- Hysteric_Barrage.lua (revision 2241) +++ Hysteric_Barrage.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Delivers a fivefold attack. Damage varies with TP. -- Type: Physical (Hand-to-Hand) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,7 +18,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 5; local accmod = 1; - local dmgmod = .2; + local dmgmod = .7; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_H2H,info.hitslanded); target:delHP(dmg); Index: Sandspin.lua =================================================================== --- Sandspin.lua (revision 2241) +++ Sandspin.lua (working copy) @@ -2,7 +2,7 @@ -- Sandspin -- Deals earth damage to enemies within range. Additional Effect: Accuracy Down. -- Area of Effect is centered around caster. --- The Additional Effect: Accuracy Down may not always process. +-- The Additional Effect: Accuracy Down may not always process. -- Duration: Three minutes ? --------------------------------------------------- @@ -19,21 +19,18 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_ACCURACY_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; end end - local dmgmod = 1; + local dmgmod = 1.1; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_EARTH,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); return dmg; - + end \ No newline at end of file Index: Spike_Flail.lua =================================================================== --- Spike_Flail.lua (revision 2241) +++ Spike_Flail.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 3; local accmod = 1; - local dmgmod = 1; + local dmgmod = math.random(5,12); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,2,3,4); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Vorpal_Wheel.lua =================================================================== --- Vorpal_Wheel.lua (revision 2241) +++ Vorpal_Wheel.lua (working copy) @@ -21,7 +21,8 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + -- Increase damage as health drops + local dmgmod = (1 - (mob:getHP() / mob:getMaxHP())) * 6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Slumber_Powder.lua =================================================================== --- Slumber_Powder.lua (revision 2241) +++ Slumber_Powder.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local dmgmod = 1; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*2,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_ICE,MOBPARAM_1_SHADOW); target:delHP(dmg); return dmg; Index: Spinning_Claw.lua =================================================================== --- Spinning_Claw.lua (revision 2241) +++ Spinning_Claw.lua (working copy) @@ -17,9 +17,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local numhits = 1; + local numhits = math.random(2,3); local accmod = 1; - local dmgmod = (math.random(1,3)*.5) * mob:getMainLvl() /100; + local dmgmod = (numhits*.5) * mob:getMainLvl() /100; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Benthic_Typhoon.lua =================================================================== --- Benthic_Typhoon.lua (revision 2241) +++ Benthic_Typhoon.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Delivers an area attack that lowers target's defense and magic defense. Damage varies with TP. -- Type: Physical (Piercing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,26 +18,20 @@ function OnMobWeaponSkill(target, mob, skill) local statmod = MOD_INT; local typeEffect = EFFECT_MAGIC_DEF_DOWN; - local accrand = 3; local resist = ; if(target:hasStatusEffect(typeEffect) == false) then - accrand = math.random(1,3); - if(accrand ~= 1) then - resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,30,0,60);--power=30;tic=0;duration=60; - end + resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,30,0,60);--power=30;tic=0;duration=60; end end typeEffect = EFFECT_DEFENSE_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - accrand = math.random(1,3); - if(accrand ~= 1) then - resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,30,0,60);--power=30;tic=0;duration=60; - end + + resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,30,0,60);--power=30;tic=0;duration=60; end end Index: Grim_Reaper.lua =================================================================== --- Grim_Reaper.lua (revision 2241) +++ Grim_Reaper.lua (working copy) @@ -37,7 +37,7 @@ ]] local numhits = 3; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Gas_Shell.lua =================================================================== --- Gas_Shell.lua (revision 2241) +++ Gas_Shell.lua (working copy) @@ -20,15 +20,12 @@ local typeEffect = EFFECT_POISON; local message = MSG_MISS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local power = math.random(23,24); - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,power,0,60); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.5) then + local power = math.random(23,24); + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,power,0,60); end else message = MSG_NO_EFFECT; Index: Tackle.lua =================================================================== --- Tackle.lua (revision 2241) +++ Tackle.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------- -- Tackle --- Description: Stuns target. Chance of stunning varies with TP. +-- Description: Stuns target. Chance of stunning varies with TP. -- Type: Physical --------------------------------------------- @@ -22,14 +22,14 @@ local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,4);--power=1;tic=0;duration=4; + target:addStatusEffect(typeEffect,1,0,math.random(2,6));--power=1;tic=0;duration=4; end end local numhits = 1; local accmod = 1; - local dmgmod = 0.8; - local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,1,1); + local dmgmod = 2.1; + local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); return dmg; Index: Howling.lua =================================================================== --- Howling.lua (revision 2241) +++ Howling.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,18,0,30);--power=18;tic=0;duration=30; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,20,0,30);--power=18;tic=0;duration=30; end else message = MSG_NO_EFFECT; Index: Deadly_Hold.lua =================================================================== --- Deadly_Hold.lua (revision 2241) +++ Deadly_Hold.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1.25; + local dmgmod = math.random(3,6); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Mysterious_Light.lua =================================================================== --- Mysterious_Light.lua (revision 2241) +++ Mysterious_Light.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals wind damage to enemies within range. Additional effect: Weight. -- Type: Magical (Wind) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,17 +17,14 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_WEIGHT; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60 - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60 end end - local dmgmod = 1; + local dmgmod = 1.2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_IGNORE_SHADOWS); Index: Sand_Breath.lua =================================================================== --- Sand_Breath.lua (revision 2241) +++ Sand_Breath.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Sand Breath --- Deals Earth damage to enemies within a fan-shaped area. Additional effect: Blind +-- Deals Earth damage to enemies within a fan-shaped area. Additional effect: Blind --------------------------------------------------- require("/scripts/globals/settings"); @@ -23,7 +23,7 @@ end end - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 3,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_EARTH,MOBPARAM_IGNORE_SHADOWS); Index: Spinning_Attack.lua =================================================================== --- Spinning_Attack.lua (revision 2241) +++ Spinning_Attack.lua (working copy) @@ -3,7 +3,7 @@ -- -- Description: Spins into targets in a fan-shaped area of effect. Additional effect: Knockback -- Type: Physical --- Utsusemi/Blink absorb: 2-3 shadows +-- Utsusemi/Blink absorb: 2-3 shadows -- Range: 10' radial -- Notes: --------------------------------------------- @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .3; + local dmgmod = .9; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Mandible_Bite.lua =================================================================== --- Mandible_Bite.lua (revision 2241) +++ Mandible_Bite.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .7; + local dmgmod = math.random(2,4); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Curse.lua =================================================================== --- Curse.lua (revision 2241) +++ Curse.lua (working copy) @@ -4,8 +4,8 @@ -- Description: Inflicts a curse on all targets in an area of effect. -- Type: Enfeebling -- Utsusemi/Blink absorb: Wipes shadows --- Range: 15' radial --- Notes: Curse has a very long duration. +-- Range: 15' radial +-- Notes: Curse has a very long duration. --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -20,19 +20,16 @@ local message = MSG_MISS; local typeEffect = EFFECT_CURSE_I; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local duration = 360; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.7) then - duration = duration - (duration/3); - end - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; - end + local statmod = MOD_INT; + local duration = 360; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.7) then + duration = duration - (duration/3); end + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; + end else message = MSG_NO_EFFECT; end Index: Wind_Breath.lua =================================================================== --- Wind_Breath.lua (revision 2241) +++ Wind_Breath.lua (working copy) @@ -16,7 +16,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*5,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_IGNORE_SHADOWS); Index: Big_Scissors.lua =================================================================== --- Big_Scissors.lua (revision 2241) +++ Big_Scissors.lua (working copy) @@ -8,9 +8,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local numhits = 3; + local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Hammer_Beak.lua =================================================================== --- Hammer_Beak.lua (revision 2241) +++ Hammer_Beak.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1.15; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Heavy_Stomp.lua =================================================================== --- Heavy_Stomp.lua (revision 2241) +++ Heavy_Stomp.lua (working copy) @@ -19,18 +19,15 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); if(resist > 0.5) then - target:addStatusEffect(typeEffect,8,3,60);--power=8;tic=3;duration=60; + target:addStatusEffect(typeEffect,10,3,360);--power=8;tic=3;duration=60; end - end end local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .3; + local dmgmod = .7; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Shadow_Thrust.lua =================================================================== --- Shadow_Thrust.lua (revision 2241) +++ Shadow_Thrust.lua (working copy) @@ -20,7 +20,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Screwdriver.lua =================================================================== --- Screwdriver.lua (revision 2241) +++ Screwdriver.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Screwdriver --- Deals critical damage. Chance of critical hit varies with TP. +-- Deals critical damage. Chance of critical hit varies with TP. -- 100% TP: ??? / 200% TP: ??? / 300% TP: ??? --------------------------------------------------- @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = math.random(1,3); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_CRIT_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Triclip.lua =================================================================== --- Triclip.lua (revision 2241) +++ Triclip.lua (working copy) @@ -31,7 +31,7 @@ local numhits = 3; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Sound_Vacuum.lua =================================================================== --- Sound_Vacuum.lua (revision 2241) +++ Sound_Vacuum.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_SILENCE; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,3); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30; end else message = MSG_NO_EFFECT; Index: Frenetic_Rip.lua =================================================================== --- Frenetic_Rip.lua (revision 2241) +++ Frenetic_Rip.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Delivers a threefold attack. Damage varies with TP. -- Type: Physical (Blunt) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,7 +18,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 3; local accmod = 1; - local dmgmod = .4; + local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Obfuscate.lua =================================================================== --- Obfuscate.lua (revision 2241) +++ Obfuscate.lua (working copy) @@ -19,16 +19,11 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - skill:setMsg(MSG_ENFEEB_IS); - target:addStatusEffect(typeEffect,16,0,60);--power=16;tic=0;duration=60; - else - skill:setMsg(MSG_MISS); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.3) then + skill:setMsg(MSG_ENFEEB_IS); + target:addStatusEffect(typeEffect,16,0,60);--power=16;tic=0;duration=60; else skill:setMsg(MSG_MISS); end Index: Shoulder_Attack.lua =================================================================== --- Shoulder_Attack.lua (revision 2241) +++ Shoulder_Attack.lua (working copy) @@ -19,7 +19,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Hell_Slash.lua =================================================================== --- Hell_Slash.lua (revision 2241) +++ Hell_Slash.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .5; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Acid_Breath.lua =================================================================== --- Acid_Breath.lua (revision 2241) +++ Acid_Breath.lua (working copy) @@ -33,7 +33,7 @@ skill:setMsg(MSG_NO_EFFECT); end - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Sprout_Spin.lua =================================================================== --- Sprout_Spin.lua (revision 2241) +++ Sprout_Spin.lua (working copy) @@ -19,7 +19,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Deadly_Drive.lua =================================================================== --- Deadly_Drive.lua (revision 2241) +++ Deadly_Drive.lua (working copy) @@ -10,7 +10,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .75; + local dmgmod = math.random(1,2) + 1.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Sulfurous_Breath.lua =================================================================== --- Sulfurous_Breath.lua (revision 2241) +++ Sulfurous_Breath.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------- -- Sulfurous_Breath --- Deals Fire damage to enemies within a fan-shaped area. +-- Deals Fire damage to enemies within a fan-shaped area. -- Breath Attack --------------------------------------------- @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_H2H,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Claw_Cyclone.lua =================================================================== --- Claw_Cyclone.lua (revision 2241) +++ Claw_Cyclone.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Damages enemies within area of effect with a twofold attack. Damage varies with TP. -- Type: Physical (Slashing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 2; local accmod = 1; - local dmgmod = .5; + local dmgmod = .7; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Potent_Lunge.lua =================================================================== --- Potent_Lunge.lua (revision 2241) +++ Potent_Lunge.lua (working copy) @@ -21,7 +21,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Battle_Dance.lua =================================================================== --- Battle_Dance.lua (revision 2241) +++ Battle_Dance.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Delivers an area attack. Additional effect: DEX Down. Duration of effect varies with TP. -- Type: Physical (Slashing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -27,7 +27,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 2; + local dmgmod = 1.8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Gusting_Gouge.lua =================================================================== --- Gusting_Gouge.lua (revision 2241) +++ Gusting_Gouge.lua (working copy) @@ -19,7 +19,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local numhits = 3; + local numhits = math.random(2, 3); local accmod = 1; local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); Index: Petribreath.lua =================================================================== --- Petribreath.lua (revision 2241) +++ Petribreath.lua (working copy) @@ -20,15 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_PETRIFICATION; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,3); - if(accrand == 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then + if(resist > 0.6) then message = MSG_ENFEEB_IS; target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30; end - end else message = MSG_NO_EFFECT; end Index: Ion_Shower.lua =================================================================== --- Ion_Shower.lua (revision 2241) +++ Ion_Shower.lua (working copy) @@ -19,20 +19,17 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.5) then - local duration = skill:getTP()/100 + 3; - target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.5) then + local duration = skill:getTP()/100 + 3; + target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; end end local dmgmod = 1; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*1.5,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*1.8,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_THUNDER,MOBPARAM_WIPE_SHADOWS); target:delHP(dmg); return dmg; Index: Blockhead.lua =================================================================== --- Blockhead.lua (revision 2241) +++ Blockhead.lua (working copy) @@ -14,10 +14,10 @@ end; function OnMobWeaponSkill(target, mob, skill) - -- Needs Knockback added + -- Needs Knockback added local numhits = 1; local accmod = 1; - local dmgmod = .37; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Dread_Shriek.lua =================================================================== --- Dread_Shriek.lua (revision 2241) +++ Dread_Shriek.lua (working copy) @@ -20,15 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); if(resist > 0.5) then message = MSG_ENFEEB_IS; target:addStatusEffect(typeEffect,30,0,60);--power=30;tic=0;duration=60; end - end else message = MSG_NO_EFFECT; end Index: Whip_Tongue.lua =================================================================== --- Whip_Tongue.lua (revision 2241) +++ Whip_Tongue.lua (working copy) @@ -30,7 +30,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Deafening_Tantara.lua =================================================================== --- Deafening_Tantara.lua (revision 2241) +++ Deafening_Tantara.lua (working copy) @@ -20,14 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_SILENCE; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,4); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30; + end else message = MSG_NO_EFFECT; end Index: Rot_Gas.lua =================================================================== --- Rot_Gas.lua (revision 2241) +++ Rot_Gas.lua (working copy) @@ -21,14 +21,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_DISEASE; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,120);--power=1;tic=0;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.4) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,120);--power=1;tic=0;duration=120; end else message = MSG_NO_EFFECT; Index: Whirl_of_Rage.lua =================================================================== --- Whirl_of_Rage.lua (revision 2241) +++ Whirl_of_Rage.lua (working copy) @@ -19,13 +19,13 @@ local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,5);--power=1;tic=0;duration=5; + target:addStatusEffect(typeEffect,1,0,math.random(2,6));--power=1;tic=0;duration=5; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Fang_Rush.lua =================================================================== --- Fang_Rush.lua (revision 2241) +++ Fang_Rush.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 3; local accmod = 1; - local dmgmod = .9; + local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Blazing_Bound.lua =================================================================== --- Blazing_Bound.lua (revision 2241) +++ Blazing_Bound.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals fire damage to an enemy. -- Type: Magical (Fire) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -16,9 +16,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = .9; + local dmgmod = 2; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*1.5,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*2,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); return dmg; Index: Aerial_Wheel.lua =================================================================== --- Aerial_Wheel.lua (revision 2241) +++ Aerial_Wheel.lua (working copy) @@ -19,13 +19,13 @@ local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,5);--power=1;tic=0;duration=5; + target:addStatusEffect(typeEffect,1,0,math.random(2, 6));--power=1;tic=0;duration=5; end end local numhits = 1; local accmod = 1; - local dmgmod = .5; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_RANGED,MOBPARAM_NONE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Power_Attack.lua =================================================================== --- Power_Attack.lua (revision 2241) +++ Power_Attack.lua (working copy) @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_H2H,info.hitslanded); target:delHP(dmg); Index: Tail_Smash.lua =================================================================== --- Tail_Smash.lua (revision 2241) +++ Tail_Smash.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BIND; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30 - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30 end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Eye_Scratch.lua =================================================================== --- Eye_Scratch.lua (revision 2241) +++ Eye_Scratch.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,12,0,60);--power=12;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,12,0,60);--power=12;tic=0;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = (math.random(1,2)*.6) * mob:getMainLvl() /100; + local dmgmod = (math.random(1,2)*.7) * mob:getMainLvl() /100; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Great_Sandstorm.lua =================================================================== --- Great_Sandstorm.lua (revision 2241) +++ Great_Sandstorm.lua (working copy) @@ -19,18 +19,15 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - local power = math.random(5,8); - target:addStatusEffect(typeEffect,power,0,60);--tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + local power = math.random(5,8); + target:addStatusEffect(typeEffect,power,0,60);--tic=0;duration=60; end end - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_EARTH,MOBPARAM_IGNORE_SHADOWS); Index: Soul_Drain.lua =================================================================== --- Soul_Drain.lua (revision 2241) +++ Soul_Drain.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local dmgmod = 1; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*4,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_1_SHADOW); target:delHP(dmg); mob:addHP(dmg); Index: Typhoon.lua =================================================================== --- Typhoon.lua (revision 2241) +++ Typhoon.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = math.random(2,4); local accmod = 1; - local dmgmod = .2; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Horror_Cloud.lua =================================================================== --- Horror_Cloud.lua (revision 2241) +++ Horror_Cloud.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_SLOW; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,35,0,60);--power=35;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,35,0,60);--power=35;tic=0;duration=60; end else message = MSG_NO_EFFECT; Index: Roar.lua =================================================================== --- Roar.lua (revision 2241) +++ Roar.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,35,0,60);--power=35;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.4) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,35,0,60);--power=35;tic=0;duration=60; end else message = MSG_NO_EFFECT; Index: Smite_of_Rage.lua =================================================================== --- Smite_of_Rage.lua (revision 2241) +++ Smite_of_Rage.lua (working copy) @@ -16,7 +16,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1.5,2.25,2.5); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,MOBPARAM_2_SHADOW); target:delHP(dmg); Index: Abyss_Blast.lua =================================================================== --- Abyss_Blast.lua (revision 2241) +++ Abyss_Blast.lua (working copy) @@ -28,7 +28,7 @@ end end - local dmgmod = 1; + local dmgmod = 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_IGNORE_SHADOWS); Index: Rhino_Attack.lua =================================================================== --- Rhino_Attack.lua (revision 2241) +++ Rhino_Attack.lua (working copy) @@ -1,7 +1,7 @@ --------------------------------------------- -- Rhino_Attack -- Deals damage to a single target. Additional effect: Knockback --- Utsusemi/Blink absorb: 1 shadow +-- Utsusemi/Blink absorb: 1 shadow --------------------------------------------- require("/scripts/globals/settings"); @@ -20,7 +20,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Leaf_Dagger.lua =================================================================== --- Leaf_Dagger.lua (revision 2241) +++ Leaf_Dagger.lua (working copy) @@ -19,23 +19,20 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local power = (mob:getMainLvl()/10); - if (power < 1 ) then - power = 1; - end - target:addStatusEffect(typeEffect,power,3,18);--tic=3;duration=18; + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.5) then + local power = (mob:getMainLvl()/10); + if (power < 1 ) then + power = 1; end + target:addStatusEffect(typeEffect,power,3,18);--tic=3;duration=18; end end - local numhits = 1; + local numhits = 2; local accmod = 1; - local dmgmod = .7; + local dmgmod = 1.6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_PIERCE,info.hitslanded); target:delHP(dmg); Index: Wind_Shear.lua =================================================================== --- Wind_Shear.lua (revision 2241) +++ Wind_Shear.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .6; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Firespit.lua =================================================================== --- Firespit.lua (revision 2241) +++ Firespit.lua (working copy) @@ -2,7 +2,7 @@ -- Firespit -- -- Description: Deals fire damage to an enemy. --- Type: Magical (Fire) +-- Type: Magical (Fire) --------------------------------------------- require("/scripts/globals/settings"); @@ -16,7 +16,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_IGNORE_SHADOWS); Index: Forceful_Blow.lua =================================================================== --- Forceful_Blow.lua (revision 2241) +++ Forceful_Blow.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Asthenic_Fog.lua =================================================================== --- Asthenic_Fog.lua (revision 2241) +++ Asthenic_Fog.lua (working copy) @@ -20,14 +20,11 @@ local typeEffect = EFFECT_DROWN; local message = MSG_MISS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,3); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,15,3,120);--power=15;tic=3;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,15,3,120);--power=15;tic=3;duration=120; end else message = MSG_NO_EFFECT; Index: Acid_Mist.lua =================================================================== --- Acid_Mist.lua (revision 2241) +++ Acid_Mist.lua (working copy) @@ -23,7 +23,7 @@ end end - local dmgmod = 1; + local dmgmod = 1.5; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 3,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_WIPE_SHADOWS); Index: Death_Ray.lua =================================================================== --- Death_Ray.lua (revision 2241) +++ Death_Ray.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals dark damage to an enemy. -- Type: Magical (Dark) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -15,7 +15,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = 2.3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_IGNORE_SHADOWS); Index: Fluid_Spread.lua =================================================================== --- Fluid_Spread.lua (revision 2241) +++ Fluid_Spread.lua (working copy) @@ -18,7 +18,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .6; + local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Dark_Wave.lua =================================================================== --- Dark_Wave.lua (revision 2241) +++ Dark_Wave.lua (working copy) @@ -19,21 +19,18 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BIO; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - local cTime = VanadielHour(); - if(12 <= cTime) then - local power = 8 + (cTime - 11); - end - target:addStatusEffect(typeEffect,power,3,30);--tic=3;duration=30; + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.5) then + local cTime = VanadielHour(); + if(12 <= cTime) then + local power = 8 + (cTime - 11); end + target:addStatusEffect(typeEffect,power,3,30);--tic=3;duration=30; end end - local dmgmod = .9; + local dmgmod = 1.5; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*1.5,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_IGNORE_SHADOWS); Index: Claw_Storm.lua =================================================================== --- Claw_Storm.lua (revision 2241) +++ Claw_Storm.lua (working copy) @@ -0,0 +1,36 @@ +--------------------------------------------- +-- Claw Storm +-- +-- Description: Slashes a single target in a threefold attack. Additional effect: Poison +-- Type: Physical +-- Utsusemi/Blink absorb: 1 shadow +-- Range: Melee +-- Notes: +--------------------------------------------- +require("/scripts/globals/settings"); +require("/scripts/globals/status"); +require("/scripts/globals/monstertpmoves"); + +--------------------------------------------- +function OnMobSkillCheck(target,mob,skill) + return 0; +end; + +function OnMobWeaponSkill(target, mob, skill) + local typeEffect = EFFECT_POISON; + if(target:hasStatusEffect(typeEffect) == false) + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.4) then + target:addStatusEffect(typeEffect,7,3,30);--tic=3;duration=18; + end + end + + local numhits = 3; + local accmod = 1; + local dmgmod = 1; + local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); + local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); + target:delHP(dmg); + return dmg; +end; Index: Dragon_Kick.lua =================================================================== --- Dragon_Kick.lua (revision 2241) +++ Dragon_Kick.lua (working copy) @@ -18,7 +18,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 0.8; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,2,2.75,3.50); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Viscid_Nectar.lua =================================================================== --- Viscid_Nectar.lua (revision 2241) +++ Viscid_Nectar.lua (working copy) @@ -24,7 +24,7 @@ local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); if(resist > 0.5) then skill:setMsg(MSG_ENFEEB_IS); - target:addStatusEffect(typeEffect,2,0,120);--power=2;tic=0;duration=120; + target:addStatusEffect(typeEffect,30,0,120);--power=30;tic=0;duration=120; else skill:setMsg(MSG_MISS); end Index: Splash_Breath.lua =================================================================== --- Splash_Breath.lua (revision 2241) +++ Splash_Breath.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Splash Breath --- Deals Water damage in a fan-shaped cone area of effect. +-- Deals Water damage in a fan-shaped cone area of effect. --------------------------------------------------- require("/scripts/globals/settings"); @@ -14,9 +14,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 3,accmod,dmgmod,TP_MAB_BONUS,1); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 4,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_WIPE_SHADOWS); target:delHP(dmg); return dmg; Index: Dread_Dive.lua =================================================================== --- Dread_Dive.lua (revision 2241) +++ Dread_Dive.lua (working copy) @@ -21,19 +21,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,6);--power=1;tic=0;duration=6; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,1,0,6);--power=1;tic=0;duration=6; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Gates_of_Hades.lua =================================================================== --- Gates_of_Hades.lua (revision 2241) +++ Gates_of_Hades.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals severe Fire damage to enemies within an area of effect. Additional effect: Burn -- Type: Magical --- --- +-- +-- -- Utsusemi/Blink absorb: Wipes shadows -- Range: 20' radial -- Notes: Only used when a cerberus's health is 25% or lower (may not be the case for Orthrus). The burn effect takes off upwards of 20 HP per tick. @@ -21,21 +21,18 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BURN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,8); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,1); - if(resist > 0.5) then - if(resist >= 1) then -- Added just incase resist number retuns a value higher then .9. - resist = .9; - end - local power = ((resist * 10) - 5) * math.random(1,2) + 19; -- makes dot damage between 20 - 28, based off resistance and random variable. - target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,1); + if(resist > 0.5) then + if(resist >= 1) then -- Added just incase resist number retuns a value higher then .9. + resist = .9; end + local power = ((resist * 10) - 5) * math.random(1,2) + 19; -- makes dot damage between 20 - 28, based off resistance and random variable. + target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end end - local dmgmod = 1; + local dmgmod = 1.2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_WIPE_SHADOWS); Index: Blindeye.lua =================================================================== --- Blindeye.lua (revision 2241) +++ Blindeye.lua (working copy) @@ -18,20 +18,17 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; - if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,8,0,60);--power=8;tic=0;duration=60; - end + if(target:hasStatusEffect(typeEffect) == false) then + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,8,0,60);--power=8;tic=0;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Helldive.lua =================================================================== --- Helldive.lua (revision 2241) +++ Helldive.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Damage varies with TP. -- Type: Physical (Blunt) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,7 +18,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .8; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Mangle.lua =================================================================== --- Mangle.lua (revision 2241) +++ Mangle.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 3; local accmod = 1; - local dmgmod = .33; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Shell_Bash.lua =================================================================== --- Shell_Bash.lua (revision 2241) +++ Shell_Bash.lua (working copy) @@ -25,7 +25,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Fluid_Toss.lua =================================================================== --- Fluid_Toss.lua (revision 2241) +++ Fluid_Toss.lua (working copy) @@ -24,7 +24,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Freeze_Rush.lua =================================================================== --- Freeze_Rush.lua (revision 2241) +++ Freeze_Rush.lua (working copy) @@ -17,9 +17,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = 2; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*4,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_ICE,MOBPARAM_1_SHADOW); target:delHP(dmg); return dmg; Index: Frost_Breath.lua =================================================================== --- Frost_Breath.lua (revision 2241) +++ Frost_Breath.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals ice damage to enemies within a fan-shaped area originating from the caster. Additional effect: Paralysis. -- Type: Magical (Ice) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,17 +18,14 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then --Let's first see if it's worth the time to do this math, since there's no messages to handle - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,25,0,30);--power=25;tic=0;duration=30; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,25,0,30);--power=25;tic=0;duration=30; end end - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_ICE,MOBPARAM_IGNORE_SHADOWS); Index: Sweep.lua =================================================================== --- Sweep.lua (revision 2241) +++ Sweep.lua (working copy) @@ -19,12 +19,12 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - target:addStatusEffect(typeEffect,1,0,5);--power=1;tic=0;duration=5; + target:addStatusEffect(typeEffect,1,0,math.random(2,6));--power=1;tic=0;duration=5; end local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .4; + local dmgmod = .5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Spore.lua =================================================================== --- Spore.lua (revision 2241) +++ Spore.lua (working copy) @@ -3,7 +3,7 @@ -- Emits a cloud of spores that inflict paralysis. -- Utsusemi/Blink absorb: Ignores shadows -- Range: Melee? --- Duration: 9:00 +-- Duration: 9:00 --------------------------------------------------- require("/scripts/globals/settings"); Index: Leafstorm.lua =================================================================== --- Leafstorm.lua (revision 2241) +++ Leafstorm.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals wind damage within area of effect. -- Type: Magical Wind --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -15,7 +15,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = .6; + local dmgmod = 1; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_WIPE_SHADOWS); Index: Entangle.lua =================================================================== --- Entangle.lua (revision 2241) +++ Entangle.lua (working copy) @@ -20,15 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_BIND; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); if(resist > 0.5) then message = MSG_ENFEEB_IS; target:addStatusEffect(typeEffect,1,0,30);--power=1;tic=0;duration=30; end - end else message = MSG_NO_EFFECT; end Index: Somersault_Kick.lua =================================================================== --- Somersault_Kick.lua (revision 2241) +++ Somersault_Kick.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Hurricane_Wing.lua =================================================================== --- Hurricane_Wing.lua (revision 2241) +++ Hurricane_Wing.lua (working copy) @@ -5,7 +5,7 @@ -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 30' radial. --- Notes: Used only by Dragua, Fafnir, Nidhogg, Cynoprosopi, Wyrm, and Odzmanouk. The blinding effect does not last long +-- Notes: Used only by Dragua, Fafnir, Nidhogg, Cynoprosopi, Wyrm, and Odzmanouk. The blinding effect does not last long -- but is very harsh. The attack is wide enough to generally hit an entire alliance. --------------------------------------------- require("/scripts/globals/settings"); @@ -20,19 +20,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,60,0,20); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,60,0,20); end end - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*4,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_WIPE_SHADOWS); target:delHP(dmg); return dmg; Index: Tidal_Dive.lua =================================================================== --- Tidal_Dive.lua (revision 2241) +++ Tidal_Dive.lua (working copy) @@ -20,34 +20,27 @@ local duration = 0; local typeEffect = EFFECT_BIND; local statmod = MOD_INT; - local accrand = 0; local resist = 0 if(target:hasStatusEffect(typeEffect) == false) then - accrand = math.random(1,2); - if(accrand == 1) then - resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - duration = skill:getTP()/100 * math.random(3,5) + 18; - target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; - end + resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + duration = skill:getTP()/100 * math.random(3,5) + 18; + target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; end end typeEffect = EFFECT_WEIGHT; if(target:hasStatusEffect(typeEffect) == false) then - accrand = math.random(1,2); - if(accrand == 1) then - resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - duration = skill:getTP()/100 * math.random(3,5) + 18; - target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; - end + resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + duration = skill:getTP()/100 * math.random(3,5) + 18; + target:addStatusEffect(typeEffect,1,0,duration);--power=1;tic=0; end end - local numhits = 1; + local numhits = math.random(2, 3); local accmod = 1; - local dmgmod = 1; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Aqua_Breath.lua =================================================================== --- Aqua_Breath.lua (revision 2241) +++ Aqua_Breath.lua (working copy) @@ -17,7 +17,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 1.5; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*4,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Stinking_Gas.lua =================================================================== --- Stinking_Gas.lua (revision 2241) +++ Stinking_Gas.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Lowers Vitality of enemies within range. -- Type: Magical (Wind) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,14 +18,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_VIT_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; end else message = MSG_NO_EFFECT; Index: Hexidiscs.lua =================================================================== --- Hexidiscs.lua (revision 2241) +++ Hexidiscs.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 6; local accmod = 1; - local dmgmod = .2; + local dmgmod = .7; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Ectosmash.lua =================================================================== --- Ectosmash.lua (revision 2241) +++ Ectosmash.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .5; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_RANGED,MOBPARAM_NONE,MOBPARAM_1_SHADOW); target:delHP(dmg); Index: Earth_Breath.lua =================================================================== --- Earth_Breath.lua (revision 2241) +++ Earth_Breath.lua (working copy) @@ -17,7 +17,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_EARTH,MOBPARAM_IGNORE_SHADOWS); Index: Final_Sting.lua =================================================================== --- Final_Sting.lua (revision 2241) +++ Final_Sting.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals damage proportional to HP. Reduces HP to 1 after use. Damage varies with TP. -- Type: Physical (Slashing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -21,7 +21,7 @@ if(mob:getHP()>1) then local mobHP = mob:getHP(); local hpMod = mobHP/mob:getMaxHP(); - dmgmod = dmgmod + hpMod/5; + dmgmod = dmgmod + hpMod * 13; mob:setHP(1); end Index: Wild_Rage.lua =================================================================== --- Wild_Rage.lua (revision 2241) +++ Wild_Rage.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .5; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Sledgehammer.lua =================================================================== --- Sledgehammer.lua (revision 2241) +++ Sledgehammer.lua (working copy) @@ -30,7 +30,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Cold_Wave.lua =================================================================== --- Cold_Wave.lua (revision 2241) +++ Cold_Wave.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals ice damage that lowers Agility and gradually reduces HP of enemies within range. -- Type: Magical (Ice) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -21,7 +21,7 @@ target:addStatusEffect(typeEffect,power,3,120);--tic=3;duration=120; end - local dmgmod = 1; + local dmgmod = 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_ICE,MOBPARAM_IGNORE_SHADOWS); Index: Maelstrom.lua =================================================================== --- Maelstrom.lua (revision 2241) +++ Maelstrom.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals water damage to enemies within range. Additional effect: STR Down. -- Type: Magical (Water) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,14 +18,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_STR_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - message = MSG_ENFEEB; - target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120 - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.3) then + message = MSG_ENFEEB; + target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120 end else message = MSG_NO_EFFECT; Index: Radiant_Breath.lua =================================================================== --- Radiant_Breath.lua (revision 2241) +++ Radiant_Breath.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals light damage to enemies within a fan-shaped area of effect originating from the caster. Additional effect: Slow and Silence. -- Type: Magical (Light) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,30 +17,23 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_SLOW; local statmod = MOD_INT; - local accrand = 1; local resist = 1; if(target:hasStatusEffect(typeEffect) == false) then - accrand = math.random(1,2); - if(accrand == 1) then - resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,12,0,60);--power=12;tic=0;duration=60; - end + resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,20,0,60);--power=12;tic=0;duration=60; end end typeEffect = EFFECT_SILENCE; if(target:hasStatusEffect(typeEffect) == false) then - accrand = math.random(1,2); - if(accrand == 1) then - resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,12,0,60);--power=12;tic=0;duration=60; - end + resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,12,0,60);--power=12;tic=0;duration=60; end end - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_LIGHT,MOBPARAM_WIPE_SHADOWS); Index: Wing_Whirl.lua =================================================================== --- Wing_Whirl.lua (revision 2241) +++ Wing_Whirl.lua (working copy) @@ -19,9 +19,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local numhits = 1; + local numhits = math.random(2,3); local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Double_Kick.lua =================================================================== --- Double_Kick.lua (revision 2241) +++ Double_Kick.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.7) then - target:addStatusEffect(typeEffect,1,3,60);--power=1;tic=3;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.7) then + target:addStatusEffect(typeEffect,1,3,math.random(2,6));--power=1;tic=3;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = .8; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Tail_Blow.lua =================================================================== --- Tail_Blow.lua (revision 2241) +++ Tail_Blow.lua (working copy) @@ -20,19 +20,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_STUN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,4);--power=1;tic=0;duration=4; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,6); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,1,0,math.random(2,6));--power=1;tic=0;duration=4; end end local numhits = 1; local accmod = 1; - local dmgmod = .6; + local dmgmod = 2.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Cyclonic_Torrent.lua =================================================================== --- Cyclonic_Torrent.lua (revision 2241) +++ Cyclonic_Torrent.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_MUTE; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = .8; + local dmgmod = 1.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Lamb_Chop.lua =================================================================== --- Lamb_Chop.lua (revision 2241) +++ Lamb_Chop.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Lamb Chop --- Deals critical damage. Chance of critical hit varies with TP. +-- Deals critical damage. Chance of critical hit varies with TP. -- 100% TP: ??? / 200% TP: ??? / 300% TP: ??? --------------------------------------------------- @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_CRIT_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Hex_Eye.lua =================================================================== --- Hex_Eye.lua (revision 2241) +++ Hex_Eye.lua (working copy) @@ -20,14 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false and target:isFacing(mob)) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,22,0,60); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,25,0,60); + end else message = MSG_NO_EFFECT; end Index: Poison_Breath.lua =================================================================== --- Poison_Breath.lua (revision 2241) +++ Poison_Breath.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals water damage to enemies within a fan-shaped area originating from the caster. Additional effect: Poison. -- Type: Magical Water (Element) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,18 +18,15 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local power = mob:getHP()/100; - target:addStatusEffect(typeEffect,power,3,30);--tic=3;duration=30; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.4) then + local power = mob:getHP()/100; + target:addStatusEffect(typeEffect,power,3,30);--tic=3;duration=30; end end - local dmgmod = 1; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Glacier_Splitter.lua =================================================================== --- Glacier_Splitter.lua (revision 2241) +++ Glacier_Splitter.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,15,3,60); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,15,3,60); end end local numhits = math.random(1,3); local accmod = 1; - local dmgmod = .3; + local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Acrid_Stream.lua =================================================================== --- Acrid_Stream.lua (revision 2241) +++ Acrid_Stream.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals water damage to enemies within a fan-shaped area originating from the caster. Additional effect: Lowers target's Magic Defense. -- Type: Magical (Water) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,17 +18,14 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_MAGIC_DEF_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,3); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,20,0,60);--power=20;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,20,0,60);--power=20;tic=0;duration=60; end end - local dmgmod = 1; + local dmgmod = 1.5; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*1.5,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Dragon_Breath.lua =================================================================== --- Dragon_Breath.lua (revision 2241) +++ Dragon_Breath.lua (working copy) @@ -5,7 +5,7 @@ -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone --- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage output from Fafnir/Nidhogg/Wyrm, it is usually avoided by +-- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage output from Fafnir/Nidhogg/Wyrm, it is usually avoided by -- standing on (or near) the wyrm's two front feet. Cynoprosopi's breath attack is much less painful. --------------------------------------------- require("/scripts/globals/settings"); @@ -18,9 +18,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = .9; + local dmgmod = mob:getHP() / mob:getMaxHP() * 2; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*6,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); return dmg; Index: Bludgeon.lua =================================================================== --- Bludgeon.lua (revision 2241) +++ Bludgeon.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Delivers a threefold attack. Accuracy varies with TP. -- Type: Physical (Blunt) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,7 +18,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 3; local accmod = 1; - local dmgmod = .4; + local dmgmod = .7; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_ACC_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Black_Cloud.lua =================================================================== --- Black_Cloud.lua (revision 2241) +++ Black_Cloud.lua (working copy) @@ -20,21 +20,18 @@ local message = MSG_MISS; local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; end else message = MSG_NO_EFFECT; end skill:setMsg(message); - local dmgmod = 1; + local dmgmod = 1.2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_WIPE_SHADOWS); Index: Abrasive_Tantara.lua =================================================================== --- Abrasive_Tantara.lua (revision 2241) +++ Abrasive_Tantara.lua (working copy) @@ -20,14 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_AMNESIA; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,6); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,1); - if(resist > 0.3) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,30); --power=1;tic=0;duration=30; - end + + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,1); + if(resist > 0.3) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,30); --power=1;tic=0;duration=30; end else message = MSG_NO_EFFECT; Index: Zarbzan.lua =================================================================== --- Zarbzan.lua (revision 2241) +++ Zarbzan.lua (working copy) @@ -19,9 +19,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*5,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); return dmg; Index: Great_Bleat.lua =================================================================== --- Great_Bleat.lua (revision 2241) +++ Great_Bleat.lua (working copy) @@ -19,8 +19,6 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_MAX_HP_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); if(resist > 0.5) then @@ -29,9 +27,6 @@ else skill:setMsg(MSG_MISS); end - else - skill:setMsg(MSG_MISS); - end else skill:setMsg(MSG_NO_EFFECT); end Index: Acid_Spray.lua =================================================================== --- Acid_Spray.lua (revision 2241) +++ Acid_Spray.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Acid Spray --- Deals Water damage to targets in a fan-shaped area of effect. Additional effect: Poison +-- Deals Water damage to targets in a fan-shaped area of effect. Additional effect: Poison --------------------------------------------------- require("/scripts/globals/settings"); @@ -18,13 +18,13 @@ if(target:hasStatusEffect(typeEffect) == false) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then + if(resist > 0.3) then local poison = mob:getMainLvl() / 2; target:addStatusEffect(typeEffect,1,poison,180); end end - - local dmgmod = 1; + + local dmgmod = 1.5; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 3,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Arrow_Deluge.lua =================================================================== --- Arrow_Deluge.lua (revision 2241) +++ Arrow_Deluge.lua (working copy) @@ -18,7 +18,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local numhits = 3; + local numhits = math.random(2,3); local accmod = 1; local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); Index: Jet_Stream.lua =================================================================== --- Jet_Stream.lua (revision 2241) +++ Jet_Stream.lua (working copy) @@ -16,7 +16,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 3; local accmod = 1; - local dmgmod = .3; + local dmgmod = math.random(1,3); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_ACC_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); Index: Queasyshroom.lua =================================================================== --- Queasyshroom.lua (revision 2241) +++ Queasyshroom.lua (working copy) @@ -6,7 +6,7 @@ -- Secondary modifiers: INT: 20%. -- Additional Effect: Poison is 3 HP/tick. -- Poison effect may not always process. --- Removes all Shadow Images on the target. +-- Removes all Shadow Images on the target. --------------------------------------------------- require("/scripts/globals/settings"); @@ -22,27 +22,24 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.5) then - local mobTP = mob:getTP(); - if(mobTP <= 100) then - local poisontime = 60; - elseif(mobTP <= 200) then - local poisontime = 120; - else - local poisontime = 180; - end - target:addStatusEffect(typeEffect,1,3,poisontime); + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.4) then + local mobTP = mob:getTP(); + if(mobTP <= 100) then + local poisontime = 60; + elseif(mobTP <= 200) then + local poisontime = 120; + else + local poisontime = 180; end + target:addStatusEffect(typeEffect,3,3,poisontime); end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = .7; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_PIERCE,MOBPARAM_WIPE_SHADOWS); target:delHP(dmg); Index: Overthrow.lua =================================================================== --- Overthrow.lua (revision 2241) +++ Overthrow.lua (working copy) @@ -21,7 +21,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); Index: Asuran_Fists.lua =================================================================== --- Asuran_Fists.lua (revision 2241) +++ Asuran_Fists.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------- -- Asuran Fists --- Description: Delivers an eightfold attack. Accuracy varies with TP. +-- Description: Delivers an eightfold attack. Accuracy varies with TP. -- Type: Physical --------------------------------------------- @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 8; local accmod = 1; - local dmgmod = 0.2; + local dmgmod = 0.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,1,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Thundris_Shriek.lua =================================================================== --- Thundris_Shriek.lua (revision 2241) +++ Thundris_Shriek.lua (working copy) @@ -27,7 +27,7 @@ end end - local dmgmod = 1; + local dmgmod = 1.3; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*6,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_LIGHT,MOBPARAM_WIPE_SHADOWS); Index: Undead_Mold.lua =================================================================== --- Undead_Mold.lua (revision 2241) +++ Undead_Mold.lua (working copy) @@ -19,16 +19,11 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_DISEASE; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - skill:setMsg(MSG_ENFEEB_IS); - target:addStatusEffect(typeEffect,1,0,120);--power=1;tic=0;duration=120; - else - skill:setMsg(MSG_MISS); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.3) then + skill:setMsg(MSG_ENFEEB_IS); + target:addStatusEffect(typeEffect,1,0,120);--power=1;tic=0;duration=120; else skill:setMsg(MSG_MISS); end Index: Circle_of_Flames.lua =================================================================== --- Circle_of_Flames.lua (revision 2241) +++ Circle_of_Flames.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_WEIGHT; if(target:hasStatusEffect(typeEffect) == true) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; end end local numhits = math.random(1,3); local accmod = 1; - local dmgmod = .4; + local dmgmod = .8; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Drill_Branch.lua =================================================================== --- Drill_Branch.lua (revision 2241) +++ Drill_Branch.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,15,0,60);--power=15;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.5) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,15,0,60);--power=15;tic=0;duration=60; end else message = MSG_NO_EFFECT; @@ -36,7 +33,7 @@ local numhits = math.random(2,3); local accmod = 1; - local dmgmod = .5; + local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Tortoise_Stomp.lua =================================================================== --- Tortoise_Stomp.lua (revision 2241) +++ Tortoise_Stomp.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1.3; + local dmgmod = 5.3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Cursed_Sphere.lua =================================================================== --- Cursed_Sphere.lua (revision 2241) +++ Cursed_Sphere.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals water damage to enemies within area of effect. -- Type: Magical Water (Element) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -14,8 +14,8 @@ return 0; end; -function OnMobWeaponSkill(target, mob, skill) - local dmgmod = .7; +function OnMobWeaponSkill(target, mob, skill) + local dmgmod = .8; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Blaster.lua =================================================================== --- Blaster.lua (revision 2241) +++ Blaster.lua (working copy) @@ -20,14 +20,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,50,0,60);--power=50;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.3) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,50,0,60);--power=50;tic=0;duration=60; end else message = MSG_NO_EFFECT; Index: Ore_Toss.lua =================================================================== --- Ore_Toss.lua (revision 2241) +++ Ore_Toss.lua (working copy) @@ -20,7 +20,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 5; - local dmgmod = 6; + local dmgmod = math.random(3,6); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_RANGED,MOBPARAM_NONE,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Pinning_Shot.lua =================================================================== --- Pinning_Shot.lua (revision 2241) +++ Pinning_Shot.lua (working copy) @@ -28,7 +28,7 @@ end end - local numhits = 3; + local numhits = math.random(2, 3); local accmod = 1; local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); Index: Riddle.lua =================================================================== --- Riddle.lua (revision 2241) +++ Riddle.lua (working copy) @@ -18,14 +18,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_MAX_MP_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,30,0,120);--power=30;tic=0;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.3) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,42,0,120);--power=30;tic=0;duration=120; end else message = MSG_NO_EFFECT; Index: Hecatomb_Wave.lua =================================================================== --- Hecatomb_Wave.lua (revision 2241) +++ Hecatomb_Wave.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Deals wind damage to enemies within a fan-shaped area originating from the caster. Additional effect: Blindness. -- Type: Magical (Wind) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,17 +17,14 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,12,0,60); - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,15,0,60); end end - local dmgmod = .9; + local dmgmod = 1.2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_IGNORE_SHADOWS); Index: Chomp_Rush.lua =================================================================== --- Chomp_Rush.lua (revision 2241) +++ Chomp_Rush.lua (working copy) @@ -20,19 +20,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_SLOW; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,25,0,30);--power=25;tic=0;duration=30; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); + if(resist > 0.3) then + target:addStatusEffect(typeEffect,25,0,30);--power=25;tic=0;duration=30; end end local numhits = 3; local accmod = 1; - local dmgmod = .8; + local dmgmod = 1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Death_Scissors.lua =================================================================== --- Death_Scissors.lua (revision 2241) +++ Death_Scissors.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Damage varies with TP. -- Type: Physical (Slashing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -17,7 +17,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .5; + local dmgmod = math.random(5,8); local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Eyes_on_Me.lua =================================================================== --- Eyes_on_Me.lua (revision 2241) +++ Eyes_on_Me.lua (working copy) @@ -16,7 +16,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = 1.5; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 4,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_WIPE_SHADOWS); Index: Vicious_Claw.lua =================================================================== --- Vicious_Claw.lua (revision 2241) +++ Vicious_Claw.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .55; + local dmgmod = 3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Scratch.lua =================================================================== --- Scratch.lua (revision 2241) +++ Scratch.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,18,0,60);--power=18;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,18,0,60);--power=18;tic=0;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Vertical_Cleave.lua =================================================================== --- Vertical_Cleave.lua (revision 2241) +++ Vertical_Cleave.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Damage varies with TP. -- Type: Physical (Slashing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,7 +18,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = .8; + local dmgmod = 1.2; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_SLASH,info.hitslanded); target:delHP(dmg); Index: Wing_Cutter.lua =================================================================== --- Wing_Cutter.lua (revision 2241) +++ Wing_Cutter.lua (working copy) @@ -1,6 +1,6 @@ --------------------------------------------------- -- Wing Cutter --- Deals Wind damage to targets in a fan-shaped area of effect. +-- Deals Wind damage to targets in a fan-shaped area of effect. --------------------------------------------------- require("/scripts/globals/settings"); @@ -14,7 +14,7 @@ end; function OnMobWeaponSkill(target, mob, skill) - local dmgmod = 1; + local dmgmod = 1.2; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg() * 3,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WIND,MOBPARAM_IGNORE_SHADOWS); Index: Brain_Crush.lua =================================================================== --- Brain_Crush.lua (revision 2241) +++ Brain_Crush.lua (working copy) @@ -20,10 +20,10 @@ local mobTP = mob:getTP(); local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); if(resist > 0.5) then - local silenceTime = 60; - if(mobTP <= 100) then + local silenceTime = 60; + if(mobTP <= 100) then silenceTime = 30; - elseif(mobTP <= 200) then + elseif(mobTP <= 200) then silenceTime = 40; end target:addStatusEffect(typeEffect,1,0,silenceTime); @@ -32,7 +32,7 @@ local numhits = 1; local accmod = 1; - local dmgmod = .5; + local dmgmod = 1.5; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Sickle_Slash.lua =================================================================== --- Sickle_Slash.lua (revision 2241) +++ Sickle_Slash.lua (working copy) @@ -16,8 +16,8 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 1; local accmod = 1; - local dmgmod = 1; - local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,2,3,4); + local dmgmod = math.random(2,5); + local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_CRIT_VARIES,2,3,4); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded); target:delHP(dmg); return dmg; Index: Ink_Cloud.lua =================================================================== --- Ink_Cloud.lua (revision 2241) +++ Ink_Cloud.lua (working copy) @@ -20,15 +20,12 @@ local message = MSG_MISS; local typeEffect = EFFECT_BLINDNESS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,4); - if(accrand ~= 1) then local statmod = MOD_INT; local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,8); - if(resist > 0.5) then + if(resist > 0.6) then message = MSG_ENFEEB_IS; target:addStatusEffect(typeEffect,12,0,60);--power=12;tic=0;duration=60; end - end else message = MSG_NO_EFFECT; end Index: Impale.lua =================================================================== --- Impale.lua (revision 2241) +++ Impale.lua (working copy) @@ -19,19 +19,16 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_PARALYSIS; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); - if(resist > 0.5) then - target:addStatusEffect(typeEffect,15,0,60);--power=15;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,5); + if(resist > 0.5) then + target:addStatusEffect(typeEffect,15,0,60);--power=15;tic=0;duration=60; end end local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.1; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Chaotic_Eye.lua =================================================================== --- Chaotic_Eye.lua (revision 2241) +++ Chaotic_Eye.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Silences an enemy. -- Type: Magical (Wind) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -19,14 +19,11 @@ local typeEffect = EFFECT_SILENCE; if(target:hasStatusEffect(typeEffect) == false and target:isFacing(mob)) then - local accrand = math.random(1,5); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.3) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,1,0,60);--power=1;tic=0;duration=60; end else message = MSG_NO_EFFECT; Index: Sheep_Charge.lua =================================================================== --- Sheep_Charge.lua (revision 2241) +++ Sheep_Charge.lua (working copy) @@ -14,10 +14,10 @@ end; function OnMobWeaponSkill(target, mob, skill) - -- Needs Knockback added + -- Needs Knockback added local numhits = 1; local accmod = 1; - local dmgmod = 1; + local dmgmod = 2.4; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,info.hitslanded); target:delHP(dmg); Index: Bubble_Shower.lua =================================================================== --- Bubble_Shower.lua (revision 2241) +++ Bubble_Shower.lua (working copy) @@ -27,8 +27,8 @@ local accmod = 1; local cMobHp = mob:getHP(); local mMobHp = mob:getMaxHP(); - local dmgmod = cMobHp/mMobHp * 2; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_NO_EFFECT); + local dmgmod = cMobHp/mMobHp; + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*2,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); return dmg; Index: Spider_Web.lua =================================================================== --- Spider_Web.lua (revision 2241) +++ Spider_Web.lua (working copy) @@ -20,7 +20,7 @@ local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,2); if(resist > 0.5) then skill:setMsg(MSG_ENFEEB_IS); - target:addStatusEffect(typeEffect,2,0,120);--power=2;tic=0;duration=120; + target:addStatusEffect(typeEffect,20,0,120);--power=20;tic=0;duration=120; else skill:setMsg(MSG_MISS); -- resist ! end Index: Venom.lua =================================================================== --- Venom.lua (revision 2241) +++ Venom.lua (working copy) @@ -19,18 +19,15 @@ function OnMobWeaponSkill(target, mob, skill) local typeEffect = EFFECT_POISON; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,6); - if(accrand ~= 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); - if(resist > 0.3) then - local power = mob:getMainLvl()/8 + 3; - target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,3); + if(resist > 0.3) then + local power = mob:getMainLvl()/8 + 3; + target:addStatusEffect(typeEffect,power,3,60);--tic=3;duration=60; end end - local dmgmod = .6; + local dmgmod = .7; local accmod = 1; local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*2,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_WATER,MOBPARAM_IGNORE_SHADOWS); Index: Wild_Oats.lua =================================================================== --- Wild_Oats.lua (revision 2241) +++ Wild_Oats.lua (working copy) @@ -3,8 +3,8 @@ -- -- Description: Additional effect: Vitality Down. Duration of effect varies on TP. -- Type: Physical (Piercing) --- --- +-- +-- --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); @@ -18,14 +18,11 @@ local message = MSG_MISS; local typeEffect = EFFECT_VIT_DOWN; if(target:hasStatusEffect(typeEffect) == false) then - local accrand = math.random(1,2); - if(accrand == 1) then - local statmod = MOD_INT; - local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); - if(resist > 0.5) then - message = MSG_ENFEEB_IS; - target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; - end + local statmod = MOD_INT; + local resist = applyPlayerResistance(mob,skill,target,mob:getMod(statmod)-target:getMod(statmod),0,4); + if(resist > 0.3) then + message = MSG_ENFEEB_IS; + target:addStatusEffect(typeEffect,50,0,120);--power=50;tic=0;duration=120; end else message = MSG_NO_EFFECT; Index: Scorching_Lash.lua =================================================================== --- Scorching_Lash.lua (revision 2241) +++ Scorching_Lash.lua (working copy) @@ -19,9 +19,9 @@ end; function OnMobWeaponSkill(target, mob, skill) - local numhits = 1; + local numhits = math.random(2,3); local accmod = 1; - local dmgmod = 1; + local dmgmod = 1.3; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_NONE,MOBPARAM_3_SHADOW); target:delHP(dmg); Index: Bomb_Toss.lua =================================================================== --- Bomb_Toss.lua (revision 2241) +++ Bomb_Toss.lua (working copy) @@ -10,7 +10,7 @@ function OnMobWeaponSkill(target, mob, skill) local dmgmod = 1; local accmod = 1; - local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*5,accmod,dmgmod,TP_MAB_BONUS,1); + local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*3,accmod,dmgmod,TP_MAB_BONUS,1); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_FIRE,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); return dmg;