Como que eu coloco o templo que o player vai ser teleportado depois de pegar o bau inicial eu uso o pda sem level??
a linha é essa correto?
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))
Script:
local starterpokes = {
["Chikorita"] = {x = 1058, y = 897, z = 4},
["Totodile"] = {x = 1058, y = 900, z = 4},
["Cyndaquil"] = {x = 1058, y = 903, z = 4},
["Bulbassauro"] = {x = 1063, y = 897, z = 4},
["Rattata"] = {x = 1063, y = 900, z = 4},
["Caterpie"] = {x = 1063, y = 903, z = 4},
}
local btype = "normal"
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) > 5 then --alterado v1.3
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
local gender = getRandomGenderByName(pokemon)
local happy = 180
doPlayerAddItem(cid, 2394, 10)
local item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", pokemon)
doItemSetAttribute(item, "hp", 1)
doItemSetAttribute(item, "happy", happy)
doItemSetAttribute(item, "gender", gender)
doItemSetAttribute(item, "description", "Contains a "..pokemon..".")
doItemSetAttribute(item, "fakedesc", "Contains a "..pokemon..".")
doItemSetAttribute(item, "firstpoke", getCreatureName(cid))
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, pokeballs[btype].on)
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!")
doSendMagicEffect(getThingPos(cid), 29)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))
doSendMagicEffect(getThingPos(cid), 27)
doSendMagicEffect(getThingPos(cid), 29)
return TRUE
end
You have to edit Temple coordiades in the map editor in the MAP menu > edit towns
Can somebody help me... my golden arena doesnt work and console dont display any errors :S









info
Grupo: Visconde
Registrado: 09/01/12
Posts: 325
Reputação: +44
Gênero: Masculino
Galera posso postar um Servidor aki que eu peguei daki e editei e colokei mapa pda??