Ir para conteúdo

Featured Replies

Postado

Eu queria pedir uma coisa no kit inicial do pokemon.

 

Se alguem sabe por na hora de escolhe o pokemon ele ja ia direto pra escolher qual pokemon quer e ele clicando no bau ele ja ia teleportado direto para uma X Cidade sem ter que falar com NPC nem nada.

 

SCRIPT

Spoiler

local starterpokes = {
["Torchic"] = {x = 1343, y = 989, z = 10},
["Chinchar"] = {x = 1341, y = 989, z = 10},
["Cyndaquil"] = {x = 1345, y = 989, z = 10},
["Charmander"] = {x = 1347, y = 989, z = 10},   
["Treecko"] = {x = 1353, y = 989, z = 10},
["Chikorita"] = {x = 1355, y = 989, z = 10},
["Bulbasaur"] = {x = 1357, y = 989, z = 10},
["Turtwig"] = {x = 1351, y = 989, z = 10},
["Mudkip"] = {x = 1363, y = 989, z = 10},
["Piplup"] = {x = 1361, y = 989, z = 10},
["Totodile"] = {x = 1365, y = 989, z = 10},
["Squirtle"] = {x = 1367, y = 989, z = 10},
}

local btype = "normal"

function onUse(cid, item, frompos, item2, topos)

    if getPlayerLevel(cid) > 5 then   
    return true
    end

    local pokemon = ""

    for a, b in pairs (starterpokes) do
        if isPosEqualPos(topos, b) then
            pokemon = a
        end
    end
    if pokemon == "" then return true end
    
    if getPlayerStorageValue(cid, 9658754) ~= 1 then              
       sendMsgToPlayer(cid, 27, "Fale com o professor Robert para escolher sua cidade inicial primeiro!")
       return true
    end                                            --alterado v1.9 \/

    doPlayerSendTextMessage(cid, 27, "Voce tem o seu primeiro pokemon! Você tambem recebeu algumas pokeballs para ajuda lo em seu caminho.")
    doPlayerSendTextMessage(cid, 27, "Nao se esqueça de usar a sua pokedex em todos os pokemon desconhecidos!")

    addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
    local item1 = doPlayerAddItem(cid, 2391, 5)
    doItemSetAttribute(item1, "unique", getCreatureName(cid))
    local item2 = doPlayerAddItem(cid, 12346, 5)
    doItemSetAttribute(item2, "unique", getCreatureName(cid))
    local item3 = doPlayerAddItem(cid, 2152, 5)
    doItemSetAttribute(item3, "unique", getCreatureName(cid))
    local item4 = doPlayerAddItem(cid, 12344, 5)
    doItemSetAttribute(item4, "unique", getCreatureName(cid))

    doSendMagicEffect(getThingPos(cid), 29)
    doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
    doSendMagicEffect(getThingPos(cid), 27)
    doSendMagicEffect(getThingPos(cid), 29)
    

return TRUE
end

