Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- if pc.getqf("map_"..u) == 0 then
- syschat("W tym miejscu nie zapisałeś jeszcze żadnej pozycji.")
- return
- else
- if not pc.can_warp() then
- syschat("Musisz odczekać 10 sekund po zakończeniu handlu.")
- return
- end
- pc.warp(pc.getqf("map_"..u.."_get_x")*100, pc.getqf("map_"..u.."_get_y")*100)
- end
- end
- if u == 6 then
- local blocked_maps = check_in_list {71, 72, 73, 66, 47, 46, 5, 25, 45, 113, 105, 111, 110, 103, 12, 81, 82, 84, 85}
- if blocked_maps[pc.get_map_index()] or pc.in_dungeon() then
- say_title("Pierścień Teleportacji: Zwój Powrotu")
- say("Na tej mapie nie możesz zapisać swojej pozycji.")
- return
- end
- say_title("Pierścień Teleportacji: Zwój Powrotu")
- say("Mapa na której się znajdujesz: "..locale.map_name[pc.get_map_index()]..".")
- say_reward("Gdzie chcesz zapisać obecną pozycje?")
- local y = {}
- for g = 1, 5 do
- if pc.getqf("map_"..g) == 0 then
- table.insert(y, "Puste Miejsce")
- else
- table.insert(y, locale.map_name[pc.getqf("map_"..g)].." ("..pc.getqf("map_"..g.."_get_local_x")..", "..pc.getqf("map_"..g.."_get_local_y")..")")
- end
- end
- table.insert(y, "Anuluj")
- local b = select_table(y)
- if b == 6 then
- return
- end
- if item.get_socket(0) <= 4 then
- item.set_socket(0, item.get_socket(0)+1)
- end
- pc.setqf("map_"..b, pc.get_map_index())
- pc.setqf("map_"..b.."_get_x", pc.get_x())
- pc.setqf("map_"..b.."_get_y", pc.get_y())
- pc.setqf("map_"..b.."_get_local_x", pc.get_local_x())
- pc.setqf("map_"..b.."_get_local_y", pc.get_local_y())
- syschat("Pozycja została pomyślnie zapisana.")
- end
- ...
Advertisement
Add Comment
Please, Sign In to add comment