local config = { SKILL_ID = 0, -- id do skill... multiplier = 1.5, percentual = 0.5, } function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) then local chance = (getPlayerSkillLevel(itemEx.uid, config.SKILL_ID) * config.percentual) * 10 if math.random(1, 1400) <= chance then doCreatureSay(itemEx.uid, "Você ativou o efeito crítico!", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(itemEx.uid), CONST_ME_MAGIC_RED) else doCreatureSay(itemEx.uid, "Você não ativou o efeito crítico.", TALKTYPE_ORANGE_1) end end return true end


info
Grupo: Campones
Registrado: 03/05/21
Posts: 33
Reputação: +1
Gênero: Masculino
queria esse script em action, para quando der use ele ganhar o bonus q script dá, alguem pode ajduar porfavor !
E se possivel quando de user na pedra, aparecer quantos de % (percentual) de ele tem.