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

UE nie zależy od levela

Status
Not open for further replies.

xexam

New Member
Joined
Aug 3, 2010
Messages
172
Reaction score
2
Witam
mam problem, mam taką formułe na przykładowo exevo gran mas flam

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9, 9, 14.9, 17.6)

local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

i problem polega na tym, że zarówno 100 ms z 100 mlvl jak i 500 ms z 100 m lvl biją tyle samo

jak zrobić zeby to zależało od levela?:ninja:
 
Usuń
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9, 9, 14.9, 17.6)

Wklej zamiast tego to:
function onGetFormulaValues(cid, level, maglevel)
local min = level / 5 + maglevel * 8 + 50
local max = level / 5 + maglevel * 12 + 75
return -min, -max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

I będzie zależne od levela jak i zarówno od magic.
 
napisz swoj callback z regulka jaka Ci sie podoba.
 
vimoco pomogl
nie umiem sam pisac regułek dlatego stworzylem ten temat
 
Status
Not open for further replies.
Back
Top