TekaZudo
seuserver.com.br
DESCRIÇÃO
Anuncie aqui neste countdown e dê maior visibilidade ao seu lançamento |
Full Global • Custom Quests • Custom Outfits • Lottery System • Version 15x
Inicia em:
--
Participar
Histórico de Curtidas
-
tkzeco deu reputação a Orochi Elf em Erro script (passiva para player)Bom amigo, eu coloquei para almentar +5% do HIT que voce deu.
Exemplo: seu HIT é 100, vai almentar + 5% ou seja +5 de dano. hit total = 105.
@Não testei.
----- Developed by: OrochiElf function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS then if isPlayer(attacker) and isMonster(cid) then if value > 0 then local damageBonus = math.ceil(value + ((value / 100) * 5)) doTargetCombatHealth(attacker, cid, combat, - damageBonus, - damageBonus, CONST_ME_HITBYPOISON) return false end end end end return true end function onCombat(cid, target) if isPlayer(cid) then if getPlayerStorageValue(cid, 19154) >= 1 then registerCreatureEvent(target, "damageBonus") end end return true end
Tag
<event type="statschange" name="damageBonus" event="script" value="damageBonus.lua"/> <event type="combat" name="PlayerDamageBonus" event="script" value="damageBonus.lua"/>
Antes do ultimo return true, no Login.lua, adicione
registerCreatureEvent(cid, "PlayerDamageBonus")