Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Script created by Kamil Piekarz © 2015 KPIT.eu
- Publikacja objęta jest prawem autorskim. Wszelkie prawa zastrzeżone.
- Kopiowanie i rozpowszechnianie zabronione.
- Kod jest własnością intelektualną KPIT.eu
- ]]--
- quest teleport begin
- state start begin
- when login begin
- cmdchat("Teleport index"..q.getcurrentquestindex())
- end
- when button or info begin
- local teleport2 = tonumber(input(cmdchat("Teleport GetInfo")))
- local teleport = tonumber(teleport2+1)
- local xy = { -- lvl przep id ilość
- [1] = {"Jinno M1 ", 959900, 269200, 0, 0, 0},
- [2] = {"Shinsoo M1 ", 474300, 954800, 0, 0, 0},
- [3] = {"Jinno M2 ", 863900, 246000, 0, 0, 0},
- [4] = {"Shinsoo M2 ", 353100, 882900, 0, 0, 0},
- [5] = {"Dolina Orków ", 332800, 745400, 0, 0, 0},
- [6] = {"Pustynia Yongbi ", 296800, 547000, 0, 0, 0},
- [7] = {"Świątynia Hwang ", 553600, 143600, 0, 0, 0},
- [8] = {"Góra Sohan ", 436400, 215400, 0, 0, 0},
- [9] = {"Las ", 303800, 26800, 0, 0, 0},
- [10] = {"Ognista Ziemia ", 599700, 757500, 0, 0, 0},
- [11] = {"Loch Pająków ", 704100, 464100, 0, 0, 0},
- [12] = {"Czerwony Las ", 1119900, 70800, 0, 0, 0},
- [13] = {"Atlantyda ", 241300, 1275400, 75, 0, 0},
- [14] = {"Legendy ", 44448500, 44464300, 0, 0, 0},
- [15] = {"Expowiska 100 ", 44448500, 44464300, 100, 0, 0},
- [16] = {"Radom ", 44448500, 44464300, 0, 0, 0},
- [17] = {"Mapa Metin ", 44448500, 44464300, 0, 0, 0},
- [18] = {"Dungeony ", 44448500, 44464300, 0, 0, 0},
- [19] = {"Loch Małp ", 44448500, 44464300, 0, 0, 0},
- [101] = {"Wyspa Nag ", 21276600, 21220600, 90, 201192, 1},
- [102] = {"Pradawna Dolina ", 31393800, 31437700, 100, 201193, 1},
- [103] = {"Kraina Mutantów ", 41581600, 41451100, 120, 201194, 1},
- [104] = {"Baśńowa Kraina ", 51541800, 51543700, 140, 201195, 1},
- [105] = {"Mistyczna Dolina ", 61624100, 61760600, 160, 201196, 1},
- [106] = {"Mroczna Otchłań ", 71802100, 71802100, 180, 201197, 1},
- [107] = {"Magiczna Wioska ", 81845700, 81842800, 200, 201198, 1},
- [108] = {"StuMilowy Las ", 94900, 100072700, 220, 201199, 1},
- [109] = {"Przełęcz ", 888905500, 888973000, 240, 201200, 1},
- }
- local lvl = xy[teleport][4]
- local map_name = xy[teleport][1]
- if pc.count_item(xy[teleport][5]) >= xy[teleport][6] then
- if pc.get_level() < xy[teleport][4] then
- syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Teleportacja na "..map_name.." możliwa od : "..lvl.." lvl")
- else
- if teleport == 15 then
- local mapName = {}
- for mapNameFor = 101, 109 do
- table.insert(mapName, xy[mapNameFor][1])
- end
- table.insert(mapName, "Anuluj")
- local s = select_table(mapName)
- local ss = s+100
- if s >= 1 and s <= (table.getn(mapName)-1) then
- if s == 0 then
- say("Tutaj nie ma żadnej mapy.")
- say("Wybierz inną pozycję.")
- else
- syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Lecisz na: "..xy[ss][1])
- pc.warp(xy[ss][2], xy[ss][3])
- pc.remove_item(xy[ss][5], xy[ss][6])
- end
- end
- else
- local map_name = xy[teleport][1]
- syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Lecisz na: "..map_name)
- pc.warp(xy[teleport][2], xy[teleport][3])
- pc.remove_item(xy[teleport][5], xy[teleport][6])
- end
- end
- else
- if pc.get_level() < xy[teleport][4] then
- syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Teleportacja na "..map_name.." możliwa od : "..lvl.." lvl")
- else
- syschat("|cFF00ff33[Teleportacja]|h|cFFFFFFFF|h Potrzebna ci "..item_name(xy[teleport][5]).." w Ekwipunku. ")
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement