Index: Blindeye.lua =================================================================== --- Blindeye.lua (revision 2240) +++ 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 2240) +++ 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: Grim_Reaper.lua =================================================================== --- Grim_Reaper.lua (revision 2240) +++ 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: Disseverment.lua =================================================================== --- Disseverment.lua (revision 2240) +++ 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: Deadly_Hold.lua =================================================================== --- Deadly_Hold.lua (revision 2240) +++ 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: Sprout_Smack.lua =================================================================== --- Sprout_Smack.lua (revision 2240) +++ 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: Sand_Breath.lua =================================================================== --- Sand_Breath.lua (revision 2240) +++ 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: Ion_Shower.lua =================================================================== --- Ion_Shower.lua (revision 2240) +++ 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: Bubble_Shower.lua =================================================================== --- Bubble_Shower.lua (revision 2240) +++ 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: Venom.lua =================================================================== --- Venom.lua (revision 2240) +++ 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: Wind_Breath.lua =================================================================== --- Wind_Breath.lua (revision 2240) +++ 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: Hex_Eye.lua =================================================================== --- Hex_Eye.lua (revision 2240) +++ 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: Tortoise_Stomp.lua =================================================================== --- Tortoise_Stomp.lua (revision 2240) +++ 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: Hammer_Beak.lua =================================================================== --- Hammer_Beak.lua (revision 2240) +++ 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: Acid_Mist.lua =================================================================== --- Acid_Mist.lua (revision 2240) +++ 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: Entangle.lua =================================================================== --- Entangle.lua (revision 2240) +++ 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: Heavy_Stomp.lua =================================================================== --- Heavy_Stomp.lua (revision 2240) +++ 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: Screwdriver.lua =================================================================== --- Screwdriver.lua (revision 2240) +++ 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: Death_Ray.lua =================================================================== --- Death_Ray.lua (revision 2240) +++ 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: Dark_Wave.lua =================================================================== --- Dark_Wave.lua (revision 2240) +++ 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: Riddle.lua =================================================================== --- Riddle.lua (revision 2240) +++ 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: Zarbzan.lua =================================================================== --- Zarbzan.lua (revision 2240) +++ 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: Primal_Drill.lua =================================================================== --- Primal_Drill.lua (revision 2240) +++ 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: Death_Scissors.lua =================================================================== --- Death_Scissors.lua (revision 2240) +++ 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: Tail_Smash.lua =================================================================== --- Tail_Smash.lua (revision 2240) +++ 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: Acid_Breath.lua =================================================================== --- Acid_Breath.lua (revision 2240) +++ 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 2240) +++ 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: Vorpal_Wheel.lua =================================================================== --- Vorpal_Wheel.lua (revision 2240) +++ 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: Earth_Pounder.lua =================================================================== --- Earth_Pounder.lua (revision 2240) +++ 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: Soul_Drain.lua =================================================================== --- Soul_Drain.lua (revision 2240) +++ 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: Thundris_Shriek.lua =================================================================== --- Thundris_Shriek.lua (revision 2240) +++ 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: Impale.lua =================================================================== --- Impale.lua (revision 2240) +++ 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: Petribreath.lua =================================================================== --- Petribreath.lua (revision 2240) +++ 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: Cyclonic_Torrent.lua =================================================================== --- Cyclonic_Torrent.lua (revision 2240) +++ 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: Wind_Shear.lua =================================================================== --- Wind_Shear.lua (revision 2240) +++ 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: Scorching_Lash.lua =================================================================== --- Scorching_Lash.lua (revision 2240) +++ 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: Whip_Tongue.lua =================================================================== --- Whip_Tongue.lua (revision 2240) +++ 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: Big_Scissors.lua =================================================================== --- Big_Scissors.lua (revision 2240) +++ 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: Leafstorm.lua =================================================================== --- Leafstorm.lua (revision 2240) +++ 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: Glacier_Splitter.lua =================================================================== --- Glacier_Splitter.lua (revision 2240) +++ 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: Blaster.lua =================================================================== --- Blaster.lua (revision 2240) +++ 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: Bludgeon.lua =================================================================== --- Bludgeon.lua (revision 2240) +++ 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: Abrasive_Tantara.lua =================================================================== --- Abrasive_Tantara.lua (revision 2240) +++ 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: Sound_Vacuum.lua =================================================================== --- Sound_Vacuum.lua (revision 2240) +++ 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 2240) +++ 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: Claw_Storm.lua =================================================================== --- Claw_Storm.lua (revision 2240) +++ 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: Hexidiscs.lua =================================================================== --- Hexidiscs.lua (revision 2240) +++ 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 2240) +++ 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: Dread_Dive.lua =================================================================== --- Dread_Dive.lua (revision 2240) +++ 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: Scratch.lua =================================================================== --- Scratch.lua (revision 2240) +++ 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 2240) +++ 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: Eye_Scratch.lua =================================================================== --- Eye_Scratch.lua (revision 2240) +++ 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: Spinning_Claw.lua =================================================================== --- Spinning_Claw.lua (revision 2240) +++ 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: Deadly_Drive.lua =================================================================== --- Deadly_Drive.lua (revision 2240) +++ 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: Wild_Rage.lua =================================================================== --- Wild_Rage.lua (revision 2240) +++ 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: Claw_Cyclone.lua =================================================================== --- Claw_Cyclone.lua (revision 2240) +++ 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: Cold_Wave.lua =================================================================== --- Cold_Wave.lua (revision 2240) +++ 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 2240) +++ 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: Potent_Lunge.lua =================================================================== --- Potent_Lunge.lua (revision 2240) +++ 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: Shell_Bash.lua =================================================================== --- Shell_Bash.lua (revision 2240) +++ 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: Battle_Dance.lua =================================================================== --- Battle_Dance.lua (revision 2240) +++ 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: Abyss_Blast.lua =================================================================== --- Abyss_Blast.lua (revision 2240) +++ 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: Fluid_Toss.lua =================================================================== --- Fluid_Toss.lua (revision 2240) +++ 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: Tail_Blow.lua =================================================================== --- Tail_Blow.lua (revision 2240) +++ 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: Circle_of_Flames.lua =================================================================== --- Circle_of_Flames.lua (revision 2240) +++ 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: Mandible_Bite.lua =================================================================== --- Mandible_Bite.lua (revision 2240) +++ 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: Leaf_Dagger.lua =================================================================== --- Leaf_Dagger.lua (revision 2240) +++ Leaf_Dagger.lua (working copy) @@ -18,24 +18,21 @@ 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; + 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.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.5; 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: Curse.lua =================================================================== --- Curse.lua (revision 2240) +++ 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: Lamb_Chop.lua =================================================================== --- Lamb_Chop.lua (revision 2240) +++ 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: Dread_Shriek.lua =================================================================== --- Dread_Shriek.lua (revision 2240) +++ 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: Rumble.lua =================================================================== --- Rumble.lua (revision 2240) +++ 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: Ore_Toss.lua =================================================================== --- Ore_Toss.lua (revision 2240) +++ 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: Shadow_Thrust.lua =================================================================== --- Shadow_Thrust.lua (revision 2240) +++ 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: Tidal_Dive.lua =================================================================== --- Tidal_Dive.lua (revision 2240) +++ 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: Dragon_Kick.lua =================================================================== --- Dragon_Kick.lua (revision 2240) +++ 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: Aerial_Wheel.lua =================================================================== --- Aerial_Wheel.lua (revision 2240) +++ 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 2240) +++ 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: Suction.lua =================================================================== --- Suction.lua (revision 2240) +++ 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: Slumber_Powder.lua =================================================================== --- Slumber_Powder.lua (revision 2240) +++ 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: Great_Whirlwind.lua =================================================================== --- Great_Whirlwind.lua (revision 2240) +++ 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: Overthrow.lua =================================================================== --- Overthrow.lua (revision 2240) +++ 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: Horror_Cloud.lua =================================================================== --- Horror_Cloud.lua (revision 2240) +++ 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: Tackle.lua =================================================================== --- Tackle.lua (revision 2240) +++ 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: Roar.lua =================================================================== --- Roar.lua (revision 2240) +++ 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: Gusting_Gouge.lua =================================================================== --- Gusting_Gouge.lua (revision 2240) +++ 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: Rhino_Attack.lua =================================================================== --- Rhino_Attack.lua (revision 2240) +++ 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: Wing_Whirl.lua =================================================================== --- Wing_Whirl.lua (revision 2240) +++ 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: Freeze_Rush.lua =================================================================== --- Freeze_Rush.lua (revision 2240) +++ 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: Full-Force_Blow.lua =================================================================== --- Full-Force_Blow.lua (revision 2240) +++ 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: Asthenic_Fog.lua =================================================================== --- Asthenic_Fog.lua (revision 2240) +++ 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: Stomping.lua =================================================================== --- Stomping.lua (revision 2240) +++ 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: Fluid_Spread.lua =================================================================== --- Fluid_Spread.lua (revision 2240) +++ 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: Whirl_of_Rage.lua =================================================================== --- Whirl_of_Rage.lua (revision 2240) +++ 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: Aqua_Breath.lua =================================================================== --- Aqua_Breath.lua (revision 2240) +++ 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: Blazing_Bound.lua =================================================================== --- Blazing_Bound.lua (revision 2240) +++ 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: Acid_Spray.lua =================================================================== --- Acid_Spray.lua (revision 2240) +++ 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: Benthic_Typhoon.lua =================================================================== --- Benthic_Typhoon.lua (revision 2240) +++ 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: Jet_Stream.lua =================================================================== --- Jet_Stream.lua (revision 2240) +++ 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: Final_Sting.lua =================================================================== --- Final_Sting.lua (revision 2240) +++ 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: Smite_of_Rage.lua =================================================================== --- Smite_of_Rage.lua (revision 2240) +++ 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: Howling.lua =================================================================== --- Howling.lua (revision 2240) +++ 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: Ink_Cloud.lua =================================================================== --- Ink_Cloud.lua (revision 2240) +++ 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: Double_Kick.lua =================================================================== --- Double_Kick.lua (revision 2240) +++ 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: Spinning_Attack.lua =================================================================== --- Spinning_Attack.lua (revision 2240) +++ 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: Frost_Breath.lua =================================================================== --- Frost_Breath.lua (revision 2240) +++ 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: Wild_Oats.lua =================================================================== --- Wild_Oats.lua (revision 2240) +++ 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: Bomb_Toss.lua =================================================================== --- Bomb_Toss.lua (revision 2240) +++ 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; Index: Forceful_Blow.lua =================================================================== --- Forceful_Blow.lua (revision 2240) +++ 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: Frogkick.lua =================================================================== --- Frogkick.lua (revision 2240) +++ 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: Black_Cloud.lua =================================================================== --- Black_Cloud.lua (revision 2240) +++ 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: Triclip.lua =================================================================== --- Triclip.lua (revision 2240) +++ 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: Chomp_Rush.lua =================================================================== --- Chomp_Rush.lua (revision 2240) +++ 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: Tail_Slap.lua =================================================================== --- Tail_Slap.lua (revision 2240) +++ 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: Great_Bleat.lua =================================================================== --- Great_Bleat.lua (revision 2240) +++ 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: Shoulder_Attack.lua =================================================================== --- Shoulder_Attack.lua (revision 2240) +++ 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: Hysteric_Barrage.lua =================================================================== --- Hysteric_Barrage.lua (revision 2240) +++ 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: Viscid_Nectar.lua =================================================================== --- Viscid_Nectar.lua (revision 2240) +++ 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: Slam_Dunk.lua =================================================================== --- Slam_Dunk.lua (revision 2240) +++ 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: Sandspin.lua =================================================================== --- Sandspin.lua (revision 2240) +++ 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: Splash_Breath.lua =================================================================== --- Splash_Breath.lua (revision 2240) +++ 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: Stinking_Gas.lua =================================================================== --- Stinking_Gas.lua (revision 2240) +++ 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: Eyes_on_Me.lua =================================================================== --- Eyes_on_Me.lua (revision 2240) +++ 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: Earth_Breath.lua =================================================================== --- Earth_Breath.lua (revision 2240) +++ 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: Sledgehammer.lua =================================================================== --- Sledgehammer.lua (revision 2240) +++ 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: Mysterious_Light.lua =================================================================== --- Mysterious_Light.lua (revision 2240) +++ 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: Undead_Mold.lua =================================================================== --- Undead_Mold.lua (revision 2240) +++ 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: Spider_Web.lua =================================================================== --- Spider_Web.lua (revision 2240) +++ 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: Sweep.lua =================================================================== --- Sweep.lua (revision 2240) +++ 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: Wing_Slap.lua =================================================================== --- Wing_Slap.lua (revision 2240) +++ 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: Spore.lua =================================================================== --- Spore.lua (revision 2240) +++ 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: Beak_Lunge.lua =================================================================== --- Beak_Lunge.lua (revision 2240) +++ 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: Acrid_Stream.lua =================================================================== --- Acrid_Stream.lua (revision 2240) +++ 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: Rot_Gas.lua =================================================================== --- Rot_Gas.lua (revision 2240) +++ 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: Head_Butt.lua =================================================================== --- Head_Butt.lua (revision 2240) +++ 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 = 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: Tail_Swing.lua =================================================================== --- Tail_Swing.lua (revision 2240) +++ 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: Foot_Kick.lua =================================================================== --- Foot_Kick.lua (revision 2240) +++ 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: Arrow_Deluge.lua =================================================================== --- Arrow_Deluge.lua (revision 2240) +++ 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: Wing_Cutter.lua =================================================================== --- Wing_Cutter.lua (revision 2240) +++ 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: Gates_of_Hades.lua =================================================================== --- Gates_of_Hades.lua (revision 2240) +++ 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: Great_Sandstorm.lua =================================================================== --- Great_Sandstorm.lua (revision 2240) +++ 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: Sulfurous_Breath.lua =================================================================== --- Sulfurous_Breath.lua (revision 2240) +++ 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: Brain_Crush.lua =================================================================== --- Brain_Crush.lua (revision 2240) +++ 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: Queasyshroom.lua =================================================================== --- Queasyshroom.lua (revision 2240) +++ 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: Typhoon.lua =================================================================== --- Typhoon.lua (revision 2240) +++ 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: Gas_Shell.lua =================================================================== --- Gas_Shell.lua (revision 2240) +++ 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: Asuran_Fists.lua =================================================================== --- Asuran_Fists.lua (revision 2240) +++ 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: Mangle.lua =================================================================== --- Mangle.lua (revision 2240) +++ 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: Chaotic_Eye.lua =================================================================== --- Chaotic_Eye.lua (revision 2240) +++ 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: Drill_Branch.lua =================================================================== --- Drill_Branch.lua (revision 2240) +++ 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: Double_Ray.lua =================================================================== --- Double_Ray.lua (revision 2240) +++ 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: Poison_Breath.lua =================================================================== --- Poison_Breath.lua (revision 2240) +++ 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: Tail_Crush.lua =================================================================== --- Tail_Crush.lua (revision 2240) +++ 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: Dragon_Breath.lua =================================================================== --- Dragon_Breath.lua (revision 2240) +++ 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: Pinning_Shot.lua =================================================================== --- Pinning_Shot.lua (revision 2240) +++ 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: Mow.lua =================================================================== --- Mow.lua (revision 2240) +++ 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: Hurricane_Wing.lua =================================================================== --- Hurricane_Wing.lua (revision 2240) +++ 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: Obfuscate.lua =================================================================== --- Obfuscate.lua (revision 2240) +++ 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: Bad_Breath.lua =================================================================== --- Bad_Breath.lua (revision 2240) +++ 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: Whirl_Claws.lua =================================================================== --- Whirl_Claws.lua (revision 2240) +++ 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: Vicious_Claw.lua =================================================================== --- Vicious_Claw.lua (revision 2240) +++ 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: Blitzstrahl.lua =================================================================== --- Blitzstrahl.lua (revision 2240) +++ 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 2240) +++ 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: Sickle_Slash.lua =================================================================== --- Sickle_Slash.lua (revision 2240) +++ 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: Heat_Breath.lua =================================================================== --- Heat_Breath.lua (revision 2240) +++ 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: Radiant_Breath.lua =================================================================== --- Radiant_Breath.lua (revision 2240) +++ 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: Scythe_Tail.lua =================================================================== --- Scythe_Tail.lua (revision 2240) +++ 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: Blockhead.lua =================================================================== --- Blockhead.lua (revision 2240) +++ 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: Poison_Pick.lua =================================================================== --- Poison_Pick.lua (revision 2240) +++ 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: Sheep_Charge.lua =================================================================== --- Sheep_Charge.lua (revision 2240) +++ 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: Firespit.lua =================================================================== --- Firespit.lua (revision 2240) +++ 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: Deafening_Tantara.lua =================================================================== --- Deafening_Tantara.lua (revision 2240) +++ 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: Cursed_Sphere.lua =================================================================== --- Cursed_Sphere.lua (revision 2240) +++ 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: Somersault_Kick.lua =================================================================== --- Somersault_Kick.lua (revision 2240) +++ 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: Hecatomb_Wave.lua =================================================================== --- Hecatomb_Wave.lua (revision 2240) +++ 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: Fang_Rush.lua =================================================================== --- Fang_Rush.lua (revision 2240) +++ 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: Hell_Slash.lua =================================================================== --- Hell_Slash.lua (revision 2240) +++ 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: Spike_Flail.lua =================================================================== --- Spike_Flail.lua (revision 2240) +++ 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: paralyze.lua =================================================================== --- paralyze.lua (revision 2240) +++ 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 2240) +++ bio_ii.lua (working copy) @@ -60,4 +60,4 @@ return final; -end; \ No newline at end of file +end; Index: bio.lua =================================================================== --- bio.lua (revision 2240) +++ bio.lua (working copy) @@ -61,4 +61,4 @@ return final; -end; \ No newline at end of file +end; Index: bio_iii.lua =================================================================== --- bio_iii.lua (revision 2240) +++ 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: dia.lua =================================================================== --- dia.lua (revision 2240) +++ dia.lua (working copy) @@ -59,4 +59,4 @@ return final; -end; \ No newline at end of file +end;