Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local starterpokes = {
  2. ["Bulbasaur"] = {x = 76, y = 46, z = 7},
  3. ["Squirtle"] = {x = 78, y = 46, z = 7},
  4. ["Charmander"] = {x = 80, y = 46, z = 7},
  5.  
  6. }
  7.  
  8. local btype = "Icone"
  9.  
  10. function onUse(cid, item, frompos, item2, topos)
  11.  
  12.  
  13. pos = {x=1061, y=1047, z=7}
  14.  
  15.  
  16. local pokemon = ""
  17.  
  18. for a, b in pairs (starterpokes) do
  19. if isPosEqualPos(topos, b) then
  20. pokemon = a
  21. end
  22. end
  23. if pokemon == "" then return true end
  24.  
  25. doPlayerSendTextMessage(cid, 27, "Você recebeu o pokemon escolhido e um kit inicial...Boa Sorte em sua jornada.")
  26.  
  27. addPokeToPlayer(cid, pokemon, 0, nil, btype, true)
  28. doPlayerAddItem(cid, 2392, 30)
  29. doPlayerAddItem(cid, 12349, 100)
  30. doPlayerAddItem(cid, 12347, 30)
  31. doPlayerAddItem(cid, 12344, 10)
  32. doPlayerAddItem(cid, 2152, 50)
  33. setPlayerStorageValue(cid, 8955, 1)
  34.  
  35. doSendMagicEffect(getThingPos(cid), 29)
  36. doTeleportThing(cid,pos)
  37. doSendMagicEffect(getThingPos(cid), 27)
  38. doSendMagicEffect(getThingPos(cid), 29)
  39.  
  40.  
  41. return TRUE
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement