Galera, fui criar outro lugar para account manager, e para os player escolher o 1° pokemon
Dai eu fui criar outro e nao consigo por pra ele pegar o 1 pokemon
Tipo eu clico no Bau dai faz e abri
Base:
PDA (By Bolz)
Script:
-- Pokes iniciais ---
local starterpokes = {
["Charmander"] = {x = 45, y = 71, z = 8},
["Cyndaquil"] = {x = 55, y = 71, z = 8},
["Squirtle"] = {x = 48, y = 71, z = 8},
["Totodile"] = {x = 51, y = 71, z = 8},
["Bulbasaur"] = {x = 53, y = 71, z = 8},
["Chikorita"] = {x = 55, y = 71, z = 8},
}
local btype = "normal"
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) > 1 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 = 250
doPlayerAddLevel(cid, 9)
doPlayerAddItem(cid, 12344, 10 )
doPlayerAddItem(cid, 12345, 100 )
doPlayerAddItem(cid, 2392, 20)
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, "unique", getCreatureName(cid)) --alterado v1.6
doPlayerAddItemEx(cid, item, true)
doTransformItem(item, pokeballs[btype].on)
doPlayerSendTextMessage(cid, 27, "Você tem o seu primeiro pokemon! Você também recebeu algumas pokeballs para ajudá-lo em sua jornada.")
doPlayerSendTextMessage(cid, 27, "Não se esqueça de usar a sua pokedex em todos os Pokémon descobertos, você poderá ganhar OUTFITS !!")
doSendMagicEffect(getThingPos(cid), 29)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getThingPos(cid), 27)
doSendMagicEffect(getThingPos(cid), 29)
return TRUE
end