Ir para conteúdo

Featured Replies

Resolvido por TioDoLeite

Ir para solução
Postado
  • Solução

Bom primeiro vá em C:\Users\pc\Desktop\Server\data\lib do seu servidor, procure por Pokémon Moves.lua abra-o com o bloco de notas, aperte Ctrl+f e procure por "elseif spell == "Shredder Team" then", aparecera isso

elseif spell == "Shredder Team" then     --alterado v1.8 \/

local team = {
["Scyther"] = "ScytherTeam",
["Shiny Scyther"] = "Shiny ScytherTeam",
["Scizor"] = "ScizorTeam",
}

local function RemoveTeam(cid)
if isCreature(cid) then
  doSendMagicEffect(getThingPosWithDebug(cid), 211)
  doRemoveCreature(cid)
end
end

local function sendEff(cid, master, t)
if isCreature(cid) and isCreature(master) and t > 0 and #getCreatureSummons(master) >= 2 then
   doSendMagicEffect(getThingPosWithDebug(cid), 86, master)
   addEvent(sendEff, 1000, cid, master, t-1)                        --alterado v1.9
end
end

if getPlayerStorageValue(cid, 637500) >= 1 then
return true
end

local master = getCreatureMaster(cid)
local item = getPlayerSlotItem(master, 8)
local life, maxLife = getCreatureHealth(cid), getCreatureMaxHealth(cid)
local name = getItemAttribute(item.uid, "poke")
local pos = getThingPosWithDebug(cid)
local time = 21

doItemSetAttribute(item.uid, "hp", (life/maxLife))

local num = getSubName(cid, target) == "Scizor" and 4 or 3
local pk = {}

doTeleportThing(cid, {x=4, y=3, z=10}, false) 

if team[name] then
   pk[1] = cid
   for b = 2, num do
       pk[b] = doSummonCreature(team[name], pos)
       doConvinceCreature(master, pk[b])
   end

   for a = 1, num do
      addEvent(doTeleportThing, math.random(0, 5), pk[a], getClosestFreeTile(pk[a], pos), false)
      addEvent(doAdjustWithDelay, 5, master, pk[a], true, true, true)
      doSendMagicEffect(getThingPosWithDebug(pk[a]), 211)
   end 
   sendEff(cid, master, time)     --alterado v1.9
   setPlayerStorageValue(master, 637501, 1)
   addEvent(setPlayerStorageValue, time * 1000, master, 637501, -2)
   -----
   setPlayerStorageValue(pk[2], 637500, 1)
   addEvent(RemoveTeam, time * 1000, pk[2])
   -----
   setPlayerStorageValue(pk[3], 637500, 1)
   addEvent(RemoveTeam, time * 1000, pk[3])
   ----
   if getSubName(cid, target) == "Scizor" then  
      setPlayerStorageValue(pk[4], 637500, 1) 
      addEvent(RemoveTeam, time * 1000, pk[4])
   end
end

Nessa parte, é só você adicionar o pokémon que você que tenha esse ataque, eu vou usar o Alakazam (exemplo). adicione uma nova tag abaixo e coloque o nome do pokémon ficando assim:

 

local team = {
["Scyther"] = "ScytherTeam",
["Shiny Scyther"] = "Shiny ScytherTeam",
["Scizor"] = "ScizorTeam",

["Alakazam"] = "AlakazamTeam",
}

 

Salve o arquivo, depois vá em C:\Users\pc\Desktop\Server\data\monster\pokes\Shredder Team. copie e cole um arquivo .xml, renomeie para o nome do novo pokémon que vai ter o ataque (Alakazam), abra ele com o bloco de notas, e edite com o do pokémon e o id da roupa dele, assim :

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Alakazam" nameDescription="a Alakazam" race="bug" experience="1044" speed="177" manacost="0">
  <health now="110" max="110"/>
  <look type="569" head="75" body="85" legs="95" feet="113" corpse="0"/>
  <targetchange interval="10000" chance="0"/>
  <strategy attack="100" defense="0"/>
<flags>

depois va em C:\Users\pc\Desktop\Server\data\monster, e abra o arquivo monsters.xml, aperte Ctrl+f e procure por Shredder Team, quando encontrar você ira adicionar uma nova tag abaixo com o nome do pokémon que você quer que tenha o ataque (Alakazam), ficando assim :

<!-- Shredder Team -->
			 <monster name="ScytherTeam" file="pokes/Shredder Team/Scyther.xml"/>
			 <monster name="Shiny ScytherTeam" file="pokes/Shredder Team/Shiny Scyther.xml"/>
			 <monster name="ScizorTeam" file="pokes/Shredder Team/Scizor.xml"/>
			 <monster name="XatuTeam" file="pokes/Shredder Team/Xatu.xml"/>
			 <monster name="YanmaTeam" file="pokes/Shredder Team/Yanma.xml"/>
                         <monster name="AlakazamTeam" file="pokes/Shredder Team/Alakazam.xml"/>
<!-- fim -->
 

                                                      Pronto, Agora é só testar la no servidor :)

 

Atenciosamente, Knowth.

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: "OTServDownloadsServidores Derivados"

Para: "OTServSuporte OTServSuporte de Servidores Derivados"

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