• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

1 weapon for all knight skills, tfs 1.3

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
 
Back
Top