Então galera, quando eu uso essa spells e fico apertando sem parar o Default fica lotado como a seguinte mensagem em laranja " Aguarde "xx " segundos para usar a spell novamente.."
local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end
function onCastSpell(cid, var) local waittime = 3 -- Tempo de exhaustion local storage = 115819 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") return false end local parameters = { cid = cid, var = var, combat1 = combat1 } if isCreature(cid) then addEvent(onCastSpell1, 0, parameters) end end exhaustion.set(cid, storage, waittime) return true end
Tem como fazer ela parar de aparecer no default e aparecer aqui ? (You cannot use....)
Pergunta
diarmaint 19
Então galera, quando eu uso essa spells e fico apertando sem parar o Default fica lotado como a seguinte mensagem em laranja " Aguarde "xx " segundos para usar a spell novamente.."
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 39)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.2, 0, -0.2, 0)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
function onCastSpell(cid, var)
local waittime = 3 -- Tempo de exhaustion
local storage = 115819
if exhaustion.check(cid, storage) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.")
return false
end
local parameters = { cid = cid, var = var, combat1 = combat1 }
if isCreature(cid) then
addEvent(onCastSpell1, 0, parameters)
end
end
exhaustion.set(cid, storage, waittime)
return true
end
Tem como fazer ela parar de aparecer no default e aparecer aqui ? (You cannot use....)

Editado por diarmaintLink para o comentário
https://xtibia.com/forum/topic/243379-resolvido-remover-mensagem-de-exhaust-da-spell/Compartilhar em outros sites
5 respostass a esta questão
Posts Recomendados