Ir para conteúdo

Messe

Membro
  • Registro em

  • Última visita

Tudo que Messe postou

  1. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Bom dia ! Alguem consegue fazer uma magia por script que funcione igual um exani hur "up / exani hur "down?
  2. não tem como editar então ?
  3. não tem como mudar?
  4. Nâo tem levitate ... Ja procurei dentro da pasta spells e não acho ...
  5. Spell.xml * Me passa esse script (se for o do levitate) que eu coloco aqui e mudo, o meu não tem ...
  6. Não tenho essa pasta suporte. no xml está assim e funciona normalmente <instant name="exani hur" words="exani hur" lvl="18" mana="0" prem="1" aggressive="0" exhaustion="1000" params="1" needlearn="0" event="function" value="Levitate"> <vocation id="2"/> <vocation id="1"/> se voce tiver o script levitate me passa ai
  7. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Alguem sabe como eu coloco effect em uma armadura? Exemplo: quando eu equipar "plate amor" começa sair effect no player a cada 1 seg
  8. Alguem sabe como eu consigo mudar o effect do Exani hur "up - Exani hur "down ??
  9. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    vlw
  10. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Bom dia Preciso do script do rise devovorga, se alguem tiver e puder passar.
  11. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    UP
  12. Tem como fazer para ela ir até o target tambem ?
  13. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Bom eu gostaria que essa spell fosse até o alvo se alguem puder me ajudar ... ( não adianta alterar no spell.xml) local config = { velocidade = 400, -- intervalo entre os giros (quanto menor, mais rapido) hits = 50, -- quantos hits vai dar key = 13871, -- storage que sera utilizado pro cooldown cooldown = 1, -- tempo em segundos de cooldown entre um uso da spell e outro. effect1 = 3, -- efeito de distancia que vai ficar rodando effect3 = 5, -- efeito ao castar a spell effect4 = 5 -- efeito ao acertar a roda no player } --[[Note que a velocidade multiplicada pelo numero de hits deve dar algo proximo de 8550 pra que a magia nao fique ruim ou um efeito acabe antes do outro. Nos valores que eu utilizei eles dao 8400, oque ja eh considerado perto pois temos 200 milisegundos iniciais, 8550 eh o tempo que o item sera removido e coincide com o tempo de duracao do efeito 56 (config.effect2)]] local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 255) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onTargetCreature(cid, target) doSendMagicEffect(getCreaturePosition(target), config.effect4) end setCombatCallback(combat, 4, "onTargetCreature") local arr = { {1, 1, 1}, {1, 3, 1}, -- area que vai acertar a spell enquanto estiver rodando {1, 1, 1}, } local area = createCombatArea(arr) setCombatArea(combat, area) function initEffect(position) for i = 0, 3 do local pos = {x = position.x, y = position.y, z = position.z} local dir = getPosByDir(pos, i) doSendDistanceShoot(position, dir, config.effect1) end return true end function middleEffect(uid, param, lim, count) n = count or 0 if isCreature(uid) and n < lim then for i = 0, 3 do local pos = {x = getCreaturePosition(uid).x, y = getCreaturePosition(uid).y, z = getCreaturePosition(uid).z} local pos2 = {x = getCreaturePosition(uid).x, y = getCreaturePosition(uid).y, z = getCreaturePosition(uid).z} local dir = getPosByDir(pos, i) local dir2 = getPosByDir(pos2, i + 1 <= 3 and i + 1 or 0) doSendDistanceShoot(dir, dir2, config.effect1) end doCombat(uid, combat, { pos = getCreaturePosition(uid), type = 2 }) addEvent(middleEffect, config.velocidade, uid, param, lim, n + 1) end return true end function endEffect(uid) if isCreature(uid) then for i = 0, 3 do local pos = {x = getCreaturePosition(uid).x, y = getCreaturePosition(uid).y, z = getCreaturePosition(uid).z} local dir = getPosByDir(pos, i) doSendDistanceShoot(dir, getCreaturePosition(uid), config.effect1) end end return true end function onCastSpell(cid, var) if getPlayerStorageValue(cid, config.key) - os.time() <= 0 then setPlayerStorageValue(cid, config.key, os.time() + config.cooldown) local position = getCreaturePosition(cid) doCreatureSay(cid, config.msg, 20) addEvent(endEffect, 8.55 * 1000, uid) doSendMagicEffect(position, config.effect3) initEffect(position) addEvent(middleEffect, 200, cid, var, config.hits) else doPlayerSendCancel(cid, "You're exhausted.") end return true end
  14. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    não deu
  15. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Gostaria que no lugar do effect fosse um item que depois de um tempo sumiria No lugar do (effect 34) vai sair um item porem ele vai sumir depois que acabar o efeito da magia. Ai vai o script: (POREM ESSA MAGIA TA APARECENDO O ITEM EM MIM, NÃO É PRA APARECER) local id = 5751 -- id do item criado local tempo = 1.4 -- em segundos function Damage1(cid, level, maglevel) return (25+level*0.5+maglevel*0)*-1,(26+level*0.7+maglevel+0)*-1 end function Damage2(cid, level, maglevel) return (25+level*0.5+maglevel*0)*-1,(26+level*0.7+maglevel+0)*-1 end function Damage3(cid, level, maglevel) return (25+level*0.5+maglevel*0)*-1,(26+level*0.7+maglevel+0)*-1 end local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 34) setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "Damage1") local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 34) setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "Damage2") local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 34) setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "Damage3") arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr3 = { {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) local function onCastSpell1(parameters) doCombat(parameters.cid, combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, combat3, parameters.var) end local exhaustion = {} function onCastSpell(cid, var) if not isCreature(cid) then return true end local guid = getPlayerGUID(cid) if exhaustion[guid] and exhaustion[guid] - os.clock() > 0 then return not doPlayerSendCancel(cid, "you are exhausted.") end local p = getPlayerPosition(cid) local created = doCreateItem(id, 1, p) exhaustion[guid] = os.clock() + tempo local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 600, parameters) addEvent(onCastSpell3, 1100, parameters) addEvent(function() if getTileItemById(p, id).uid > 0 then doRemoveItem(created) end end, 1700) return true end
  16. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    up
  17. Messe postou uma resposta no tópico em Suporte Tibia OTServer
  18. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Queria que no lugar do effect aparecia um item que depois sumiria ... Quem puder ajudar... local tempo = 1.4 -- em segundos function Damage1(cid, level, maglevel) return (25+level*0.5+maglevel*0)*-1,(26+level*0.7+maglevel+0)*-1 end function Damage2(cid, level, maglevel) return (25+level*0.5+maglevel*0)*-1,(26+level*0.7+maglevel+0)*-1 end function Damage3(cid, level, maglevel) return (25+level*0.5+maglevel*0)*-1,(26+level*0.7+maglevel+0)*-1 end local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 34) setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "Damage1") local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 34) setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "Damage2") local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 34) setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "Damage3") arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr3 = { {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) local function onCastSpell1(parameters) doCombat(parameters.cid, combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, combat3, parameters.var) end local exhaustion = {} function onCastSpell(cid, var) if not isCreature(cid) then return true end local guid = getPlayerGUID(cid) if exhaustion[guid] and exhaustion[guid] - os.clock() > 0 then return not doPlayerSendCancel(cid, "you are exhausted.") end exhaustion[guid] = os.clock() + tempo local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 600, parameters) addEvent(onCastSpell3, 1100, parameters) return true end
  19. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Bom dia! Bom to atras de um script ja faz um tempo porem não encontro nada relacionado a isso: O player "druid, paladin, knight ou sorcerer" vai até uma alavanca e puxa e acaba ganhando por 24 horas todas magias, porem apenas 1 player pode pegar ...
  20. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Vlw muito bom! Deu certo aqui
  21. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Não é de storage, estou tentando aqui mais ta tenso ...
  22. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Exemplo: To com 2 magias no meu servidor, porem uma de cada vocação as duas faz a mesma coisa porem com effect diferente. Porem quando eu vou usar a magia as duas acabam ficando com o mesmo effect mesmo eu trocando o effect distintos uma da outra. Eu teria que duplica-la? para não ter esse problema?
  23. Messe postou uma resposta no tópico em Suporte Tibia OTServer
    Não seria script, seria uma mudança nas magias em geral no requesito (damage) ex: Magia Exori gran porem COMBAT_ICEDAMAGE, quando acertar o alvo vai aparecer o effect do ice damage. Queria que não aparecesse nada... (Apenas o effect da magia) e o dano em vermelho... Mas que essa magia valesse como dano de ice... não physical...

Informação Importante

Confirmação de Termo