Qual a posição que vai ser teleportado?
Troca por isso:
local city_tp = {x = 500, y = 400, z = 7} -- Position tp
local starterpokes = {
["Cyndaquil"] = {x = 951, y = 389, z = 7},
["Charmander"] = {x = 953, y = 389, z = 7},
["Totodile"] = {x = 956, y = 389, z = 7},
["Squirtle"] = {x = 958, y = 389, z = 7},
["Chikorita"] = {x = 961, y = 389, z = 7},
["Bulbasaur"] = {x = 963, y = 389, z = 7},
}
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, "Talk to the Prof. Robert to choose your beginner city first!")
return true
end --alterado v1.9 \/
doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.")
doPlayerSendTextMessage(cid, 27, "Don't forget to use your pokedex on every undiscovered pokemon!")
addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
doPlayerAddItem(cid, 2392, 10)
doPlayerAddItem(cid, 2152, 10)
doPlayerAddItem(cid, 12344, 10)
doSendMagicEffect(getThingPos(cid), 29)
doTeleportThing(cid, city_tp)
doSendMagicEffect(getThingPos(cid), 27)
doSendMagicEffect(getThingPos(cid), 29)
return TRUE
end
A primeira linha você coloca as coordenadas pra ond vai ser teleportado.





info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel
Vim aqui pra pedir uma coisa se possivel !!
eu queria por tp por bau.
Script
local starterpokes = {
["Cyndaquil"] = {x = 951, y = 389, z = 7},
["Charmander"] = {x = 953, y = 389, z = 7},
["Totodile"] = {x = 956, y = 389, z = 7},
["Squirtle"] = {x = 958, y = 389, z = 7},
["Chikorita"] = {x = 961, y = 389, z = 7},
["Bulbasaur"] = {x = 963, y = 389, z = 7},
}
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, "Talk to the Prof. Robert to choose your beginner city first!")
return true
end --alterado v1.9 \/
doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.")
doPlayerSendTextMessage(cid, 27, "Don't forget to use your pokedex on every undiscovered pokemon!")
addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
doPlayerAddItem(cid, 2392, 10)
doPlayerAddItem(cid, 2152, 10)
doPlayerAddItem(cid, 12344, 10)
doSendMagicEffect(getThingPos(cid), 29)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getThingPos(cid), 27)
doSendMagicEffect(getThingPos(cid), 29)
return TRUE
end
Obs: como todo mundo sabe o pda tem o system de npc e ele ta bugado e eu queria entao troca e por tp em bau sem precisa escolher npc so ir la escolhe seu pokemon clica no bau pronto ja e teleportado !!
Rep+