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

oslabienie czaru

Status
Not open for further replies.

Indenpedens

Banned User
Joined
Nov 6, 2010
Messages
584
Reaction score
39
Location
Poland
Witam
mam tu exane mort
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function getCombatFormulas(cid, level, magicLevel)
	local min = ((level * 4 + magicLevel * 5) * 0.4) + 10
	local max = ((level * 4 + magicLevel * 3) * 0.6) + 10

	if(max < min) then
		local tmp = max
		max = min
		min = tmp
	end

	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
i testowalem na 410 knighcie z 12 magiciem i lecze sie w granicach 800-900 -glupota
chce ja tak zmniejszyc optymalnie zeby na tym levelu i magicu dawala okolo 400-500
tylko nie wiem wlasnie jak te cyferki uregulowac zeby na nizszych levelach nie bylo popsute leczenie ;p
 
zrób tak jak jest na rl tibii?

czyli:
Max healing: (lvl*0.2)+(mlvl*7.95)+51
Min healing: (lvl*0.2)+(mlvl*4)+25
 
pozmieniaj sobie wartosci w tym:
local min = ((level * 4 + magicLevel * 5) * 0.4) + 10
local max = ((level * 4 + magicLevel * 3) * 0.6) + 10

i sprawdzaj az bedzie ci dobrze
 
możesz zrobić multipler...

Lua:
mult = 1.0

Lua:
return math.abs(min*mult), math.abs(max*mult)

zmieniasz mult = 0.8 i osłabia się czar o 20%...
 
hah odjalem wszedzie po jeden i jest dobrze xd
local min = ((level * 4 + magicLevel * 5) * 0.4) + 10
local max = ((level * 4 + magicLevel * 3) * 0.6) + 10
local min = ((level * 3 + magicLevel * 4) * 0.3) + 9
local max = ((level * 3 + magicLevel * 3) * 0.5) + 9
 
Status
Not open for further replies.
Back
Top