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)
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!
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: