Untitled

mail@pastecode.io avatar
unknown
lua
2 years ago
552 B
3
Indexable
Never
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENCHANTEDSPEAR)

function onGetFormulaValues(cid, level, maglevel)
	local min = getPlayerRebirths(cid) * 1000
	local max = getPlayerRebirths(cid) * 2000
	return min, max
end

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