Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest reteleport begin
- state start begin
- function GetData()
- return {
- -- map_name, map_index, min, max
- { "Woodlands of Peace", 41, 70, 120 },
- { "Village Valleys", 74, 1, 7 },
- { "Sands of Death", 130, 100, 150 },
- { "Mundo del Agua", 48, 100, 140 },
- { "Frozen Soul", 75, 140, 170 },
- { "Coast of Horror", 76, 140, 170 },
- }
- end
- --Woodlands of Peace
- when login or levelup begin
- a = reteleport.GetData()
- for x = 1, table.getn(a) do
- if pc.get_map_index() == a[x][2] then
- if pc.get_level() < a[x][3] or pc.get_level() > a[x][4] then
- if pc.is_gm() then
- return
- else
- pc.warp(1069700,798500)
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement