Postado Maio 27, 2018 7 anos Gostaria que alguém modificasse uma script para mim, que eu possa escolher o tempo do cooldown Spell (Tira esse cooldown e bota um novo) Spoiler local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, 98) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionFormula(condition, -0.90, 0, -0.90, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) if exhaustion.check(cid, 13132) == TRUE then doPlayerSendCancel(cid, "You are exhauted.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end if(not doCombat(cid, combat, var)) then return false end doSendMagicEffect(getThingPosition(cid), 91) exhaustion.set(cid, 13132, 1.0) return true end Base do cooldown Spoiler function onCastSpell(cid, var) local waittime = 2.0 -- Tempo de exhaustion local storage = 45674 -- não mecha if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "Aguarde "..(exhaustion.get(cid, storage)).." segundos(s) para usar novamente.") return false end
Postado Maio 27, 2018 7 anos local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, 98) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionFormula(condition, -0.90, 0, -0.90, 0) setCombatCondition(combat, condition) local time = 2.0 -- Tempo de exhaustion local storage = 45674 -- não mecha function onCastSpell(cid, var) if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are exhauted.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end if(not doCombat(cid, combat, var)) then return false end doSendMagicEffect(getThingPosition(cid), 91) exhaustion.set(cid, storage, time) 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.