Ir para conteúdo

(Resolvido)Gostaria de Ajuda Para Faser Jutsu Hirashin Seal Hirashin Teleport

Featured Replies

Postado

Gostaria de uma ajuda Scripit Teleport Usando Spell Quando Usar Hirashin Seal ele ira Marcar um selo embaixo do Player Marcando a Posicao De Quando voce usar Hirashin Teleport ele Ira Teleporta devolta nesse Selo E Simples e Marca o Chao com uma spr e Salva essa Localizacao ate o Player usar Hirashin Teleport De Volta ao selo e o Selo Some Automaticamente

Resolvido por Snowsz

Ir para solução
Postado

Gostaria de uma ajuda Scripit Teleport Usando Spell Quando Usar Hirashin Seal ele ira Marcar um selo embaixo do Player Marcando a Posicao De Quando voce usar Hirashin Teleport ele Ira Teleporta devolta nesse Selo E Simples e Marca o Chao com uma spr e Salva essa Localizacao ate o Player usar Hirashin Teleport De Volta ao selo e o Selo Some Automaticamente

Explica direito, e sem ficar aumentando as letras, confunde ainda mais...

 

E ela irá  dar algum tipo de dano ?

Editado por Snowsz (veja o histórico de edições)

                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Postado

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServSuporte OTServSuporte de Scripts"

Para: "OTServSuporte OTServSuporte de Servidores Derivados"

The corrupt fear us.

The honest support us.

The heroic join us.

Postado
  • Solução

Eu fiz sem dar dano e do jeito que entendi, então:
Tag:

	<instant name="Hirashin Seal" words="hirashin seal" lvl="12" mana="20" prem="0" range="10" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="hirashin seal.lua">
		<vocation id="1"/>
		<vocation id="2"/>
		<vocation id="3"/>
		<vocation id="4"/>
	</instant>

Cria um arquivo com o nome hirashin seal.lua na pasta spells/scripts e poe isso dentro:


function onCastSpell(cid, var)
--{itemcriado, efeitoquevaisair, naomexa:P}
local config = {2160, 30, getCreatureTarget(cid)}
local pos = {x = getPlayerStorageValue(cid, "hirashinposx"), y = getPlayerStorageValue(cid, "hirashinposy"), z = getPlayerStorageValue(cid, "hirashinposz")}
if config[3] <= 0 and getPlayerStorageValue(cid, "hirashinpos") <= 0 then
doPlayerSendCancel(cid, "To mark the seal, you need a target.")
return true
end

  if getPlayerStorageValue(cid, "hirashinpos") <= 0 then
    setPlayerStorageValue(cid, "hirashinposx", getCreaturePosition(config[3]).x)
    setPlayerStorageValue(cid, "hirashinposy", getCreaturePosition(config[3]).y)
    setPlayerStorageValue(cid, "hirashinposz", getCreaturePosition(config[3]).z)
    setPlayerStorageValue(cid, "hirashinpos", 1)
    doCreateItem(config[1], 1, getCreaturePosition(config[3]))
    doPlayerSendCancel(cid, "Marked, use again to teleport.")
    doSendMagicEffect(getThingPos(config[3]), config[2]) 
  else
    setPlayerStorageValue(cid, "hirashinpos", 0)
    doTeleportThing(cid, pos, true)
    doRemoveItem(getTileItemById(pos, config[1]).uid, 1)
    doSendMagicEffect(getThingPos(cid), config[2])
  end
  return true
end

Já tem explicação de alterar o item e o efeito.

                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Postado
  • Autor

<spell name="kuchyose dog no jutsu 2"    words="kuchyose dog no jutsu 2"                        maglv="80"    mana="300"    enabled="1"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="5"/></spell>
<spell name="kuchyose frog no jutsu 2"    words="kuchyose frog no jutsu 2"                maglv="80"    mana="300"    enabled="1"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="5"/></spell>
<spell name="kuchyose larva no jutsu 2"    words="kuchyose larva no jutsu 2"                maglv="80"    mana="300"    enabled="1"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="5"/></spell>
<spell name="kuchyose snake no jutsu 2"    words="kuchyose snake no jutsu 2"                maglv="80"    mana="300"    enabled="1"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="5"/></spell>

<instant name="Hirashin Seal" words="hirashin seal" lvl="12" mana="20" prem="0" range="10" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="hirashin seal.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="4"/>
    </instant>

</spells>

 

 

Meu Sistema de Spells.xml e diferente nao vem com block walls essas coisas :B

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo