Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''spell''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Fiz um aqui que esta pegando certinho, o problema e que e toda vez que acontece doPlayerSendTextMessage(cid, 20, "Sua guarda esta aberta") Aparece o seguinte erro na distro [8:31:46.479] [Error - Spell Interface] [8:31:46.480] In a timer event called from: [8:31:46.481] data/spells/scripts/Guarda.lua:onCastSpell [8:31:46.482] Description: [8:31:46.483] (luaDoCombat) Combat not found Mas ele pega normal, tudo esta pegando certinho "não a erro na spell em si". <instant name="Defensiva" words="Defensiva" lvl="10" mana="0" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" blockwalls="1" enabled="1" event="script" value="Guarda.lua"/> Spell:
  2. KarlKalvin

    Spell bar moves OTC

    Não fiz muitos ajustes e também não fiz muitos testes mas está ai para quem já quer começar, começa do básico. O nome do tópico já diz tudo então primeiramente seu OTc tem que ter opcodes, após adicionar o opcode... modules/gamelib/opcodes.lua Após isso vá até a pasta modules e crie uma pasta chamada game_spellm nela você vai ter que criar 4 arquivos 1ª: configs.lua spellm.lua spellm.otui Finalmente spellm.otmod Lembrando: Para fazer a principal edição, você vai editar no configs.lua, está de acordo com as vocations. E quando quiser adicionar mais quadros de spells, tem que adicionar no OTUI. Print: Créditos: Hundanger - Criador Kalvin - Edição
  3. Bom dia, eu gostaria de uma ajudinha nessa spell se possível: Ela é um move target que rouba a vida do alvo pro Pokémon que está usando. Eu gostaria de saber se é possível ajustar ela para curar uma determinada % da vida do Pokémon, eu tentei mudar colocando mais um "CreatureAddHealth" mas não faz tanta diferença na vida que o Pokémon recupera. Obrigada a todos pela atenção desde já. ❤️
  4. Olá, preciso adicionar um efeito que, ao usar a habilidade Área, mudará sua aparência para o efeito número 329 e depois retornará ao seu personagem. Mais uma coisa, como adicionar alguns efeitos que serão, por exemplo, durante a duração de 1 área, agora lance a área e assim por diante até que ela mude para o seu caráter
  5. Nome: Pull/Push Spells Autor: Oneshot Tipo: Magia Já vi vários pedidos de magias que puxem ou empurrem monstros e jogadores, então resolvi fazer essas duas magias. Pull Spell local function doPullCreature(target, cid) if target > 0 then if not isNpc(target) then local position = getThingPosition(cid) local fromPosition = getThingPosition(target) local x = ((fromPosition.x - position.x) < 0 and 1 or ((fromPosition.x - position.x) == 0 and 0 or -1)) local y = ((fromPosition.y - position.y) < 0 and 1 or ((fromPosition.y - position.y) == 0 and 0 or -1)) local toPosition = {x = fromPosition.x + x, y = fromPosition.y + y, z = fromPosition.z} if doTileQueryAdd(target, toPosition) == 1 and getTileInfo(toPosition).house == false then doTeleportThing(target, toPosition, true) end end end end local spell = {} spell.config = { [3] = { damageType = 1, areaEffect = 2, area = { {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 3, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0} } }, [2] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 3, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } }, [1] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 3, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } } } spell.combats = {} for _, config in ipairs(spell.config) do local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, config.damageType) setCombatParam(combat, COMBAT_PARAM_EFFECT, config.areaEffect) function onTargetCreature(cid, target) doPullCreature(target, cid) end setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature") setCombatArea(combat, createCombatArea(config.area)) table.insert(spell.combats, combat) end function onCastSpell(cid, var) for n = 1, #spell.combats do addEvent(doCombat, (n * 150) - 150, cid, spell.combats[n], var) end return true end Push Spell local function doPushCreature(target, cid) if target > 0 then if not isNpc(target) then local position = getThingPosition(cid) local fromPosition = getThingPosition(target) local x = ((fromPosition.x - position.x) < 0 and -1 or ((fromPosition.x - position.x) == 0 and 0 or 1)) local y = ((fromPosition.y - position.y) < 0 and -1 or ((fromPosition.y - position.y) == 0 and 0 or 1)) local toPosition = {x = fromPosition.x + x, y = fromPosition.y + y, z = fromPosition.z} if doTileQueryAdd(target, toPosition) == 1 and getTileInfo(toPosition).house == false then doTeleportThing(target, toPosition, true) end end end end local spell = {} spell.config = { [3] = { damageType = 1, areaEffect = 2, area = { {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 3, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0} } }, [2] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 3, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } }, [1] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 3, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } } } spell.combats = {} for _, config in ipairs(spell.config) do local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, config.damageType) setCombatParam(combat, COMBAT_PARAM_EFFECT, config.areaEffect) function onTargetCreature(cid, target) doPushCreature(target, cid) end setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature") setCombatArea(combat, createCombatArea(config.area)) table.insert(spell.combats, combat) end function onCastSpell(cid, var) for n = 1, #spell.combats do addEvent(doCombat, (n * 150) - 150, cid, spell.combats[n], var) end return true end Abraços.
  6. bom dia, venho pedir sua ajuda Quero colocar cores ao dano do spell po exemplo: tackle color blanco razor leaf = color verde ["Shiny Venusaur"] = {move1 = {name = "Tackle", level = 100, cd = 10, dist = 1, target = 1, f = 50, t = "normal"}, < blanco move2 = {name = "Razor Leaf", level = 100, cd = 7, dist = 10, target = 1, f = 33, t = "grass"}, < verde move3 = {name = "Vine Whip", level = 100, cd = 16, dist = 1, target = 0, f = 65, t = "grass"}, move4 = {name = "Headbutt", level = 100, cd = 12, dist = 1, target = 1, f = 50, t = "normal"}, move5 = {name = "Leech Seed", level = 100, cd = 28, dist = 10, target = 1, f = 1, t = "grass"}, move6 = {name = "Bullet Seed", level = 100, cd = 28, dist = 1, target = 0, f = 95, t = "grass"}, move7 = {name = "Solar Beam", level = 100, cd = 54, dist = 1, target = 0, f = 190, t = "grass"}, move8 = {name = "Sleep Powder", level = 100, cd = 72, dist = 1, target = 0, f = 0, t = "normal"}, move9 = {name = "Poison Powder", level = 100, cd = 36, dist = 1, target = 0, f = 0, t = "normal"}, move10 = {name = "Leaf Storm", level = 110, cd = 81, dist = 1, target = 0, f = 150, t = "grass"}, move11 = {name = "Mega - Venusaur", level = 0, cd = 0, dist = 1, target = 0, f = 0, t = "grass", mega = 1}, uso base Pokémon Mythology (V3.1) obrigado
  7. Não aparecia o efeito do buff, substitui o script antigo por outro e o efeito começou a aparecer. Script funcionando 100% agora
  8. Sistema Jinchuuriki De Servidores de Naruto. Selar um dos monstros e ser seu jinchuuriki , usando a magia só quando o Monstro estiver com 20% ou menos de vida. A Magia tem a range de 1 sqm, ou seja, você tem que usar a magia colado no monstro e Apenas um jogador conseguira selar o Monstro e ser seu jinchuuriki. Após selar um dos monstros você será o jinchuuriki dela por 10 dias, caso selar um outro Monstro você perdera a anterior e ficara com a nova e o tempo será renovado! Em data/spells/script crie um arquivo chamado Jinchuuriki.lua local storagecool = 89758local storagemob = 89759local tempo = 10 * 24 * 60 * 60 -- 10 diaslocal mobs = { ["kurama"] = 1, ["hachibi"] = 2, ["demon"] = 3, -- sempre letra minuscula e o numero q ele representa}function onCastSpell(cid, var) local target = variantToNumber(var) if target and isMonster(target) then if getCreatureHealth(target) <= math.floor(0.2 * getCreatureMaxHealth(target)) then if getCreatureName(target) and mobs[getCreatureName(target):lower()] then doPlayerSetStorageValue(cid, storagecool, os.time() + tempo) doPlayerSetStorageValue(cid, storagemob, mobs[getCreatureName(target):lower()]) doSendMagicEffect(getPlayerPosition(cid), 13) -- efeito no player doSendMagicEffect(getPlayerPosition(target), 13) -- efeito no monstro doRemoveCreature(target) doPlayerSendCancel(cid, "Você selou a criatura!") else doPlayerSendCancel(cid, "Essa criatura nao pode ser selada.") end else doPlayerSendCancel(cid, "O monstro precisa ter menos de 20% de vida para ser selado.") end else doPlayerSendCancel(cid, "Spell somente pode ser usada em monstros.") endreturn trueend Em spells.xml <instant name="Selar Bijuu" words="Selar Bijuu" lvl="200" mana="20000" prem="1" range="1" needtarget="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script" value="Jinchuuriki.lua"> <vocation id="1-10"/> </instant> Vantagens de ser um Jinchuuriki: Buff Especial que voce domina ela. data/spells/ Hachibi.lua local tempo = 60 -- tempo em segundoslocal effect = {134} -- effect no playerlocal exausted = 1 -- em minutoslocal points = 60 -- quantos ira aumentar os skillslocal outfit = {lookType = 350}-- outfit que ira darlocal combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)local condition = createConditionObject(CONDITION_ATTRIBUTES)setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, points)setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, points)setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, points)setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, points)setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, points)setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, points)setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, points)setCombatCondition(combat, condition)local condition = createConditionObject(CONDITION_OUTFIT)setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000)addOutfitCondition(condition, outfit)setCombatCondition(combat, condition)function Magica(cid) if isCreature(cid) then for i=1, #effect do local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} doSendMagicEffect(position, effect) end endendfunction onCastSpell(cid, var) if getPlayerStorageValue(cid, 91546) ~= 2 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce nao eh um jinchuriki da Hachibi!") return false elseif getPlayerStorageValue(cid, 17456)-os.time() > 1 then local seetime = getPlayerStorageValue(cid, 17456)-os.time() local minutes, seconds = math.floor(seetime/60), math.floor(seetime%60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde "..minutes.." minuto(s) e "..seconds.." segundo(s) para usar novamente!") return false end setPlayerStorageValue(cid, 17456, exausted*60+os.time()) doCombat(cid, combat, var) local tempo2 = 0 while (tempo2 <= (tempo*1000)) do addEvent(Magica, tempo2, cid) tempo2 = tempo2 + 300 end return trueend
  9. Espero Que Alguem Me Ajude , Observe o Clefable com essa Spell Heala Fora do Pvp mas no PVP não heala Alguem Poderia me Ajudar? Aqui a Spell elseif spell == "Healarea" then local min = (getCreatureMaxHealth(cid) * 30) / 100 local max = (getCreatureMaxHealth(cid) * 50) / 100 local function doHealArea(cid, min, max) local amount = math.random(min, max) if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid)) end if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then doCreatureAddHealth(cid, amount) doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65) end end local pos = getPosfromArea(cid, heal) local n = 0 doHealArea(cid, min, max) while n < #pos do n = n+1 thing = {x=pos[n].x,y=pos[n].y,z=pos[n].z,stackpos=253} local pid = getThingFromPosWithProtect(thing) doSendMagicEffect(pos[n], 12) if isCreature(pid) then if isSummon(cid) and (isSummon(pid) or isPlayer(pid)) then if canAttackOther(cid, pid) == "Cant" then doHealArea(pid, min, max) end elseif ehMonstro(cid) and ehMonstro(pid) then doHealArea(pid, min, max) end end end @Up
  10. Boa tarde, preciso de uma wand que dê 4 hits com intervalo de 0.5 segundos entre eles e um quinto hit com intervalo de 1.5 segundos do anterior ,esse ultimo hit seria mais demorado e teria que 50%+ de força que os anteriores. após esses 5 hits ela teria um prazo de 3 segundos pra voltar na sequencia dos 4+1. Ex: 50/50/50/50.........100.........50/50/50/50........100...etc.. Os 4 primeiros hits preciso que seja baseado em 50% do ml e level, e o quinto hit seria 100% do lvl + ml . logo um player lvl100/ml100 bateria 100/100/100/100........200 Qualquer dúvida perguntem que tentarei explicar melhor. E se possível preciso para um servidor 8.60 e 10x
  11. È uma spell que ao usar voce heala "X" por "Y" segundos assim não podendo se mecher.! Uma script simples que pode ser usada por muitos. data/spells/script Tank.lua tempo = 10 -- Tempo de duração da spell em segundoshp = 10000 -- Quanto HP vai healar a cada x segundosfunction heal(cid)if not isCreature(cid) then return true endif getPlayerStorageValue(cid, 13978) == 1 thendoCreatureAddHealth(cid, hp)addEvent(heal, 3000, cid) return trueendreturn trueendfunction onCastSpell(cid, var)setPlayerStorageValue(cid, 13978, 1)doPlayerSetNoMove(cid, true)heal(cid)doSendMagicEffect(getCreaturePosition(cid), 26) addEvent(setPlayerStorageValue, tempo*1000, cid, 13978, -1)addEvent(doPlayerSetNoMove, tempo*1000, cid, false)return trueend Spells.xml: <instant name="Tank Mode" words="Tank Mode" lvl="25" mana="100" prem="0" aggressive="0" exhaustion="1000" needlearn="0" blockwalls="1" enabled="1" event="script" value="tank.lua"> </instant>
  12. Bem, para quem joga outros jogos já devem conhecer, ao dar a magia, o player buffa todo sua PT. Esse buff da uma PORCENTAGEM de HP e SHIELD conforme os status de cada player... ex: o Fulano tem 2000 de health e 50 de shield, com o buff ele ficará com 2400 de health e 70 de shield durante 5 segundos caso seja configurado com 20% e 5 segundos de tempo... Primeiramente vá em data/creaturescript/scripts/login.lua e adicione: if ((getPlayerStorageValue(cid, 99971)) > 1) then setCreatureMaxHealth(cid,getCreatureMaxHealth(cid) - getPlayerStorageValue(cid, 99971)) doPlayerSetStorageValue(cid, 99971, 0) doCreatureAddHealth(cid, 1) doCreatureAddHealth(cid, -1) end Abra o data/spells/spells.xml e adicione a seguinte tag: <instant name="HPDEF Party" words="utito mas hpdef" lvl="32" mana="60" prem="1" aggressive="0" selftarget="1" needlearn="0" event="script" value="party/hpdef.lua"> <vocation id="8"/> </instant> Crie um arquivo dentro da pasta data/spells/scripts/party/ com o nome hpdef.lua e cole o código: local combat = createCombatObject()local area = createCombatArea(AREA_CROSS5X5)setCombatArea(combat, area)setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)local config = {cooldown = 15, -- tempo entre uma magia e outratempo = 5, -- tempo em segundos que ficará com o buffporcentohp = 100, --- porcentagem da vida que vai addporcentoshield = 100, --- porcentagem da vida que vai addstorage = 45382, -- storage do tempo strlife = 99971, -- storage da vida tempoparaacabar = 10,baseMana = 90,hardcoreManaSpent = getConfigValue("addManaSpentInPvPZone")}function onCastSpell(cid, var) local pos, membersList = getCreaturePosition(cid), getPartyMembers(cid) if(membersList == nil or type(membersList) ~= 'table' or table.maxn(membersList) <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return false end local affectedList = {} for _, pid in ipairs(membersList) do if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then table.insert(affectedList, pid) end end local tmp = table.maxn(affectedList) if(tmp <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return false end local mana = math.ceil((0.9 ^ (tmp - 1) * config.baseMana) * tmp) if(getCreatureMana(cid) < mana) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) doSendMagicEffect(pos, CONST_ME_POFF) return false end if(not doCombat(cid, combat, var)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(pos, CONST_ME_POFF) return false end doCreatureAddMana(cid, -(mana - config.baseMana), false) if(not getPlayerFlagValue(cid, PlayerFlag_NotGainMana) and (not getTileInfo(getThingPosition(cid)).hardcore or config.hardcoreManaSpent)) then doPlayerAddSpentMana(cid, (mana - config.baseMana)) end for _, pid in ipairs(affectedList) do if os.time() - getPlayerStorageValue(pid, config.storage) >= config.cooldown thenlocal lifeMAX = math.ceil(getCreatureMaxHealth(pid) * (config.porcentohp)/100)local ShieldMAX = math.ceil(getPlayerSkill(pid, 5) * (config.porcentoshield)/100) --- add % shieldlocal condition = createConditionObject(CONDITION_ATTRIBUTES)setConditionParam(condition, CONDITION_PARAM_SUBID, 2)setConditionParam(condition, CONDITION_PARAM_BUFF, true)setConditionParam(condition, CONDITION_PARAM_TICKS, 1000* config.tempoparaacabar)setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, ShieldMAX) ------ --- add % hp ----addEvent(function() if isCreature(pid) then local pos = getPlayerPosition(pid) doAddCondition(pid, condition) setCreatureMaxHealth(pid,getCreatureMaxHealth(pid)+lifeMAX) doPlayerSetStorageValue(pid, config.strlife, lifeMAX) doCreatureAddHealth(pid, 1) doCreatureAddHealth(pid, -1) doSendAnimatedText(pos, "+"..lifeMAX , TEXTCOLOR_GREEN) doSendAnimatedText(pos, "+"..ShieldMAX , TEXTCOLOR_YELLOW) endend, 1* 1) -- instantaneo --------- --- remove hp ---- addEvent(function() if isCreature(pid) then local pos = getPlayerPosition(pid) setCreatureMaxHealth(pid,getCreatureMaxHealth(pid) - lifeMAX) doPlayerSetStorageValue(pid, config.strlife, 0) doCreatureAddHealth(pid, 1) doCreatureAddHealth(pid, -1) doSendAnimatedText(pos, "-"..lifeMAX , TEXTCOLOR_GREEN) doSendAnimatedText(pos, "-"..ShieldMAX , TEXTCOLOR_YELLOW) endend, 1000* config.tempoparaacabar) doPlayerSetStorageValue(pid, config.strlife, 0)doPlayerSetStorageValue(pid, config.storage, os.time())elsedoPlayerSendCancel(pid, "Aguardem "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, config.storage))).." segundos para usarnovamente.")end end return trueend Acho que é isso! estou procurando algum servidor para ajudar, se alguém precisar... um grande abraço!
  13. Tungs

    [SPELL] NTO CLONE

    Olá Pessoas, hoje vagando pelos grupos do Caralivro eu encontrei um ser vendendo uma spell que é desnecessariamente cara para algo descnecessariamente simples, então estou postando aqui para vocês uma spell de clones para cada vocação! eu não manjo muito de nto e n sei o nome do Jutsu então quem souber me conte <3 Em data/spells/script crie um arquivo chamado jutsuclone.lua Bom acho que é isso, qual quer duvida estarei dando suporte !
  14. Olá, queria ver se alguem pode me ajudar ou pelo menos me dar uma ideia de como faz o efeito de uma magia sair de cima para baixo em um player. Magia de ataque , suporte etc.Obg
  15. EAE GALERU PODEM FAZER ESSEE SCRIPT PRA MIN JA TENHO OS EFFECT SO FALTA SCRIPT
  16. Olá galera do XTibia , tudo tranquilo ? Bom , gostaria de pedir a vocês , um NPC que adicionasse uma spell ao player , e mudasse a outfit do mesmo. Exemplo : Bom , é isso galera ^.^ Desde já muito obrigado XD
  17. Esta spell ao ser utilizada pelo player teleporta ele para sua cidade com um delay para se teleportar. spells.xml <instant name="Konoha teleport" words="Konoha teleport" lvl="1" mana="0" prem="1" aggressive="0" selftarget="1" exhaustion="10000" needlearn="0" event="script" value="citytp.lua"> </instant> citytp.lua function onCastSpell(cid, var) local waittime = 15.0 -- Tempo de exhaustion local storage = 115518 local function doTeleport(cid, count) if (not isPlayer(cid)) then return true end doSendAnimatedText(getCreaturePosition(cid), (10 - count).."s", COLOR_ORANGE) doSendMagicEffect(getCreaturePosition(cid), 54) if (count == 10) then return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) else addEvent(doTeleport, 1000, cid, count + 1) end return true end if (not isPlayerPzLocked(cid)) then if (not getCreatureCondition(cid, 1024)) then return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0) else doPlayerSendTextMessage(cid,MESSAGE_STATUS_SMALL,"You cannot use this command while you are infight.") return false end else doPlayerSendTextMessage(cid,MESSAGE_STATUS_SMALL,"You cannot use this command while you are pz locked.") return false end end
  18. Boa noite, desculpe se estou publicando isso no lugar errado.. sou novato e ainda estou me habituando.. Meu problema é o seguinte.. Eu estou aumentando a exhaustão pra 10 segundos das 4 magias UE's... só que quando o player usa uma UE ele não esta conseguindo usar uma runa durante esses 10 segundos de exaustao da UE.. mas ele consegue usar outra magia.. como eu faço pra exaustão da UE nao intereferir no uso das runas?? Uso TFS 0.4 Tibia 8.6
  19. ot 8.60 Eae galera :3 Queria uma ajuda aqui, por exemplo, na magia do mas frigo: Queria que se o player tivesse x storage, a magia teria outro effect, por exemplo: efeito padrao = ICETORNADO -efeito numero 42 efeito se tivesse x storage = GIANTICE - efeito numero 52 Alguém sabe ou tem alguma ideia de como fazer isso?
  20. Olá, estou usando atualmente em meu server o sistema de spells por trade, do vodkart: Eu editei um pouco e está assim no meu ot: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local shopWindow = {} local spells = { {id=1950, buy = 900, name = "Exori Mort", spell_name = "Death Strike", vocations = {1}, level = 9}, {id=6103, buy = 1500, name = "Exevo Flam Hur", spell_name = "Fire Wave", vocations = {1}, level = 9}, {id=1961, buy = 600, name = "Light Healing", spell_name = "Exura", vocations = {1}, level = 9}, {id=1986, buy = 2000, name = "Haste", spell_name = "Utani Hur", vocations = {1}, level = 19}, {id=1955, buy = 1400, name = "Cure Burning", spell_name = "Exana Flam", vocations = {1}, level = 19}, {id=1963, buy = 1400, name = "Cure Eletrification", spell_name = "Exana Vis", vocations = {1}, level = 19}, {id=1984, buy = 1600, name = "Cure Curse", spell_name = "Exana Mort", vocations = {1}, level = 19}, {id=12655, buy = 3600, name = "Intense Healing", spell_name = "Exura Gran", vocations = {1}, level = 29}, {id=1960, buy = 5000, name = "Energy Beam", spell_name = "Exexvo Vis Lux", vocations = {1}, level = 29}, {id=1959, buy = 6800, name = "Mort Wave", spell_name = "Exexvo Mort Hur", vocations = {1}, level = 29}, {id=1976, buy = 7450, name = "Energy Wave", spell_name = "Exexvo Vis Hur", vocations = {1}, level = 39}, {id=1965, buy = 5400, name = "Strong Energy Strike", spell_name = "Exori Gran Vis", vocations = {1}, level = 39}, {id=1983, buy = 5500, name = "Fire Spirit", spell_name = "Spirit", vocations = {1}, level = 39}, {id=1959, buy = 4400, name = "Magic Shield", spell_name = "Utamo Vita", vocations = {1}, level = 39}, {id=8190, buy = 18000, name = "Gran Mort Wave", spell_name = "Exevo Dead Hur", vocations = {1}, level = 49}, {id=1962, buy = 15000, name = "Strong Flame Strike", spell_name = "Exori Gran Flam", vocations = {1}, level = 49}, {id=1982, buy = 9200, name = "Strong Haste", spell_name = "Utani Gran Hur", vocations = {1}, level = 49}, {id=10062, buy = 45000, name = "Rage of the Skies", spell_name = "Exevo Gran Mas Vis", vocations = {1}, level = 59}, {id=10942, buy = 55000, name = "Hells Core", spell_name = "Exevo Gran Mas Flam", vocations = {1}, level = 59}, {id=11134, buy = 29000, name = "Dark", spell_name = "Dark Conjurer", vocations = {1}, level = 59} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if not getPlayerLearnedInstantSpell(cid, shopWindow[item].Words) then if getPlayerLevel(cid) >= shopWindow[item].Level then if isInArray(shopWindow[item].Vocs, getPlayerVocation(cid)) then doPlayerRemoveMoney(cid, shopWindow[item].Price) doPlayerLearnInstantSpell(cid, shopWindow[item].Words) npcHandler:say("você aprendeu uma nova magia chamada "..shopWindow[item].Words, cid) else npcHandler:say("você não tem a vocação para comprar está spell.", cid) end else npcHandler:say("você precisa ter level "..shopWindow[item].Level.." ou mais para comprar essa magia.", cid) end else npcHandler:say("você já aprendeu essa magia.", cid) end return true end if msgcontains(msg, 'trade') or msgcontains(msg, 'spells') then for var, item in pairs(spells) do shopWindow[item.id] = {Level = item.level, Vocs = item.vocations, item_id = item.id, Price = item.buy, subType = 0, Words = item.spell_name, SpellName = item.name} end openShopWindow(cid, spells, onBuy, onSell) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) No meu server não tem promotion, e tem magias editadas como se percebe. Também já editei todas no spells.xml, para os players terem que comprarem pra usá-las. Eu to testando aqui e, só as duas primeiras spells da lista dão para comprar, as outras eu gasto dinheiro mas não consigo soltar a spells =x
  21. As sprites das skills direcionais do meu wodbo não estão aparecendo, antes elas funcionavam de boa, agr não esta aparecendo as sprites, mas a magia funciona, tira dado e tudo... exemplo: kamehameha o=========o antes agora kamehameha? Resumindo, as spells funcionam, mas não sai a sprite. Antes funcionavam, n mexi em nada nas spells
  22. bom existe um spell chamado invisible que funciona perfeitamente porem eu adicionei um system de addon que também esta funcionando corretamente porem se eu uso a spell invisible quando o pokemon fica visivel novamente ele volta sem seu addon e para que o addon volte eu tenho q chama-lo de volta, ou usar ride,surf ou fly, também deslogar resolve eu quero que quando ele voltar volte com a outfit do addon essa é a spell invisible e isso é a parte do goback que faz o pokemon que tenha addon apareça com a outfitt de addon quando é invocado @Poccnn
  23. ola galera. gostaria de pedir se alguem pode me ajudar a criar uma magia que usa outfit ao inves de effect porq os effects do cyan so cabem 156 ja outfits pode usar quantas quiser. a magia sera . o poke troca para a outfit da magia e ira atraz do pokemon inimigo dando dano em linha a 3 sqm do poke inimigo. pra quem conhece e a magia de duplas chamas do magmortar. ele anda e solta chamas na direçao do poke atacado dando dano no 1 ,2 ,3 sqm na frente dele a outfit eu ja criei e ela vai pra todas as direçoes <>^\/. segue foto da minha sprite da magia. desde ja agradeço dmaiss a ajuda. vlw uso base cyan 8.54 by senhor
  24. Olá, tudo bem ? Preciso de uma spell com deley, exemplo: O player digita a magia, a magia demora uns dois segundos, assim possibilitando o combo com outra spell, vis Hur, terá Hur e etc. Alguém me ajuda por favor hahaha
  25. Dalia

    Ajuda com spells

    Olá, tudo bem ? Preciso de uma spell com deley, exemplo: O player digita a magia, a magia demora uns dois segundos, assim possibilitando o combo com outra spell, vis Hur, terá Hur e etc. Alguém me ajuda por favor hahaha
×
×
  • Criar Novo...