action/script/starter.lua
no começo do script estára assim +/-
local starterpokes = {
["Pidgey"] = {x = 923, y = 1244, z = 13},
["Zubat"] = {x = 944, y = 1230, z = 13},
["Oddish"] = {x = 964, y = 1244, z = 13},
}
Por manojl, 17 de ago. de 2013 em Tópicos Sem Resposta
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

action/script/starter.lua
no começo do script estára assim +/-
local starterpokes = {
["Pidgey"] = {x = 923, y = 1244, z = 13},
["Zubat"] = {x = 944, y = 1230, z = 13},
["Oddish"] = {x = 964, y = 1244, z = 13},
}
info
Grupo: Campones
Registrado: 26/01/13
Posts: 31
Reputação: 0
Char no Tibia: Nen Tenhu

Ta aki o starter
local starterpokes = {["Torchic"] = {x = 762, y = 659, z = 7},["Stayru"] = {x = 762, y = 661, z = 7},["Pikachu"] = {x = 762, y = 663, z = 7},}local level = 5local extrastr = 1.5local btype = "normal"function onUse(cid, item, frompos, item2, topos)if getPlayerLevel(cid) > 10 thenreturn trueendlocal pokemon = ""for a, b in pairs (starterpokes) doif isPosEqualPos(topos, b) thenpokemon = aendendif pokemon == "" then return true endif getPlayerStorageValue(cid, 9658754) ~= 1 then --alterado v2.7 -opicional-sendMsgToPlayer(cid, 27, "Talk to the Prof. Robert to choose your beginner city first!")return trueendlocal gender = getRandomGenderByName(pokemon)local mypoke = getPokemonStatus(pokemon)if not mypoke then return true endlocal offense = mypoke.off * level * extrastrlocal defense = mypoke.def * level * extrastrlocal speed = mypoke.agi * level * extrastrlocal vit = mypoke.vit * level * extrastrlocal spatk = mypoke.spatk * level * extrastrlocal happy = 180local leveltable = getPokemonExperienceTable(pokemon)doPlayerAddItem(cid, 2160, 2)doPlayerAddItem(cid, 2392, 50)doPlayerAddItem(cid, 2394, 100)doPlayerAddItem(cid, 12344, 20)local balls = doPlayerAddItem(cid, 2394, 10)doItemSetAttribute(balls, "unique", cid) --alterado v2.8 as pokeballs iniciais viram uniques...local item = doCreateItemEx(2219)doItemSetAttribute(item, "poke", pokemon)doItemSetAttribute(item, "hp", 1)doItemSetAttribute(item, "level", level)doItemSetAttribute(item, "exp", leveltable[level])doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level])doItemSetAttribute(item, "offense", offense)doItemSetAttribute(item, "defense", defense)doItemSetAttribute(item, "speed", speed)doItemSetAttribute(item, "vitality", vit)doItemSetAttribute(item, "specialattack", spatk)doItemSetAttribute(item, "happy", happy)doItemSetAttribute(item, "gender", gender)doItemSetAttribute(item, "description", "Contains a "..pokemon..".")doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")doItemSetAttribute(item, "unique", getCreatureName(cid)) --alterado v2.6doPlayerAddItemEx(cid, item, true)doTransformItem(item, pokeballs[btype].on)doPlayerSendTextMessage(cid, 27, "Você achou um novo pokemon, boa jornada.")doPlayerSendTextMessage(cid, 27, "Não esqueca de usar a pokedex neste novo pokemon.")doSendMagicEffect(getThingPos(cid), 29)doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))doSendMagicEffect(getThingPos(cid), 27)doSendMagicEffect(getThingPos(cid), 29)return TRUEend
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

ue só editar aqui
local starterpokes = {
["Torchic"] = {x = 762, y = 659, z = 7},
["Stayru"] = {x = 762, y = 661, z = 7},
["Pikachu"] = {x = 762, y = 663, z = 7},
}
info
Grupo: Campones
Registrado: 26/01/13
Posts: 31
Reputação: 0
Char no Tibia: Nen Tenhu

testando aki
Po eu editei onde vc falou colokei nas posiçoes sertas + quando eu vo pegar o pok da como se fosse uma chest normal . e o poke num ta la dentro !
Se vc tiver tempo baixe o serv e edite como o meu sta e me mande PF
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

Manojl, você precisa colocar a posição DOS BAUS ( veja no map editor ) e veja também se o ID dos baus é 1749...
OBS: O nome dos pokés devem ser DIGITADOS CORRETAMENTE pra funcionar( eu acho '-' )
Editado Agosto 21 por Cleberadm
info
Grupo: Cavaleiro
Registrado: 12/10/09
Posts: 160
Reputação: +19
Gênero: Masculino

UMA VES USEI O SITEMA DE BOX DO POKEMON POR NAO GOSTAR DE BOX+1 +2+3+4+5 ACHO DESNECESSARIO E FACILITA MUITO OS PLAYERS....USEI ELAS PARA FAZER OS INICIAIS VAI NA BOX POE PARA QUANDO USA ELA VIM O POKEMON ESCOLIDO E NA QUEST AI Q VC MOSTROU POE PARA DA O ITENS id = BOX .......
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

info
Grupo: Campones
Registrado: 26/01/13
Posts: 31
Reputação: 0
Char no Tibia: Nen Tenhu
Olá galera estou com uma grande duvida . Como eu fasso para mudar os pokemons iniciais do Serv Gabrieltxu 3.2 eu ja ajeitei o local onde eles ficaram + nao sei como eu fasso para colocar a ball do poke dentro da chest , tipo quero colocar os pokes das foros nas chests + nao sei como fazer isso .
imagen de onde é o local inicial
MINHA ACTION.XML
Rep + pra quem me ajudar !
so pra lebrar o pokemon q esta nas chest é o pikachu , eu quero mudar para os pokes da foto !
se precizar de fornecer algo Só falar !