Czopeq
Advanced User
- Joined
- Jun 29, 2015
- Messages
- 191
- Reaction score
- 6
Witam poszukuj? spella kt?ry daje %buffa do dmg
Pr?bowa?em czego? takiego:
[LUA]function onStatsChange(cid, attacker, type, combat, value)
local damage = math.ceil(value+(value*0.5)) --5%
if isPlayer(attacker) and (not (attacker == cid)) then
if(exhaustion.check(attacker, 120117)) then
if (type == STATSCHANGE_HEALTHLOSS) then
doSendAnimatedText(getCreaturePosition(cid),damage, 108)
doCreatureAddHealth(cid, -damage)
elseif (type == STATSCHANGE_MANALOSS) then
doSendAnimatedText(getCreaturePosition(cid),damage, 5)
doCreatureAddMana(cid, -damage)
return false
end
end
end
return true
end[/LUA]
Gdzie exhaustion by?o w spellu to dalej nie dzia?a, no i nie wiem jak to zrobic :c
Pr?bowa?em czego? takiego:
[LUA]function onStatsChange(cid, attacker, type, combat, value)
local damage = math.ceil(value+(value*0.5)) --5%
if isPlayer(attacker) and (not (attacker == cid)) then
if(exhaustion.check(attacker, 120117)) then
if (type == STATSCHANGE_HEALTHLOSS) then
doSendAnimatedText(getCreaturePosition(cid),damage, 108)
doCreatureAddHealth(cid, -damage)
elseif (type == STATSCHANGE_MANALOSS) then
doSendAnimatedText(getCreaturePosition(cid),damage, 5)
doCreatureAddMana(cid, -damage)
return false
end
end
end
return true
end[/LUA]
Gdzie exhaustion by?o w spellu to dalej nie dzia?a, no i nie wiem jak to zrobic :c