Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- pos65+ = {x=120, y=190, z=7}, -- a pos que será teleportdo quando for lvl 65 +
- pos65- = {x=158, y=190, z=7}, -- a pos que será teleportdo quando for lvl 65-
- s = 38102, -- nao mexa
- level1 = 65, -- o level que precisa pra ir na pos
- }
- -- End configs --
- function onAdvance(cid, newLevel, oldLevel)
- if getPlayerStorageValue(cid,config.s) then
- if getPlayerLevel(cid) >= config.level1 then
- doTeleportThing(cid,config.pos65+)
- setPlayerStorageValue(cid,config.s,1)
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Seja bem vindo ao o templo dos deuses")
- return true
- end
- if getPlayerLevel(cid) <= config.lvl1 then
- doTeleportThing(cid,config.pos65-)
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você não é um level 65 por isso você não foi para o templo")
- end
- return true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment