Ir para conteúdo

Featured Replies

Postado

Alguém põe um tempo de exhaust pra mim nessa paralyze?

 

local combat = createCombatObject()
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1)
function onCastSpell(cid, var)
function effectNoMove(target, storage, effect)
if not isCreature(target) then return LUA_ERROR end
    if getPlayerStorageValue(target, storage) - os.time() > 0 then
        doSendMagicEffect(getPlayerPosition(target), effect)
        addEvent(effectNoMove, 300, target, storage, effect) -- 300 é o delay
    end
end
    local time = 10
    local target = getCreatureTarget(cid)
    local storage,storage1 = 89785,845784
    if getPlayerStorageValue(cid, storage) <= 0 then
        doPlayerSendTextMessage(cid, 20, "n pode usar esta spells.") return false
    end
    if isPlayer(target) and getPlayerStorageValue(target, storage1) - os.time() <= 0 then
            doCreatureSetNoMove(target, true)
        setPlayerStorageValue(target, storage1, os.time()+time)
            addEvent(function(target)
            if not isCreature(target) then return LUA_ERROR end
                    doCreatureSetNoMove(target, false)
            end, time*1000, target)
        effectNoMove(target, storage1, 275) -- efect
        return doCombat(cid, combat, var)
    end
return true
end

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 520.1k

Informação Importante

Confirmação de Termo