Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local starterpokes = {
- ["Bulbasaur"] = {x = 76, y = 46, z = 7},
- ["Squirtle"] = {x = 78, y = 46, z = 7},
- ["Charmander"] = {x = 80, y = 46, z = 7},
- }
- local btype = "Icone"
- function onUse(cid, item, frompos, item2, topos)
- pos = {x=1061, y=1047, z=7}
- local pokemon = ""
- for a, b in pairs (starterpokes) do
- if isPosEqualPos(topos, b) then
- pokemon = a
- end
- end
- if pokemon == "" then return true end
- doPlayerSendTextMessage(cid, 27, "Você recebeu o pokemon escolhido e um kit inicial...Boa Sorte em sua jornada.")
- addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
- doPlayerAddItem(cid, 2392, 30)
- doPlayerAddItem(cid, 12349, 100)
- doPlayerAddItem(cid, 12347, 30)
- doPlayerAddItem(cid, 12344, 10)
- doPlayerAddItem(cid, 2152, 50)
- setPlayerStorageValue(cid, 8955, 1)
- doSendMagicEffect(getThingPos(cid), 29)
- doTeleportThing(cid,pos)
- doSendMagicEffect(getThingPos(cid), 27)
- doSendMagicEffect(getThingPos(cid), 29)
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement