Ir para conteúdo
  • Cadastre-se

Spell Ajuda com spell pra mudar de effect!


Posts Recomendados

Fala galera do TK, eu queria uma ajuda com uma certa spell que to tentando modificar mas o effect dela nao muda , ja mudei tudo que podia nela e n sei como mudar o effect dela , nao entendo muito de script de spell , entao quem puder me ajudar rep++  

 

o effect que ta saindo é 246 !!

 

aqui ta a script: 

 

 

local config = {
jumps2 = 50,
walktime = 200
}

combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_ORANGE)
setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 14)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 122)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -10.0, 0, -15.0, 0)

function onCastSpell(cid)
if exhaustion.check(cid, 13104) == TRUE then
    doPlayerSendCancel(cid, "Podera usar novamente dentro de 10 segundos.")
    doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
function move2(cid, pos, n)
local n = n or 0

if (n < config.jumps2) then
if (isCreature(cid)) then
local pos = pos or getCreaturePosition(cid)
local target = getCreatureTarget(cid)

local dir = (target ~= 0) and getDirectionTo(pos, getCreaturePosition(target)) or getCreatureLookDirection(cid)
local tpos = (target ~= 0) and getCreaturePosition(target)

local newPos

if ((target ~= 0) and ((pos.x == tpos.x) and (pos.y == tpos.y))) then
newPos = tpos
else
newPos = getPosByDir(pos, dir)
end

if ((getTopCreature(newPos).uid == 1) and doTileQueryAdd(cid, newPos) ~= 0) then return false end

doCombat(cid, combat1, {
pos = newPos,
type = 2
})

addEvent(move2, config.walktime, cid, newPos, n + 1)
end
end
end

move2(cid)
exhaustion.set(cid, 13104, 10.0)
return true
end

Link para o post
Compartilhar em outros sites

Este tópico foi movido para a área correta. Esta é uma mensagem automática!
Pedimos que leia as regras do fórum!

Spoiler

This topic has been moved to the correct area. This is an automated message!
Please read the forum rules.

 

Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas.

discord.gg/phJZeHa2k4

 

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

Link para o post
Compartilhar em outros sites
  • Moderador
local config = {
jumps2 = 50,
walktime = 200
}

combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_ORANGE)
setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, NUMERO DO DISTANCE EFFECT)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, NUMERO DO EFEITO)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -10.0, 0, -15.0, 0)

function onCastSpell(cid)
if exhaustion.check(cid, 13104) == TRUE then
    doPlayerSendCancel(cid, "Podera usar novamente dentro de 10 segundos.")
    doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
function move2(cid, pos, n)
local n = n or 0

if (n < config.jumps2) then
if (isCreature(cid)) then
local pos = pos or getCreaturePosition(cid)
local target = getCreatureTarget(cid)

local dir = (target ~= 0) and getDirectionTo(pos, getCreaturePosition(target)) or getCreatureLookDirection(cid)
local tpos = (target ~= 0) and getCreaturePosition(target)

local newPos

if ((target ~= 0) and ((pos.x == tpos.x) and (pos.y == tpos.y))) then
newPos = tpos
else
newPos = getPosByDir(pos, dir)
end

if ((getTopCreature(newPos).uid == 1) and doTileQueryAdd(cid, newPos) ~= 0) then return false end

doCombat(cid, combat1, {
pos = newPos,
type = 2
})

addEvent(move2, config.walktime, cid, newPos, n + 1)
end
end
end

move2(cid)
exhaustion.set(cid, 13104, 10.0)
return true
end

Observe ali em cima, alterei para "Numero do distance effect" e "numero do efeito".

 

Utilize os comandos in-game para saber o numero do efeito.

Link para o post
Compartilhar em outros sites
1 hora atrás, movie disse:

local config = {
jumps2 = 50,
walktime = 200
}

combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_ORANGE)
setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, NUMERO DO DISTANCE EFFECT)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, NUMERO DO EFEITO)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -10.0, 0, -15.0, 0)

function onCastSpell(cid)
if exhaustion.check(cid, 13104) == TRUE then
    doPlayerSendCancel(cid, "Podera usar novamente dentro de 10 segundos.")
    doSendMagicEffect(getCreaturePosition(cid), 2)
    return false
end
function move2(cid, pos, n)
local n = n or 0

if (n < config.jumps2) then
if (isCreature(cid)) then
local pos = pos or getCreaturePosition(cid)
local target = getCreatureTarget(cid)

local dir = (target ~= 0) and getDirectionTo(pos, getCreaturePosition(target)) or getCreatureLookDirection(cid)
local tpos = (target ~= 0) and getCreaturePosition(target)

local newPos

if ((target ~= 0) and ((pos.x == tpos.x) and (pos.y == tpos.y))) then
newPos = tpos
else
newPos = getPosByDir(pos, dir)
end

if ((getTopCreature(newPos).uid == 1) and doTileQueryAdd(cid, newPos) ~= 0) then return false end

doCombat(cid, combat1, {
pos = newPos,
type = 2
})

addEvent(move2, config.walktime, cid, newPos, n + 1)
end
end
end

move2(cid)
exhaustion.set(cid, 13104, 10.0)
return true
end

Observe ali em cima, alterei para "Numero do distance effect" e "numero do efeito".

 

Utilize os comandos in-game para saber o numero do efeito.

 

ja tentei mudar esses ai que você alterou , e nao deu certo , aparentemente ele solta 1 effect que fica perseguindo o cara e outro que só sai na hora que soltar a skill , e aonde você mudou só altera o que sai na hora da skill

 

@movie Esse é o effect que ta saindo que eu gostaria de mudar , o numero no script nao é o mesmo que sai !

Sem título.png

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por Kazuya9629
      como eu fasso pro charmander usa spell Ember ea outfit dele mudar por alguns segundos
       
      base poke jornadas 
    • Por Jedian
      Olá galera, aqui eu denovo com outro post, que espero que seja útil pra vocês.
      Pois é, eu só posto spells, mas é que o resto, praticamente não tem o que inventar, sim, tem, mas o que está exatamente ao alcance de um scripter, nem fácil demais, nem impossível pra ele, é praticamente inexistente, por isso é difícil pra nós, scripters, na minha opinião, demonstrar exatamente o potencial de cada um, e em spells, cada um faz do seu jeito, ficando ruim ou não, é perfeita pra cada um que a faz, estou pensando muito em outros sistemas pra vocês, sério, mas tá difícil.
      Mudando de assunto, vamos a magia, pensei nela esfregando pedras a ideia seria uma magia que faz uma espada "costurar em linha reta"(como o nome diz) para frente do personagem de acordo com o tipo de arma usada, aí, se houver um target, ela vai até ele e dá "costuradas" conforme a distância que percorreu até chegar nele, quanto mais perto, mais "costuradas" e vice-versa.
      Vamos instalar:
      em data/spells/scripts copie um arquivo e cole-o, renomeie para algum nome, apague todo o conteúdo e cole isso dentro:



      <instant name="Sewing Straight" words="sewing straight" lvl="35" mana="0" prem="0" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="nome.lua"></instant>
      edite o nome do arquivo e ajeite conforme as preferências.
      Pronto, está instalado, nenhuma foto, pois não dá pra ter uma ideia muito boa com elas :S testem e critiquem aí.
    • Por Sociopata
      Abra data\spells\scripts cria um arquivo com nome earthquake.lua e cole isso \/


      local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STONES) setCombatParam(combat, COMBAT_PARAM_USECHARGES, TRUE) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.9, 0, 1.0, 0) local area = createCombatArea(AREA_CIRCLE3X3) setCombatArea(combat, area) local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 34) setCombatParam(combat1, COMBAT_PARAM_USECHARGES, TRUE) setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 0.9, 0, 1.0, 0) local area1 = createCombatArea(AREA_CIRCLE3X3) setCombatArea(combat1, area1) function onCastSpell(cid, var) doCombat(cid, combat1, var) return doCombat(cid, combat, var) end em data /spells.xml cole isso \/ <instant name="earthquake" words="exori beam" lvl="33" mana="450" prem="0" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="earthquake.lua"> <vocation id="4"/>
    • Por Linus
      Tag spells.XML(configure a gosto, use o mesmo para todos os scripts acima) :
      <instant name="NAME" words="NAME" lvl="1" mana="1" prem="0" aggressive="1" selftarget="0" exhaustion="1" group="attack" groupcooldown="1" needlearn="0" script="ARQUIVO.lua"> <vocation name="VOCATION NAME"/> </instant>  Para adicionar a spell, só ir em data/spells/scripts criar um arquivo .lua para o script e adicionálo e dps ir em spells.XML colocando a tag, configurada de acordo com a spell em questão.
       
       
       
       
      Créditos Printer.
       
       
       
    • Por Tricoder
      Descrição
      Estilo utito tempo, adiciona 10x mais magic levels durante 30 segundos. Para alterar, modifique essa parte:
      setConditionParam(condition2, CONDITION_PARAM_TICKS, 30000) setConditionParam(condition2, CONDITION_PARAM_STAT_MAGICLEVEL, 10) Modifique as vocações na tag também.
       
      Script
      data/spells/scripts/utitomana.lua
      local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, 30000) setConditionParam(condition2, CONDITION_PARAM_STAT_MAGICLEVEL, 10) setCombatCondition(combat, condition2) function onCastSpell(cid, var) local ret = LUA_ERROR if(doCombat(cid, combat, var) == LUA_NO_ERROR) then ret = LUA_NO_ERROR end return ret end data/spells/spells.xml 
      <instant name="Utito Mana" words="utito tempo mana" lvl="60" mana="450" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="utitomana.lua"> <vocation id="3"/> <vocation id="7"/> </instant> Créditos: Acubens
       
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo