Felipinho

Untitled

Mar 7th, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. local config = {
  2. pos65+ = {x=120, y=190, z=7}, -- a pos que será teleportdo quando for lvl 65 +
  3. pos65- = {x=158, y=190, z=7}, -- a pos que será teleportdo quando for lvl 65-
  4. s = 38102, -- nao mexa
  5. level1 = 65, -- o level que precisa pra ir na pos
  6. }
  7. -- End configs --
  8. function onAdvance(cid, newLevel, oldLevel)
  9. if getPlayerStorageValue(cid,config.s) then
  10. if getPlayerLevel(cid) >= config.level1 then
  11. doTeleportThing(cid,config.pos65+)
  12. setPlayerStorageValue(cid,config.s,1)
  13. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Seja bem vindo ao o templo dos deuses")
  14. return true
  15. end
  16. if getPlayerLevel(cid) <= config.lvl1 then
  17. doTeleportThing(cid,config.pos65-)
  18. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você não é um level 65 por isso você não foi para o templo")
  19. end
  20. return true
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment