darknelson
Member
- Joined
- Jun 19, 2011
- Messages
- 190
- Solutions
- 1
- Reaction score
- 15
hi im requesting one weapon with all knioght skill, and attack depends on what skill him use, example a knight with the same item who use sword shot sword, and up sword, but other knight with axe, with the same item, shot on axe, and up axe, please help me, also be balanced with this sd wand, for level 700 please help
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(player, level, maglevel)
local min = (level / 2) + (maglevel * 3.3) + 16
local max = (level / 5) + (maglevel * 8.4) + 22
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onUseWeapon(player, variant)
return combat:execute(player, variant)
end