Index: mobskills/Overthrow.lua =================================================================== --- mobskills/Overthrow.lua (revision 2240) +++ mobskills/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: mobskills/Typhoon.lua =================================================================== --- mobskills/Typhoon.lua (revision 2240) +++ mobskills/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: mobskills/Tail_Swing.lua =================================================================== --- mobskills/Tail_Swing.lua (revision 2240) +++ mobskills/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: mobskills/Deadly_Hold.lua =================================================================== --- mobskills/Deadly_Hold.lua (revision 2240) +++ mobskills/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: mobskills/Sand_Breath.lua =================================================================== --- mobskills/Sand_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Hysteric_Barrage.lua =================================================================== --- mobskills/Hysteric_Barrage.lua (revision 2240) +++ mobskills/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 = .6; local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_DMG_VARIES,1,2,3); local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_H2H,info.hitslanded); target:delHP(dmg); Index: mobskills/Power_Attack.lua =================================================================== --- mobskills/Power_Attack.lua (revision 2240) +++ mobskills/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: mobskills/Wind_Breath.lua =================================================================== --- mobskills/Wind_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Deafening_Tantara.lua =================================================================== --- mobskills/Deafening_Tantara.lua (revision 2240) +++ mobskills/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: mobskills/Hammer_Beak.lua =================================================================== --- mobskills/Hammer_Beak.lua (revision 2240) +++ mobskills/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: mobskills/Heavy_Stomp.lua =================================================================== --- mobskills/Heavy_Stomp.lua (revision 2240) +++ mobskills/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: mobskills/Screwdriver.lua =================================================================== --- mobskills/Screwdriver.lua (revision 2240) +++ mobskills/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(2,5); 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: mobskills/Horror_Cloud.lua =================================================================== --- mobskills/Horror_Cloud.lua (revision 2240) +++ mobskills/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: mobskills/Rhino_Attack.lua =================================================================== --- mobskills/Rhino_Attack.lua (revision 2240) +++ mobskills/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: mobskills/Mysterious_Light.lua =================================================================== --- mobskills/Mysterious_Light.lua (revision 2240) +++ mobskills/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: mobskills/Double_Ray.lua =================================================================== --- mobskills/Double_Ray.lua (revision 2240) +++ mobskills/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: mobskills/Acid_Breath.lua =================================================================== --- mobskills/Acid_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Sprout_Spin.lua =================================================================== --- mobskills/Sprout_Spin.lua (revision 2240) +++ mobskills/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: mobskills/Great_Whirlwind.lua =================================================================== --- mobskills/Great_Whirlwind.lua (revision 2240) +++ mobskills/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: mobskills/Asthenic_Fog.lua =================================================================== --- mobskills/Asthenic_Fog.lua (revision 2240) +++ mobskills/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: mobskills/Tortoise_Stomp.lua =================================================================== --- mobskills/Tortoise_Stomp.lua (revision 2240) +++ mobskills/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: mobskills/Tail_Crush.lua =================================================================== --- mobskills/Tail_Crush.lua (revision 2240) +++ mobskills/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: mobskills/Fluid_Spread.lua =================================================================== --- mobskills/Fluid_Spread.lua (revision 2240) +++ mobskills/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: mobskills/Ink_Cloud.lua =================================================================== --- mobskills/Ink_Cloud.lua (revision 2240) +++ mobskills/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: mobskills/Petribreath.lua =================================================================== --- mobskills/Petribreath.lua (revision 2240) +++ mobskills/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: mobskills/Bad_Breath.lua =================================================================== --- mobskills/Bad_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Death_Scissors.lua =================================================================== --- mobskills/Death_Scissors.lua (revision 2240) +++ mobskills/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,10); 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: mobskills/Curse.lua =================================================================== --- mobskills/Curse.lua (revision 2240) +++ mobskills/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: mobskills/Full-Force_Blow.lua =================================================================== --- mobskills/Full-Force_Blow.lua (revision 2240) +++ mobskills/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: mobskills/Wild_Oats.lua =================================================================== --- mobskills/Wild_Oats.lua (revision 2240) +++ mobskills/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: mobskills/Bomb_Toss.lua =================================================================== --- mobskills/Bomb_Toss.lua (revision 2240) +++ mobskills/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()*4,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: mobskills/Whip_Tongue.lua =================================================================== --- mobskills/Whip_Tongue.lua (revision 2240) +++ mobskills/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: mobskills/Poison_Breath.lua =================================================================== --- mobskills/Poison_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Sulfurous_Breath.lua =================================================================== --- mobskills/Sulfurous_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Dragon_Breath.lua =================================================================== --- mobskills/Dragon_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Tail_Slap.lua =================================================================== --- mobskills/Tail_Slap.lua (revision 2240) +++ mobskills/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: mobskills/Slam_Dunk.lua =================================================================== --- mobskills/Slam_Dunk.lua (revision 2240) +++ mobskills/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: mobskills/Frost_Breath.lua =================================================================== --- mobskills/Frost_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Scorching_Lash.lua =================================================================== --- mobskills/Scorching_Lash.lua (revision 2240) +++ mobskills/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: mobskills/Eye_Scratch.lua =================================================================== --- mobskills/Eye_Scratch.lua (revision 2240) +++ mobskills/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: mobskills/Benthic_Typhoon.lua =================================================================== --- mobskills/Benthic_Typhoon.lua (revision 2240) +++ mobskills/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: mobskills/Ore_Toss.lua =================================================================== --- mobskills/Ore_Toss.lua (revision 2240) +++ mobskills/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: mobskills/Abyss_Blast.lua =================================================================== --- mobskills/Abyss_Blast.lua (revision 2240) +++ mobskills/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: mobskills/Spinning_Attack.lua =================================================================== --- mobskills/Spinning_Attack.lua (revision 2240) +++ mobskills/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: mobskills/Hell_Slash.lua =================================================================== --- mobskills/Hell_Slash.lua (revision 2240) +++ mobskills/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: mobskills/Stinking_Gas.lua =================================================================== --- mobskills/Stinking_Gas.lua (revision 2240) +++ mobskills/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: mobskills/Leaf_Dagger.lua =================================================================== --- mobskills/Leaf_Dagger.lua (revision 2240) +++ mobskills/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: mobskills/Wing_Slap.lua =================================================================== --- mobskills/Wing_Slap.lua (revision 2240) +++ mobskills/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: mobskills/Hex_Eye.lua =================================================================== --- mobskills/Hex_Eye.lua (revision 2240) +++ mobskills/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: mobskills/Earth_Breath.lua =================================================================== --- mobskills/Earth_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Cursed_Sphere.lua =================================================================== --- mobskills/Cursed_Sphere.lua (revision 2240) +++ mobskills/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: mobskills/Sledgehammer.lua =================================================================== --- mobskills/Sledgehammer.lua (revision 2240) +++ mobskills/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: mobskills/Head_Butt.lua =================================================================== --- mobskills/Head_Butt.lua (revision 2240) +++ mobskills/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: mobskills/Mow.lua =================================================================== --- mobskills/Mow.lua (revision 2240) +++ mobskills/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 = .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: mobskills/Hecatomb_Wave.lua =================================================================== --- mobskills/Hecatomb_Wave.lua (revision 2240) +++ mobskills/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: mobskills/Zarbzan.lua =================================================================== --- mobskills/Zarbzan.lua (revision 2240) +++ mobskills/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: mobskills/Foot_Kick.lua =================================================================== --- mobskills/Foot_Kick.lua (revision 2240) +++ mobskills/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: mobskills/Shoulder_Attack.lua =================================================================== --- mobskills/Shoulder_Attack.lua (revision 2240) +++ mobskills/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: mobskills/Ion_Shower.lua =================================================================== --- mobskills/Ion_Shower.lua (revision 2240) +++ mobskills/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: mobskills/Acrid_Stream.lua =================================================================== --- mobskills/Acrid_Stream.lua (revision 2240) +++ mobskills/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: mobskills/Stomping.lua =================================================================== --- mobskills/Stomping.lua (revision 2240) +++ mobskills/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: mobskills/Gas_Shell.lua =================================================================== --- mobskills/Gas_Shell.lua (revision 2240) +++ mobskills/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: mobskills/Arrow_Deluge.lua =================================================================== --- mobskills/Arrow_Deluge.lua (revision 2240) +++ mobskills/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: mobskills/Freeze_Rush.lua =================================================================== --- mobskills/Freeze_Rush.lua (revision 2240) +++ mobskills/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: mobskills/Bubble_Shower.lua =================================================================== --- mobskills/Bubble_Shower.lua (revision 2240) +++ mobskills/Bubble_Shower.lua (working copy) @@ -27,7 +27,7 @@ local accmod = 1; local cMobHp = mob:getHP(); local mMobHp = mob:getMaxHP(); - local dmgmod = cMobHp/mMobHp * 2; + local dmgmod = cMobHp/mMobHp; 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); target:delHP(dmg); Index: mobskills/Tail_Smash.lua =================================================================== --- mobskills/Tail_Smash.lua (revision 2240) +++ mobskills/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: mobskills/Slumber_Powder.lua =================================================================== --- mobskills/Slumber_Powder.lua (revision 2240) +++ mobskills/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: mobskills/Blaster.lua =================================================================== --- mobskills/Blaster.lua (revision 2240) +++ mobskills/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: mobskills/Soul_Drain.lua =================================================================== --- mobskills/Soul_Drain.lua (revision 2240) +++ mobskills/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: mobskills/Queasyshroom.lua =================================================================== --- mobskills/Queasyshroom.lua (revision 2240) +++ mobskills/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: mobskills/Asuran_Fists.lua =================================================================== --- mobskills/Asuran_Fists.lua (revision 2240) +++ mobskills/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.4; 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: mobskills/Obfuscate.lua =================================================================== --- mobskills/Obfuscate.lua (revision 2240) +++ mobskills/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: mobskills/Aqua_Breath.lua =================================================================== --- mobskills/Aqua_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Wind_Shear.lua =================================================================== --- mobskills/Wind_Shear.lua (revision 2240) +++ mobskills/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: mobskills/Drill_Branch.lua =================================================================== --- mobskills/Drill_Branch.lua (revision 2240) +++ mobskills/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: mobskills/Scratch.lua =================================================================== --- mobskills/Scratch.lua (revision 2240) +++ mobskills/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: mobskills/Great_Sandstorm.lua =================================================================== --- mobskills/Great_Sandstorm.lua (revision 2240) +++ mobskills/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: mobskills/Final_Sting.lua =================================================================== --- mobskills/Final_Sting.lua (revision 2240) +++ mobskills/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: mobskills/Earth_Pounder.lua =================================================================== --- mobskills/Earth_Pounder.lua (revision 2240) +++ mobskills/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: mobskills/Frogkick.lua =================================================================== --- mobskills/Frogkick.lua (revision 2240) +++ mobskills/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: mobskills/Pinning_Shot.lua =================================================================== --- mobskills/Pinning_Shot.lua (revision 2240) +++ mobskills/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: mobskills/Claw_Storm.lua =================================================================== --- mobskills/Claw_Storm.lua (revision 2240) +++ mobskills/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: mobskills/Double_Kick.lua =================================================================== --- mobskills/Double_Kick.lua (revision 2240) +++ mobskills/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: mobskills/Sandspin.lua =================================================================== --- mobskills/Sandspin.lua (revision 2240) +++ mobskills/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: mobskills/Sweep.lua =================================================================== --- mobskills/Sweep.lua (revision 2240) +++ mobskills/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: mobskills/Dread_Dive.lua =================================================================== --- mobskills/Dread_Dive.lua (revision 2240) +++ mobskills/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: mobskills/Vicious_Claw.lua =================================================================== --- mobskills/Vicious_Claw.lua (revision 2240) +++ mobskills/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: mobskills/Spore.lua =================================================================== --- mobskills/Spore.lua (revision 2240) +++ mobskills/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: mobskills/Black_Cloud.lua =================================================================== --- mobskills/Black_Cloud.lua (revision 2240) +++ mobskills/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: mobskills/Roar.lua =================================================================== --- mobskills/Roar.lua (revision 2240) +++ mobskills/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: mobskills/Sickle_Slash.lua =================================================================== --- mobskills/Sickle_Slash.lua (revision 2240) +++ mobskills/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: mobskills/Shell_Bash.lua =================================================================== --- mobskills/Shell_Bash.lua (revision 2240) +++ mobskills/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: mobskills/Great_Bleat.lua =================================================================== --- mobskills/Great_Bleat.lua (revision 2240) +++ mobskills/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: mobskills/Fluid_Toss.lua =================================================================== --- mobskills/Fluid_Toss.lua (revision 2240) +++ mobskills/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: mobskills/Sheep_Charge.lua =================================================================== --- mobskills/Sheep_Charge.lua (revision 2240) +++ mobskills/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: mobskills/Cyclonic_Torrent.lua =================================================================== --- mobskills/Cyclonic_Torrent.lua (revision 2240) +++ mobskills/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: mobskills/Suction.lua =================================================================== --- mobskills/Suction.lua (revision 2240) +++ mobskills/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: mobskills/Spinning_Claw.lua =================================================================== --- mobskills/Spinning_Claw.lua (revision 2240) +++ mobskills/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: mobskills/Glacier_Splitter.lua =================================================================== --- mobskills/Glacier_Splitter.lua (revision 2240) +++ mobskills/Glacier_Splitter.lua (working copy) @@ -19,13 +19,10 @@ 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 Index: mobskills/Riddle.lua =================================================================== --- mobskills/Riddle.lua (revision 2240) +++ mobskills/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: mobskills/Tidal_Dive.lua =================================================================== --- mobskills/Tidal_Dive.lua (revision 2240) +++ mobskills/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: mobskills/Abrasive_Tantara.lua =================================================================== --- mobskills/Abrasive_Tantara.lua (revision 2240) +++ mobskills/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: mobskills/Undead_Mold.lua =================================================================== --- mobskills/Undead_Mold.lua (revision 2240) +++ mobskills/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: mobskills/Mandible_Bite.lua =================================================================== --- mobskills/Mandible_Bite.lua (revision 2240) +++ mobskills/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: mobskills/Acid_Mist.lua =================================================================== --- mobskills/Acid_Mist.lua (revision 2240) +++ mobskills/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: mobskills/Shadow_Thrust.lua =================================================================== --- mobskills/Shadow_Thrust.lua (revision 2240) +++ mobskills/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: mobskills/Somersault_Kick.lua =================================================================== --- mobskills/Somersault_Kick.lua (revision 2240) +++ mobskills/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: mobskills/Death_Ray.lua =================================================================== --- mobskills/Death_Ray.lua (revision 2240) +++ mobskills/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: mobskills/Dark_Wave.lua =================================================================== --- mobskills/Dark_Wave.lua (revision 2240) +++ mobskills/Dark_Wave.lua (working copy) @@ -19,17 +19,14 @@ 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 Index: mobskills/Impale.lua =================================================================== --- mobskills/Impale.lua (revision 2240) +++ mobskills/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: mobskills/Disseverment.lua =================================================================== --- mobskills/Disseverment.lua (revision 2240) +++ mobskills/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: mobskills/Wing_Whirl.lua =================================================================== --- mobskills/Wing_Whirl.lua (revision 2240) +++ mobskills/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: mobskills/Sprout_Smack.lua =================================================================== --- mobskills/Sprout_Smack.lua (revision 2240) +++ mobskills/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: mobskills/Circle_of_Flames.lua =================================================================== --- mobskills/Circle_of_Flames.lua (revision 2240) +++ mobskills/Circle_of_Flames.lua (working copy) @@ -19,13 +19,10 @@ 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 Index: mobskills/Wing_Cutter.lua =================================================================== --- mobskills/Wing_Cutter.lua (revision 2240) +++ mobskills/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: mobskills/Gusting_Gouge.lua =================================================================== --- mobskills/Gusting_Gouge.lua (revision 2240) +++ mobskills/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: mobskills/Howling.lua =================================================================== --- mobskills/Howling.lua (revision 2240) +++ mobskills/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: mobskills/Primal_Drill.lua =================================================================== --- mobskills/Primal_Drill.lua (revision 2240) +++ mobskills/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 = .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: mobskills/Chaotic_Eye.lua =================================================================== --- mobskills/Chaotic_Eye.lua (revision 2240) +++ mobskills/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: mobskills/Acid_Spray.lua =================================================================== --- mobskills/Acid_Spray.lua (revision 2240) +++ mobskills/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: mobskills/Vorpal_Wheel.lua =================================================================== --- mobskills/Vorpal_Wheel.lua (revision 2240) +++ mobskills/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: mobskills/Gates_of_Hades.lua =================================================================== --- mobskills/Gates_of_Hades.lua (revision 2240) +++ mobskills/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: mobskills/Jet_Stream.lua =================================================================== --- mobskills/Jet_Stream.lua (revision 2240) +++ mobskills/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: mobskills/Triclip.lua =================================================================== --- mobskills/Triclip.lua (revision 2240) +++ mobskills/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: mobskills/Whirl_of_Rage.lua =================================================================== --- mobskills/Whirl_of_Rage.lua (revision 2240) +++ mobskills/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: mobskills/Whirl_Claws.lua =================================================================== --- mobskills/Whirl_Claws.lua (revision 2240) +++ mobskills/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: mobskills/Hexidiscs.lua =================================================================== --- mobskills/Hexidiscs.lua (revision 2240) +++ mobskills/Hexidiscs.lua (working copy) @@ -19,7 +19,7 @@ function OnMobWeaponSkill(target, mob, skill) local numhits = 6; local accmod = 1; - local dmgmod = .2; + 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: mobskills/Firespit.lua =================================================================== --- mobskills/Firespit.lua (revision 2240) +++ mobskills/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: mobskills/Rumble.lua =================================================================== --- mobskills/Rumble.lua (revision 2240) +++ mobskills/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: mobskills/Big_Scissors.lua =================================================================== --- mobskills/Big_Scissors.lua (revision 2240) +++ mobskills/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: mobskills/Wild_Rage.lua =================================================================== --- mobskills/Wild_Rage.lua (revision 2240) +++ mobskills/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: mobskills/Blitzstrahl.lua =================================================================== --- mobskills/Blitzstrahl.lua (revision 2240) +++ mobskills/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: mobskills/Panzerfaust.lua =================================================================== --- mobskills/Panzerfaust.lua (revision 2240) +++ mobskills/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: mobskills/Cold_Wave.lua =================================================================== --- mobskills/Cold_Wave.lua (revision 2240) +++ mobskills/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: mobskills/Maelstrom.lua =================================================================== --- mobskills/Maelstrom.lua (revision 2240) +++ mobskills/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: mobskills/Smite_of_Rage.lua =================================================================== --- mobskills/Smite_of_Rage.lua (revision 2240) +++ mobskills/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: mobskills/Hurricane_Wing.lua =================================================================== --- mobskills/Hurricane_Wing.lua (revision 2240) +++ mobskills/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: mobskills/Thundris_Shriek.lua =================================================================== --- mobskills/Thundris_Shriek.lua (revision 2240) +++ mobskills/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: mobskills/Heat_Breath.lua =================================================================== --- mobskills/Heat_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Chomp_Rush.lua =================================================================== --- mobskills/Chomp_Rush.lua (revision 2240) +++ mobskills/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: mobskills/Scythe_Tail.lua =================================================================== --- mobskills/Scythe_Tail.lua (revision 2240) +++ mobskills/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: mobskills/Sound_Vacuum.lua =================================================================== --- mobskills/Sound_Vacuum.lua (revision 2240) +++ mobskills/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: mobskills/Frenetic_Rip.lua =================================================================== --- mobskills/Frenetic_Rip.lua (revision 2240) +++ mobskills/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: mobskills/Tail_Blow.lua =================================================================== --- mobskills/Tail_Blow.lua (revision 2240) +++ mobskills/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: mobskills/Poison_Pick.lua =================================================================== --- mobskills/Poison_Pick.lua (revision 2240) +++ mobskills/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: mobskills/Eyes_on_Me.lua =================================================================== --- mobskills/Eyes_on_Me.lua (revision 2240) +++ mobskills/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: mobskills/Venom.lua =================================================================== --- mobskills/Venom.lua (revision 2240) +++ mobskills/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: mobskills/Forceful_Blow.lua =================================================================== --- mobskills/Forceful_Blow.lua (revision 2240) +++ mobskills/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: mobskills/Blindeye.lua =================================================================== --- mobskills/Blindeye.lua (revision 2240) +++ mobskills/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: mobskills/Deadly_Drive.lua =================================================================== --- mobskills/Deadly_Drive.lua (revision 2240) +++ mobskills/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: mobskills/Helldive.lua =================================================================== --- mobskills/Helldive.lua (revision 2240) +++ mobskills/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: mobskills/Rot_Gas.lua =================================================================== --- mobskills/Rot_Gas.lua (revision 2240) +++ mobskills/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: mobskills/Tackle.lua =================================================================== --- mobskills/Tackle.lua (revision 2240) +++ mobskills/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: mobskills/Potent_Lunge.lua =================================================================== --- mobskills/Potent_Lunge.lua (revision 2240) +++ mobskills/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: mobskills/Battle_Dance.lua =================================================================== --- mobskills/Battle_Dance.lua (revision 2240) +++ mobskills/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: mobskills/Radiant_Breath.lua =================================================================== --- mobskills/Radiant_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Viscid_Nectar.lua =================================================================== --- mobskills/Viscid_Nectar.lua (revision 2240) +++ mobskills/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: mobskills/Splash_Breath.lua =================================================================== --- mobskills/Splash_Breath.lua (revision 2240) +++ mobskills/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: mobskills/Spike_Flail.lua =================================================================== --- mobskills/Spike_Flail.lua (revision 2240) +++ mobskills/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: mobskills/Spider_Web.lua =================================================================== --- mobskills/Spider_Web.lua (revision 2240) +++ mobskills/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: mobskills/Dread_Shriek.lua =================================================================== --- mobskills/Dread_Shriek.lua (revision 2240) +++ mobskills/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: mobskills/Vertical_Cleave.lua =================================================================== --- mobskills/Vertical_Cleave.lua (revision 2240) +++ mobskills/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: mobskills/Grim_Reaper.lua =================================================================== --- mobskills/Grim_Reaper.lua (revision 2240) +++ mobskills/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: mobskills/Entangle.lua =================================================================== --- mobskills/Entangle.lua (revision 2240) +++ mobskills/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: spells/bio_ii.lua =================================================================== --- spells/bio_ii.lua (revision 2240) +++ spells/bio_ii.lua (working copy) @@ -60,4 +60,4 @@ return final; -end; \ No newline at end of file +end; Index: spells/paralyze.lua =================================================================== --- spells/paralyze.lua (revision 2240) +++ spells/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: spells/bio.lua =================================================================== --- spells/bio.lua (revision 2240) +++ spells/bio.lua (working copy) @@ -61,4 +61,4 @@ return final; -end; \ No newline at end of file +end; Index: spells/bio_iii.lua =================================================================== --- spells/bio_iii.lua (revision 2240) +++ spells/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: spells/dia.lua =================================================================== --- spells/dia.lua (revision 2240) +++ spells/dia.lua (working copy) @@ -59,4 +59,4 @@ return final; -end; \ No newline at end of file +end; Index: effects/berserk.lua =================================================================== --- effects/berserk.lua (revision 2240) +++ effects/berserk.lua (working copy) @@ -1,7 +1,7 @@ ----------------------------------- -- -- EFFECT_BERSERK --- +-- ----------------------------------- ----------------------------------- @@ -10,7 +10,8 @@ function onEffectGain(target,effect) target:addMod(MOD_ATTP,25); -target:addMod(MOD_DEFP,-15); +target:addMod(MOD_RATTP, 25); +target:addMod(MOD_DEFP,-25); end; ----------------------------------- @@ -26,5 +27,6 @@ function onEffectLose(target,effect) target:delMod(MOD_ATTP,25); -target:delMod(MOD_DEFP,-15); +target:delMod(MOD_DEFP,-25); +target:delMob(MOD_RATTP, 25); end; \ No newline at end of file Index: effects/defender.lua =================================================================== --- effects/defender.lua (revision 2240) +++ effects/defender.lua (working copy) @@ -1,7 +1,7 @@ ----------------------------------- -- -- EFFECT_NONE --- +-- ----------------------------------- ----------------------------------- @@ -10,6 +10,7 @@ function onEffectGain(target,effect) target:addMod(MOD_DEFP,25); +target:addMod(MOB_RATTP,-25); target:addMod(MOD_ATTP,-25); end; @@ -27,4 +28,5 @@ function onEffectLose(target,effect) target:delMod(MOD_DEFP,25); target:delMod(MOD_ATTP,-25); +target:delMod(MOB_RATTP,-25); end; \ No newline at end of file Index: settings.lua =================================================================== --- settings.lua (revision 2240) +++ settings.lua (working copy) @@ -33,8 +33,8 @@ ADVANCED_JOB_LEVEL = 30; --Minimum level to accept advanced job quests. Set to 0 to start the game with advanced jobs. ALL_MAPS = 0; -- Set to 1 to give starting characters all the maps. -SHOP_PRICE = 1.000; --Multiplies prices in NPC shops. -GIL_RATE = 1.000; --Multiplies gil earned from quests. Won't always display in game. +SHOP_PRICE = 0.250; --Multiplies prices in NPC shops. +GIL_RATE = 4.000; --Multiplies gil earned from quests. Won't always display in game. EXP_RATE = 1.000; --Multiplies exp earned from fov. TABS_RATE = 1.000; --Multiplies tabs earned from fov. SAN_FAME = 1.000; --Multiplies fame earned from San d'Oria quests. @@ -145,6 +145,6 @@ HALLOWEEN = 0; -- Set to 1 to give starting characters Halloween items. --MISC -HOMEPOINT_HEAL = 0; --Set to 1 if you want Home Points to heal you like in single-player Final Fantasy games. +HOMEPOINT_HEAL = 1; --Set to 1 if you want Home Points to heal you like in single-player Final Fantasy games. RIVERNE_PORTERS = 120; -- Time in seconds that Unstable Displacements in Cape Riverne stay open after trading a scale. LANTERNS_STAY_LIT = 1200; -- time in seconds that lanterns in the Den of Rancor stay lit.