Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. --[[
  2. Script created by Kamil Piekarz © 2015 KPIT.eu
  3. Publikacja objęta jest prawem autorskim. Wszelkie prawa zastrzeżone.
  4. Kopiowanie i rozpowszechnianie zabronione.
  5. Kod jest własnością intelektualną KPIT.eu
  6. ]]--
  7.  
  8. quest teleport begin
  9. state start begin
  10. when login begin
  11. cmdchat("Teleport index"..q.getcurrentquestindex())
  12. end
  13. when button or info begin
  14. local teleport2 = tonumber(input(cmdchat("Teleport GetInfo")))
  15. local teleport = tonumber(teleport2+1)
  16. local xy = { -- lvl przep id ilość
  17. [1] = {"Jinno M1 ", 959900, 269200, 0, 0, 0},
  18. [2] = {"Shinsoo M1 ", 474300, 954800, 0, 0, 0},
  19. [3] = {"Jinno M2 ", 863900, 246000, 0, 0, 0},
  20. [4] = {"Shinsoo M2 ", 353100, 882900, 0, 0, 0},
  21. [5] = {"Dolina Orków ", 332800, 745400, 0, 0, 0},
  22. [6] = {"Pustynia Yongbi ", 296800, 547000, 0, 0, 0},
  23. [7] = {"Świątynia Hwang ", 553600, 143600, 0, 0, 0},
  24. [8] = {"Góra Sohan ", 436400, 215400, 0, 0, 0},
  25. [9] = {"Las ", 303800, 26800, 0, 0, 0},
  26. [10] = {"Ognista Ziemia ", 599700, 757500, 0, 0, 0},
  27. [11] = {"Loch Pająków ", 704100, 464100, 0, 0, 0},
  28. [12] = {"Czerwony Las ", 1119900, 70800, 0, 0, 0},
  29. [13] = {"Atlantyda ", 241300, 1275400, 75, 0, 0},
  30. [14] = {"Legendy ", 44448500, 44464300, 0, 0, 0},
  31. [15] = {"Expowiska 100 ", 44448500, 44464300, 100, 0, 0},
  32. [16] = {"Radom ", 44448500, 44464300, 0, 0, 0},
  33. [17] = {"Mapa Metin ", 44448500, 44464300, 0, 0, 0},
  34. [18] = {"Dungeony ", 44448500, 44464300, 0, 0, 0},
  35. [19] = {"Loch Małp ", 44448500, 44464300, 0, 0, 0},
  36.  
  37.  
  38. [101] = {"Wyspa Nag ", 21276600, 21220600, 90, 201192, 1},
  39. [102] = {"Pradawna Dolina ", 31393800, 31437700, 100, 201193, 1},
  40. [103] = {"Kraina Mutantów ", 41581600, 41451100, 120, 201194, 1},
  41. [104] = {"Baśńowa Kraina ", 51541800, 51543700, 140, 201195, 1},
  42. [105] = {"Mistyczna Dolina ", 61624100, 61760600, 160, 201196, 1},
  43. [106] = {"Mroczna Otchłań ", 71802100, 71802100, 180, 201197, 1},
  44. [107] = {"Magiczna Wioska ", 81845700, 81842800, 200, 201198, 1},
  45. [108] = {"StuMilowy Las ", 94900, 100072700, 220, 201199, 1},
  46. [109] = {"Przełęcz ", 888905500, 888973000, 240, 201200, 1},
  47.  
  48.  
  49. }
  50. local lvl = xy[teleport][4]
  51. local map_name = xy[teleport][1]
  52. if pc.count_item(xy[teleport][5]) >= xy[teleport][6] then
  53. if pc.get_level() < xy[teleport][4] then
  54. syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Teleportacja na "..map_name.." możliwa od : "..lvl.." lvl")
  55. else
  56. if teleport == 15 then
  57. local mapName = {}
  58. for mapNameFor = 101, 109 do
  59. table.insert(mapName, xy[mapNameFor][1])
  60. end
  61. table.insert(mapName, "Anuluj")
  62.  
  63. local s = select_table(mapName)
  64.  
  65. local ss = s+100
  66. if s >= 1 and s <= (table.getn(mapName)-1) then
  67. if s == 0 then
  68. say("Tutaj nie ma żadnej mapy.")
  69. say("Wybierz inną pozycję.")
  70. else
  71. syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Lecisz na: "..xy[ss][1])
  72. pc.warp(xy[ss][2], xy[ss][3])
  73. pc.remove_item(xy[ss][5], xy[ss][6])
  74. end
  75. end
  76. else
  77. local map_name = xy[teleport][1]
  78. syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Lecisz na: "..map_name)
  79. pc.warp(xy[teleport][2], xy[teleport][3])
  80. pc.remove_item(xy[teleport][5], xy[teleport][6])
  81. end
  82. end
  83. else
  84. if pc.get_level() < xy[teleport][4] then
  85. syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Teleportacja na "..map_name.." możliwa od : "..lvl.." lvl")
  86. else
  87. syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Potrzebna ci "..item_name(xy[teleport][5]).." w Ekwipunku. ")
  88. end
  89. end
  90. end
  91. end
  92. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement