• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Exori con, Ethereal Spear.lua request

bury

Active Member
Joined
Jul 27, 2008
Messages
421
Solutions
7
Reaction score
25
Hello, first of all I post my exori con script (ethereal spear.lua)

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)

function onGetFormulaValues(cid, level, skill, attack, factor)
	return -(((skill + 1500) / 3) + (level / 5)), -((skill + 1500) + (level / 5))
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

My purpose with this script is almost completed. For example with a level 350 RP and 130 distance I want it to hit:

PVM
- Min: 800~
- Max: 1700~

PVP
-Min: 400~
-Max; 900~

This goal is almost complete but the thing is that a level 50 with distance 50 more or less hit the same with the exori con spell. I have no idea of how to change this.

I have looked for the formule and tried to edit by myself but the server gave me error so I keep as its now. Also Im not very good at maths xD.

If somebody could tell me how to do it more or less..... even changing my numbers. I dont mind if it has the same effect.

Thanks you!
 
Last edited by a moderator:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
 
function onGetFormulaValues(cid, level, skill, attack, factor)
	return -(((skill*4) + 210) + (level / 5)), -(((skill*5) + 980) + (level / 5))
end
 
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

The reason why skills didn't make a difference is because 50 is nothing compared to 1500, I made it now that the skills count 4 and 5x, but you can change it how you want.
 
Back
Top