O CREDITO TA PRO Shadowsong TA VENDO EDUARDOBEAN
Paralyzer Bow
┌───────────────────────────────┐

O arco, ao ser usado (right click on it), paraliza seu alvo.
Ele tem uma quantidade de delay configuravel (tempo de uso). Você também pode mecher nos valores de paralyzar pra garantir o efeito que quiser (para o pessoal que sabe mecher melhor nessa area).
actions/scripts/parabow.lua:
local condition2 = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 6500) --- duration of paralyze
setConditionFormula(condition2, -0.4, 0, -0.7, 0) --- strength of paralyze
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tPos = getCreaturePosition(getCreatureTarget(cid))
--- CONFIG ---
local levelReq = 50 -- level required to use this effect
local vocID = 4 -- ID of vocation that can use this effect
local exhStorage = 5450 -- storage for exhaustion between usages
local exhTime = 50 -- time of exhaustion (in seconds)
--- CONFIG ---
if getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == 8858 or getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == 8858 then
if getPlayerLevel(cid) >= levelReq then
if getPlayerVocation(cid) == vocID then
if getCreatureTarget(cid) ~= 0 then
if not(exhaustion.check(cid,exhStorage)) then
exhaustion.set(cid, exhStorage, exhTime)
doSendDistanceShoot(fromPosition, tPos, 34)
doCreatureSay(cid, "Freeze!", 19)
doSendMagicEffect(tPos, 43)
doAddCondition(getCreatureTarget(cid), condition2)
doSendMagicEffect(fromPosition, 14)
else
doPlayerSendCancel(cid, "You need to wait "..exhaustion.get(cid, exhStorage).." seconds before you can use it again.")
end
else
doPlayerSendCancel(cid, "You need a target.")
end
else
doPlayerSendCancel(cid, "Your vocation can not use this item.")
end
else
doPlayerSendCancel(cid, "Your level is too low to use this item.")
end
else
doPlayerSendCancel(cid, "You must equip this item first.")
end
end
<action itemid="8858" event="script" value="parabow.lua"/>