• 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!

how can i make my spells atk stronger in my server

#5
http://otland.net/threads/rules-for-the-support-board.217087/

In data/spells/scripts/attack and then make the numbers higher of the spells you want.
Code:
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)
    skill = getPlayerSkillLevel(cid, SKILL_DISTANCE) * 3 + 25
    return -(skill / 1.3 + level), -(skill + level)
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, 'onGetFormulaValues')
function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
like what should i do if i want this better
 
Last edited by a moderator:
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)
skill = getPlayerSkillLevel(cid, SKILL_DISTANCE) * 3 + 25
return -(skill / 1.3 + level), -(skill + level)
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, 'onGetFormulaValues')
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
like what should i do if i want this better

Change the values inside this function:

PHP:
function onGetFormulaValues(cid, level, skill, attack, factor)
    skill = getPlayerSkillLevel(cid, SKILL_DISTANCE) * 3 + 25
    return -(skill / 1.3 + level), -(skill + level)
end

For example:
PHP:
function onGetFormulaValues(cid, level, skill, attack, factor)
    skill = getPlayerSkillLevel(cid, SKILL_DISTANCE) * 5 + 50
    return -(skill / 1.3 + level), -(skill + level)
end
 
Back
Top