Guest User

Untitled

a guest
Apr 22nd, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.42 KB | None | 0 0
  1.                                ...
  2.                                         if pc.getqf("map_"..u) == 0 then
  3.                                                 syschat("W tym miejscu nie zapisałeś jeszcze żadnej pozycji.")
  4.                                                 return
  5.                                         else
  6.                                                 if not pc.can_warp() then
  7.                                                         syschat("Musisz odczekać 10 sekund po zakończeniu handlu.")
  8.                                                         return
  9.                                                 end
  10.                                                 pc.warp(pc.getqf("map_"..u.."_get_x")*100, pc.getqf("map_"..u.."_get_y")*100)
  11.                                         end
  12.                                 end
  13.                                 if u == 6 then
  14.                                         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}
  15.                                         if blocked_maps[pc.get_map_index()] or pc.in_dungeon() then
  16.                                                 say_title("Pierścień Teleportacji: Zwój Powrotu")
  17.                                                 say("Na tej mapie nie możesz zapisać swojej pozycji.")
  18.                                                 return
  19.                                         end
  20.                                         say_title("Pierścień Teleportacji: Zwój Powrotu")
  21.                                         say("Mapa na której się znajdujesz: "..locale.map_name[pc.get_map_index()]..".")
  22.                                         say_reward("Gdzie chcesz zapisać obecną pozycje?")
  23.                                         local y = {}
  24.                                         for g = 1, 5 do
  25.                                                 if pc.getqf("map_"..g) == 0 then
  26.                                                         table.insert(y, "Puste Miejsce")
  27.                                                 else
  28.                                                         table.insert(y, locale.map_name[pc.getqf("map_"..g)].." ("..pc.getqf("map_"..g.."_get_local_x")..", "..pc.getqf("map_"..g.."_get_local_y")..")")
  29.                                                 end
  30.                                         end
  31.                                         table.insert(y, "Anuluj")
  32.                                         local b = select_table(y)
  33.                                         if b == 6 then
  34.                                                 return
  35.                                         end
  36.                                         if item.get_socket(0) <= 4 then
  37.                                                 item.set_socket(0, item.get_socket(0)+1)
  38.                                         end
  39.                                         pc.setqf("map_"..b, pc.get_map_index())
  40.                                         pc.setqf("map_"..b.."_get_x", pc.get_x())
  41.                                         pc.setqf("map_"..b.."_get_y", pc.get_y())
  42.                                         pc.setqf("map_"..b.."_get_local_x", pc.get_local_x())
  43.                                         pc.setqf("map_"..b.."_get_local_y", pc.get_local_y())
  44.                                         syschat("Pozycja została pomyślnie zapisana.")
  45.                                 end
  46.                         ...
Advertisement
Add Comment
Please, Sign In to add comment