Rep+++

  • Respostas 13
  • Visualizações 1.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • tenta   local saffron = {x = 1353, y = 1167, z = 6} local starterpokes = { ["Torchic"] = {x = 1343, y = 989, z = 10}, ["Chinchar"] = {x = 1341, y = 989, z = 10}, ["Cyndaquil"] = {x = 1345, y

Postado

Arrume as posições X Y Z, caso aconteça algo inesperado poste aqui que tentarei ajudar.

 

Spoiler

local starterpokes = {
["Torchic"] = {x = 1343, y = 989, z = 10},
["Chinchar"] = {x = 1341, y = 989, z = 10},
["Cyndaquil"] = {x = 1345, y = 989, z = 10},
["Charmander"] = {x = 1347, y = 989, z = 10},   
["Treecko"] = {x = 1353, y = 989, z = 10},
["Chikorita"] = {x = 1355, y = 989, z = 10},
["Bulbasaur"] = {x = 1357, y = 989, z = 10},
["Turtwig"] = {x = 1351, y = 989, z = 10},
["Mudkip"] = {x = 1363, y = 989, z = 10},
["Piplup"] = {x = 1361, y = 989, z = 10},
["Totodile"] = {x = 1365, y = 989, z = 10},
["Squirtle"] = {x = 1367, y = 989, z = 10},
}

local tp = {x = 0, y = 0, z = 0}

local btype = "normal"

function onUse(cid, item, frompos, item2, topos)

    if getPlayerLevel(cid) > 5 then   
    return true
    end

    local pokemon = ""

    for a, b in pairs (starterpokes) do
        if isPosEqualPos(topos, b) then
            pokemon = a
        end
    end
    if pokemon == "" then return true end
    
    if getPlayerStorageValue(cid, 9658754) ~= 1 then              
       sendMsgToPlayer(cid, 27, "Fale com o professor Robert para escolher sua cidade inicial primeiro!")
       return true
    end                                            --alterado v1.9 \/

    doPlayerSendTextMessage(cid, 27, "Voce tem o seu primeiro pokemon! Você tambem recebeu algumas pokeballs para ajuda lo em seu caminho.")
    doPlayerSendTextMessage(cid, 27, "Nao se esqueça de usar a sua pokedex em todos os pokemon desconhecidos!")

    addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
    local item1 = doPlayerAddItem(cid, 2391, 5)
    doItemSetAttribute(item1, "unique", getCreatureName(cid))
    local item2 = doPlayerAddItem(cid, 12346, 5)
    doItemSetAttribute(item2, "unique", getCreatureName(cid))
    local item3 = doPlayerAddItem(cid, 2152, 5)
    doItemSetAttribute(item3, "unique", getCreatureName(cid))
    local item4 = doPlayerAddItem(cid, 12344, 5)
    doItemSetAttribute(item4, "unique", getCreatureName(cid))

    doSendMagicEffect(getThingPos(cid), 29)
    doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
    doSendMagicEffect(getThingPos(cid), 27)
    doSendMagicEffect(getThingPos(cid), 29)

    doTeleportThing(cid,tp)

    

return TRUE
end

 

                                     

Citar

                               "Sábio é aquele que conhece os limites da própria ignorância."

                                    Sócrates

                                                          tenor.gif.b8aeb876d96198271bdf7891a50ce718.gif

Postado
local topos = {x=0000, y=0000, z=0} -- Posição para onde o player será teleportado.
local starterpokes = {
["Torchic"] = {x = 1343, y = 989, z = 10},
["Chinchar"] = {x = 1341, y = 989, z = 10},
["Cyndaquil"] = {x = 1345, y = 989, z = 10},
["Charmander"] = {x = 1347, y = 989, z = 10},   
["Treecko"] = {x = 1353, y = 989, z = 10},
["Chikorita"] = {x = 1355, y = 989, z = 10},
["Bulbasaur"] = {x = 1357, y = 989, z = 10},
["Turtwig"] = {x = 1351, y = 989, z = 10},
["Mudkip"] = {x = 1363, y = 989, z = 10},
["Piplup"] = {x = 1361, y = 989, z = 10},
["Totodile"] = {x = 1365, y = 989, z = 10},
["Squirtle"] = {x = 1367, y = 989, z = 10},
}

local btype = "normal"

function onUse(cid, item, frompos, item2, topos)

    if getPlayerLevel(cid) > 5 then 
    if doTeleportThing(cid, topos) then  
    return true
    end

    local pokemon = ""

    for a, b in pairs (starterpokes) do
        if isPosEqualPos(topos, b) then
            pokemon = a
        end
    end
    if pokemon == "" then return true end
    
    if getPlayerStorageValue(cid, 9658754) ~= 1 then              
       sendMsgToPlayer(cid, 27, "Fale com o professor Robert para escolher sua cidade inicial primeiro!")
       return true
    end                                            --alterado v1.9 \/

    doPlayerSendTextMessage(cid, 27, "Voce tem o seu primeiro pokemon! Você tambem recebeu algumas pokeballs para ajuda lo em seu caminho.")
    doPlayerSendTextMessage(cid, 27, "Nao se esqueça de usar a sua pokedex em todos os pokemon desconhecidos!")

    addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
    local item1 = doPlayerAddItem(cid, 2391, 5)
    doItemSetAttribute(item1, "unique", getCreatureName(cid))
    local item2 = doPlayerAddItem(cid, 12346, 5)
    doItemSetAttribute(item2, "unique", getCreatureName(cid))
    local item3 = doPlayerAddItem(cid, 2152, 5)
    doItemSetAttribute(item3, "unique", getCreatureName(cid))
    local item4 = doPlayerAddItem(cid, 12344, 5)
    doItemSetAttribute(item4, "unique", getCreatureName(cid))

    doSendMagicEffect(getThingPos(cid), 29)
    doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
    doSendMagicEffect(getThingPos(cid), 27)
    doSendMagicEffect(getThingPos(cid), 29)
    

return TRUE
end

 

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo