Tipologie server:PvM
*Resursă folosită:nu e pe aicea
*ServerFiles utilizat:nu e pe aicea
*Syserr:
Poză:

*Detalii suplimentare:incerc sa editez acest quest si cand dau ./qc imi apare eroare din imiagine va rog daca puteti sa ma ajutati, am pus si questu care vreau sa il editez si sa ii dau ./qc dar nu merge. Va multumesc Frumos.
--[[
-- Init - The Teleport Ring Class
]]
TeleportRing = {};
TeleportRing.ReturnData = function()
if (TeleportRing.data == nil) then
TeleportRing.data = {
{
["TeleportMapName"] = "Sate (Nivel 1~25)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Pyungmoo (Nivel 1~25)", ["x"] = 959600, ["y"] = 269700},
{["OtherIndexName"] = "Bakra (Nivel 24~39)", ["x"] = 863800, ["y"] = 246000},
{["OtherIndexName"] = "Joan (Nivel 1~25)", ["x"] = 63200, ["y"] = 166700},
{["OtherIndexName"] = "Bokjung (Nivel 24~39)", ["x"] = 145700, ["y"] = 239800},
{["OtherIndexName"] = "Yongan (Nivel 1~25)", ["x"] = 473900, ["y"] = 954600},
{["OtherIndexName"] = "Jayang (Nivel 24~39)", ["x"] = 352300, ["y"] = 882700}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Temniþele Maimuþelor (Nivel: 25~60)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Temniþa Maimuþei(Uºor) (Nivel 25~35)", ["x"] = 980400, ["y"] = 471600},
{["OtherIndexName"] = "Temniþa Maimuþei(Normalã) (Nivel 35~40)", ["x"] = 190800, ["y"] = 691400},
{["OtherIndexName"] = "Temniþa Maimuþei(Expert) (Nivel 45~55)", ["x"] = 189500, ["y"] = 771100}},
["TeleportLevelCheck"] = true,
["TeleportLevel"] = {20, 65},
["TeleportItemCheck"] = false,
["TeleportItems"] = {71095, 1}
},
--{
-- ["TeleportMapName"] = "Biolog & Gaya",
-- ["TeleportHasOtherIndexs"] = true,
-- ["TeleportTheOtherIndexes"] = {
-- {["OtherIndexName"] = "Pescar", ["x"] = 964300, ["y"] = 252500},
-- {["OtherIndexName"] = "Biologul Chaegirab", ["x"] = 950800, ["y"] = 233500},
-- {["OtherIndexName"] = "Gaya", ["x"] = 951900, ["y"] = 286100},
-- ["TeleportLevelCheck"] = false,
-- ["TeleportItemCheck"] = false
--
--},
{
["TeleportMapName"] = "Valea Seungryong (Nivel 39~49)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Orci(Mijloc)(49-59)", ["x"] = 332700, ["y"] = 745600},
{["OtherIndexName"] = "Metinul Umbrei 1/Insulã dreapta(Metin Lv.45)", ["x"] = 390500, ["y"] = 715700},
{["OtherIndexName"] = "Metinul Umbrei 2/Insulã dreapta sus(Metin Lv.45)", ["x"] = 392300, ["y"] = 678800},
{["OtherIndexName"] = "Metinul Sufletului/Insulã stânga(Metin Lv.40)", ["x"] = 277200, ["y"] = 735100},
{["OtherIndexName"] = "Metine combinate/Insulã stânga jos(Metin Lv.40)", ["x"] = 279700, ["y"] = 794000},
{["OtherIndexName"] = "Orci(Sfârºit)(Nivel 40+)", ["x"] = 284200, ["y"] = 809600}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false,
},
{
["TeleportMapName"] = "Deºertul Yongbi (Nivel 29~59)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Deºert(Mijloc)(29~59)", ["x"] = 296300, ["y"] = 547500},
{["OtherIndexName"] = "Metinul Sufletului/Stânga jos(Metin Lv.40)", ["x"] = 224800, ["y"] = 606600},
{["OtherIndexName"] = "Metinul Umbrei/Dreapta jos(Metin Lv.45)", ["x"] = 333000, ["y"] = 622200},
{["OtherIndexName"] = "Metinul Puterii/Dreapta sus(Metin Lv.50)", ["x"] = 327600, ["y"] = 517000}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false,
},
{
["TeleportMapName"] = "Turnul Demonilor - Cat. Diavolului",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Turnul Demonilor (Nivel 49~59)", ["x"] = 590400, ["y"] = 110500},
{["OtherIndexName"] = "Catacombele Diavolului (Nivel 75+)", ["x"] = 591900, ["y"] = 100200}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Muntele Sohan - Turnul lui Nemere",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Muntele Sohan Mijloc (Nivel 49~69)", ["x"] = 436200, ["y"] = 215300},
{["OtherIndexName"] = "Metinul Diavolului/Jos Mijloc(Lv. 55)", ["x"] = 436100, ["y"] = 275600},
{["OtherIndexName"] = "Metinul Diavolului/Stânga Mijloc(Lv. 55)", ["x"] = 400800, ["y"] = 234700},
{["OtherIndexName"] = "Metinul Morþi/Dreapta Jos(Lv. 65)", ["x"] = 493000, ["y"] = 274500},
{["OtherIndexName"] = "Turnul lui Nemere (Nivel 90+)", ["x"] = 432100, ["y"] = 164800}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Þara de Foc - Purg. lui Razador",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 605100, ["y"] = 685900},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 615700, ["y"] = 650800},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 650000, ["y"] = 655100},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 681500, ["y"] = 664000},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 722700, ["y"] = 662000},
{["OtherIndexName"] = "Purg. lui Razador (Nivel 90+)", ["x"] = 599300, ["y"] = 707200}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Temniþele Pãianjenilor V1 (Nivel: 35~55)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "V1(Început)(Nivel 34~54)", ["x"] = 59800, ["y"] = 497300},
{["OtherIndexName"] = "V1(Sfârºit)(34~54)", ["x"] = 91900, ["y"] = 525400}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {25, 75},
--["TeleportItemCheck"] = false,
--["TeleportItems"] = {71095, 1}
},
{
["TeleportMapName"] = "Temniþele Pãianjenilor V2 (Nivel: 55~75)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "V2(Început) (Nivel 55~75)", ["x"] = 665600, ["y"] = 435200},
{["OtherIndexName"] = "V2(Sfârºit) (Nivel 55~75)", ["x"] = 704100, ["y"] = 521900},
{["OtherIndexName"] = "Spider Dungeon 3 (Nivel 65+)", ["x"] = 97600, ["y"] = 571100},
{["OtherIndexName"] = "SD3(Sfârºit) (Nivel 65+)", ["x"] = 68800, ["y"] = 610700}},
["TeleportLevelCheck"] = false,
["TeleportLevel"] = {35, 75},
["TeleportItemCheck"] = false,
["TeleportItems"] = {71095, 1}
},
--{
-- ["TeleportMapName"] = "Tãrâmul Giganþilor (Nivel 69~79)",
-- ["TeleportHasOtherIndexs"] = false,
-- ["TeleportLevelCheck"] = false,
-- ["TeleportItemCheck"] = false,
-- ["x"] = 828100,
-- ["y"] = 763400
--},
{
["TeleportMapName"] = "Regiunile de Pãdure(Nivel: 55~100)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Pãdurea Fantomã (Nivel 59~69)", ["x"] = 288700, ["y"] = 5700},
{["OtherIndexName"] = "Metin Pung-Ma/Curba jos(Lv. 75)", ["x"] = 299300, ["y"] = 33600},
{["OtherIndexName"] = "Metin Ma-An/Curba(Lv. 80)", ["x"] = 296400, ["y"] = 13400},
{["OtherIndexName"] = "Metin Ma-An/Curba sus(Lv. 80)", ["x"] = 324600, ["y"] = 3600},
{["OtherIndexName"] = "Pãdurea Roºie (Nivel 69-89)", ["x"] = 1119900, ["y"] = 70800},
{["OtherIndexName"] = "Metin Tu-Young/început(Lv. 85)", ["x"] = 1086400, ["y"] = 69300},
{["OtherIndexName"] = "Metin Tu-Young/început 2(Lv. 85)", ["x"] = 1061700, ["y"] = 64600},
{["OtherIndexName"] = "Metin Jeon-Un/platou sus(Lv. 90)", ["x"] = 1060400, ["y"] = 26400},
{["OtherIndexName"] = "Metin Jeon-Un/curba(Lv. 90)", ["x"] = 1109600, ["y"] = 30900},
{["OtherIndexName"] = "Metin Jeon-Un/sfârºit(Lv. 90)", ["x"] = 1118100, ["y"] = 8600}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {55, 100},
--["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "V4 (Nivel 75+)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "V4 (Început) (Nivel 75+)", ["x"] = 153600, ["y"] = 1203200},
{["OtherIndexName"] = "V4 (Sfârºit)(Nivel 75+)", ["x"] = 181500, ["y"] = 1220500}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {75, 105},
--["TeleportItemCheck"] = false,
--["TeleportItems"] = {30190, 1},
},
{
["TeleportMapName"] = "Regiunile Beta (Nivel: 90~105)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Peninsulã (Nivel 90+)", ["x"] = 1024000, ["y"] = 1664000},
{["OtherIndexName"] = "Metinul Furiei/mijloc(Lv. 100)", ["x"] = 1125800, ["y"] = 1737200},
{["OtherIndexName"] = "Metinul Furiei/sus(Lv. 100)", ["x"] = 1099300, ["y"] = 1687200},
{["OtherIndexName"] = "Metinul Nenorocirlor/platou(Lv. 105)", ["x"] = 1153900, ["y"] = 1711900},
{["OtherIndexName"] = "Metinul Nenorocirlor/stânga(Lv. 105)", ["x"] = 1131500, ["y"] = 1703300},
{["OtherIndexName"] = "Metinul Nenorocirlor/mijloc stânga(Lv. 105)", ["x"] = 1048600, ["y"] = 1732300},
{["OtherIndexName"] = "Nephrite (Nivel 90+)", ["x"] = 1049600, ["y"] = 1510400},
{["OtherIndexName"] = "Metinul Cãrbunilor/jos(Lv. 95)", ["x"] = 1104400, ["y"] = 1640900},
{["OtherIndexName"] = "Metinul Cãrbunilor/jos(Lv. 95)", ["x"] = 1103000, ["y"] = 1581000},
{["OtherIndexName"] = "Metinul Tristeþii/jos(Lv. 95)", ["x"] = 1116000, ["y"] = 1630300},
{["OtherIndexName"] = "Metinul Tristeþii/jos(Lv. 95)", ["x"] = 1101300, ["y"] = 1561000},
{["OtherIndexName"] = "Thunder (Nivel 90+)", ["x"] = 1126400, ["y"] = 1510400},
{["OtherIndexName"] = "Metinul Vanitãþii/jos(Lv. 100)", ["x"] = 1148700, ["y"] = 1648300},
{["OtherIndexName"] = "Metinul Vanitãþii/jos stânga(Lv. 100)", ["x"] = 1155000, ["y"] = 1627400},
{["OtherIndexName"] = "Metinul Furiei/jos stânga(Lv. 100)", ["x"] = 1149400, ["y"] = 1605900},
{["OtherIndexName"] = "Metinul Furiei/mijloc stânga(Lv. 100)", ["x"] = 1148800, ["y"] = 1578900},
{["OtherIndexName"] = "Metinul Furiei/mijloc(Lv. 100)", ["x"] = 1213000, ["y"] = 1552900},
{["OtherIndexName"] = "Metinul Vanitãþii/mijloc(Lv. 100)", ["x"] = 1190400, ["y"] = 1574500},
{["OtherIndexName"] = "Guatama (Nivel 90+)", ["x"] = 1177600, ["y"] = 1664000},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1218100, ["y"] = 1692100},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1207700, ["y"] = 1690100},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1228500, ["y"] = 1748100},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1247700, ["y"] = 1743900},
{["OtherIndexName"] = "Metinul Rãutãþi/mijloc(Lv. 105)", ["x"] = 1252700, ["y"] = 1691600},
{["OtherIndexName"] = "Metinul Rãutãþi/platou(Lv. 105)", ["x"] = 1291500, ["y"] = 1695400}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {90, 105},
--["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Templul Ochao (Nivel 95+)",
["TeleportHasOtherIndexs"] = false,
["TeleportLevelCheck"] = true,
["TeleportLevel"] = {90, 105},
["TeleportItemCheck"] = false,
["x"] = 853700,
["y"] = 1416400
},
{
["TeleportMapName"] = "Desertul Suferintei (Nivel 95+)",
["TeleportHasOtherIndexs"] = false,
["TeleportLevelCheck"] = true,
["TeleportLevel"] = {90, 105},
["TeleportItemCheck"] = false,
["x"] = 640000,
["y"] = 2252800
},
};
end
return TeleportRing.data;
end
TeleportRing.TeleportIsLevelCheck = function(index)
local data = TeleportRing.ReturnData();
return data[index]["TeleportLevelCheck"];
end
TeleportRing.TeleportIsItemsCheck = function(index)
local data = TeleportRing.ReturnData();
return data[index]["TeleportItemCheck"];
end
TeleportRing.TeleportMapHasOtherIndex = function(index)
local data = TeleportRing.ReturnData();
return data[index]["TeleportHasOtherIndexs"];
end
TeleportRing.InsertWindow = function()
local data = TeleportRing.ReturnData();
local window = {};
for index in data do
table.insert(window, data[index]["TeleportMapName"]);
end
table.insert(window, "Renunþã");
return window;
end
TeleportRing.DisplayOtherIndexWindow = function(WinIndex)
local data = TeleportRing.ReturnData();
local OtherWindow = {};
for index in data[WinIndex]["TeleportTheOtherIndexes"] do
table.insert(OtherWindow, data[WinIndex]["TeleportTheOtherIndexes"][index]["OtherIndexName"]);
end
table.insert(OtherWindow, "Renunþã");
return OtherWindow;
end
TeleportRing.isBetweenLevel = function(index)
local data = TeleportRing.ReturnData();
local pLevel = pc.get_level();
return pLevel >= data[index]["TeleportLevel"][1] and pLevel <= data[index]["TeleportLevel"][2];
end
TeleportRing.hasItemNeeded = function(index)
local data = TeleportRing.ReturnData();
return pc.count_item(data[index]["TeleportItems"][1]) >= data[index]["TeleportItems"][2];
end
TeleportRing.MainWindow = function(iVnum)
local data = TeleportRing.ReturnData();
local InsertedWindowTable = TeleportRing.InsertWindow();
say_title(string.format("%s:", item_name(iVnum)))
local FirstWindow = select_table(InsertedWindowTable);
if (FirstWindow == table.getn(InsertedWindowTable)) then
return false;
else
say_title(string.format("%s:", item_name(iVnum)))
if TeleportRing.TeleportIsLevelCheck(FirstWindow) then
if not TeleportRing.isBetweenLevel(FirstWindow) then
say(string.format("Nivelul tãu trebuie sã fie cuprins între %d ºi %d pentru[ENTER]a putea intra în aceastã mapã.", data[FirstWindow]["TeleportLevel"][1], data[FirstWindow]["TeleportLevel"][2]))
return false;
end
end
if TeleportRing.TeleportIsItemsCheck(FirstWindow) then
if not TeleportRing.hasItemNeeded(FirstWindow) then
say(string.format("Trebuie sa deþi x%d - %s pentru[ENTER]a putea intra în aceastã mapã.", data[FirstWindow]["TeleportItems"][2], item_name(data[FirstWindow]["TeleportItems"][1])))
end
end
if TeleportRing.TeleportMapHasOtherIndex(FirstWindow) then
local OtherInsertedWindowTable = TeleportRing.DisplayOtherIndexWindow(FirstWindow);
local otherWind = select_table(OtherInsertedWindowTable);
if (otherWind == table.getn(OtherInsertedWindowTable)) then
return false;
else
if data[FirstWindow]["TeleportItemCheck"] then
pc.remove_item(data[FirstWindow]["TeleportItems"][1], data[FirstWindow]["TeleportItems"][2]);
end
return pc.warp(data[FirstWindow]["TeleportTheOtherIndexes"][otherWind]["x"], data[FirstWindow]["TeleportTheOtherIndexes"][otherWind]["y"]);
end
end
if data[FirstWindow]["TeleportItemCheck"] then
pc.remove_item(data[FirstWindow]["TeleportItems"][1], data[FirstWindow]["TeleportItems"][2]);
end
return pc.warp(data[FirstWindow]["x"], data[FirstWindow]["y"]);
end
end
-- Init - The Teleport Ring Class
]]
TeleportRing = {};
TeleportRing.ReturnData = function()
if (TeleportRing.data == nil) then
TeleportRing.data = {
{
["TeleportMapName"] = "Sate (Nivel 1~25)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Pyungmoo (Nivel 1~25)", ["x"] = 959600, ["y"] = 269700},
{["OtherIndexName"] = "Bakra (Nivel 24~39)", ["x"] = 863800, ["y"] = 246000},
{["OtherIndexName"] = "Joan (Nivel 1~25)", ["x"] = 63200, ["y"] = 166700},
{["OtherIndexName"] = "Bokjung (Nivel 24~39)", ["x"] = 145700, ["y"] = 239800},
{["OtherIndexName"] = "Yongan (Nivel 1~25)", ["x"] = 473900, ["y"] = 954600},
{["OtherIndexName"] = "Jayang (Nivel 24~39)", ["x"] = 352300, ["y"] = 882700}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Temniþele Maimuþelor (Nivel: 25~60)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Temniþa Maimuþei(Uºor) (Nivel 25~35)", ["x"] = 980400, ["y"] = 471600},
{["OtherIndexName"] = "Temniþa Maimuþei(Normalã) (Nivel 35~40)", ["x"] = 190800, ["y"] = 691400},
{["OtherIndexName"] = "Temniþa Maimuþei(Expert) (Nivel 45~55)", ["x"] = 189500, ["y"] = 771100}},
["TeleportLevelCheck"] = true,
["TeleportLevel"] = {20, 65},
["TeleportItemCheck"] = false,
["TeleportItems"] = {71095, 1}
},
--{
-- ["TeleportMapName"] = "Biolog & Gaya",
-- ["TeleportHasOtherIndexs"] = true,
-- ["TeleportTheOtherIndexes"] = {
-- {["OtherIndexName"] = "Pescar", ["x"] = 964300, ["y"] = 252500},
-- {["OtherIndexName"] = "Biologul Chaegirab", ["x"] = 950800, ["y"] = 233500},
-- {["OtherIndexName"] = "Gaya", ["x"] = 951900, ["y"] = 286100},
-- ["TeleportLevelCheck"] = false,
-- ["TeleportItemCheck"] = false
--
--},
{
["TeleportMapName"] = "Valea Seungryong (Nivel 39~49)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Orci(Mijloc)(49-59)", ["x"] = 332700, ["y"] = 745600},
{["OtherIndexName"] = "Metinul Umbrei 1/Insulã dreapta(Metin Lv.45)", ["x"] = 390500, ["y"] = 715700},
{["OtherIndexName"] = "Metinul Umbrei 2/Insulã dreapta sus(Metin Lv.45)", ["x"] = 392300, ["y"] = 678800},
{["OtherIndexName"] = "Metinul Sufletului/Insulã stânga(Metin Lv.40)", ["x"] = 277200, ["y"] = 735100},
{["OtherIndexName"] = "Metine combinate/Insulã stânga jos(Metin Lv.40)", ["x"] = 279700, ["y"] = 794000},
{["OtherIndexName"] = "Orci(Sfârºit)(Nivel 40+)", ["x"] = 284200, ["y"] = 809600}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false,
},
{
["TeleportMapName"] = "Deºertul Yongbi (Nivel 29~59)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Deºert(Mijloc)(29~59)", ["x"] = 296300, ["y"] = 547500},
{["OtherIndexName"] = "Metinul Sufletului/Stânga jos(Metin Lv.40)", ["x"] = 224800, ["y"] = 606600},
{["OtherIndexName"] = "Metinul Umbrei/Dreapta jos(Metin Lv.45)", ["x"] = 333000, ["y"] = 622200},
{["OtherIndexName"] = "Metinul Puterii/Dreapta sus(Metin Lv.50)", ["x"] = 327600, ["y"] = 517000}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false,
},
{
["TeleportMapName"] = "Turnul Demonilor - Cat. Diavolului",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Turnul Demonilor (Nivel 49~59)", ["x"] = 590400, ["y"] = 110500},
{["OtherIndexName"] = "Catacombele Diavolului (Nivel 75+)", ["x"] = 591900, ["y"] = 100200}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Muntele Sohan - Turnul lui Nemere",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Muntele Sohan Mijloc (Nivel 49~69)", ["x"] = 436200, ["y"] = 215300},
{["OtherIndexName"] = "Metinul Diavolului/Jos Mijloc(Lv. 55)", ["x"] = 436100, ["y"] = 275600},
{["OtherIndexName"] = "Metinul Diavolului/Stânga Mijloc(Lv. 55)", ["x"] = 400800, ["y"] = 234700},
{["OtherIndexName"] = "Metinul Morþi/Dreapta Jos(Lv. 65)", ["x"] = 493000, ["y"] = 274500},
{["OtherIndexName"] = "Turnul lui Nemere (Nivel 90+)", ["x"] = 432100, ["y"] = 164800}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Þara de Foc - Purg. lui Razador",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 605100, ["y"] = 685900},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 615700, ["y"] = 650800},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 650000, ["y"] = 655100},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 681500, ["y"] = 664000},
{["OtherIndexName"] = "Metinul Crimelor/Teleporter(Lv. 70)", ["x"] = 722700, ["y"] = 662000},
{["OtherIndexName"] = "Purg. lui Razador (Nivel 90+)", ["x"] = 599300, ["y"] = 707200}},
["TeleportLevelCheck"] = false,
["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Temniþele Pãianjenilor V1 (Nivel: 35~55)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "V1(Început)(Nivel 34~54)", ["x"] = 59800, ["y"] = 497300},
{["OtherIndexName"] = "V1(Sfârºit)(34~54)", ["x"] = 91900, ["y"] = 525400}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {25, 75},
--["TeleportItemCheck"] = false,
--["TeleportItems"] = {71095, 1}
},
{
["TeleportMapName"] = "Temniþele Pãianjenilor V2 (Nivel: 55~75)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "V2(Început) (Nivel 55~75)", ["x"] = 665600, ["y"] = 435200},
{["OtherIndexName"] = "V2(Sfârºit) (Nivel 55~75)", ["x"] = 704100, ["y"] = 521900},
{["OtherIndexName"] = "Spider Dungeon 3 (Nivel 65+)", ["x"] = 97600, ["y"] = 571100},
{["OtherIndexName"] = "SD3(Sfârºit) (Nivel 65+)", ["x"] = 68800, ["y"] = 610700}},
["TeleportLevelCheck"] = false,
["TeleportLevel"] = {35, 75},
["TeleportItemCheck"] = false,
["TeleportItems"] = {71095, 1}
},
--{
-- ["TeleportMapName"] = "Tãrâmul Giganþilor (Nivel 69~79)",
-- ["TeleportHasOtherIndexs"] = false,
-- ["TeleportLevelCheck"] = false,
-- ["TeleportItemCheck"] = false,
-- ["x"] = 828100,
-- ["y"] = 763400
--},
{
["TeleportMapName"] = "Regiunile de Pãdure(Nivel: 55~100)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Pãdurea Fantomã (Nivel 59~69)", ["x"] = 288700, ["y"] = 5700},
{["OtherIndexName"] = "Metin Pung-Ma/Curba jos(Lv. 75)", ["x"] = 299300, ["y"] = 33600},
{["OtherIndexName"] = "Metin Ma-An/Curba(Lv. 80)", ["x"] = 296400, ["y"] = 13400},
{["OtherIndexName"] = "Metin Ma-An/Curba sus(Lv. 80)", ["x"] = 324600, ["y"] = 3600},
{["OtherIndexName"] = "Pãdurea Roºie (Nivel 69-89)", ["x"] = 1119900, ["y"] = 70800},
{["OtherIndexName"] = "Metin Tu-Young/început(Lv. 85)", ["x"] = 1086400, ["y"] = 69300},
{["OtherIndexName"] = "Metin Tu-Young/început 2(Lv. 85)", ["x"] = 1061700, ["y"] = 64600},
{["OtherIndexName"] = "Metin Jeon-Un/platou sus(Lv. 90)", ["x"] = 1060400, ["y"] = 26400},
{["OtherIndexName"] = "Metin Jeon-Un/curba(Lv. 90)", ["x"] = 1109600, ["y"] = 30900},
{["OtherIndexName"] = "Metin Jeon-Un/sfârºit(Lv. 90)", ["x"] = 1118100, ["y"] = 8600}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {55, 100},
--["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "V4 (Nivel 75+)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "V4 (Început) (Nivel 75+)", ["x"] = 153600, ["y"] = 1203200},
{["OtherIndexName"] = "V4 (Sfârºit)(Nivel 75+)", ["x"] = 181500, ["y"] = 1220500}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {75, 105},
--["TeleportItemCheck"] = false,
--["TeleportItems"] = {30190, 1},
},
{
["TeleportMapName"] = "Regiunile Beta (Nivel: 90~105)",
["TeleportHasOtherIndexs"] = true,
["TeleportTheOtherIndexes"] = {
{["OtherIndexName"] = "Peninsulã (Nivel 90+)", ["x"] = 1024000, ["y"] = 1664000},
{["OtherIndexName"] = "Metinul Furiei/mijloc(Lv. 100)", ["x"] = 1125800, ["y"] = 1737200},
{["OtherIndexName"] = "Metinul Furiei/sus(Lv. 100)", ["x"] = 1099300, ["y"] = 1687200},
{["OtherIndexName"] = "Metinul Nenorocirlor/platou(Lv. 105)", ["x"] = 1153900, ["y"] = 1711900},
{["OtherIndexName"] = "Metinul Nenorocirlor/stânga(Lv. 105)", ["x"] = 1131500, ["y"] = 1703300},
{["OtherIndexName"] = "Metinul Nenorocirlor/mijloc stânga(Lv. 105)", ["x"] = 1048600, ["y"] = 1732300},
{["OtherIndexName"] = "Nephrite (Nivel 90+)", ["x"] = 1049600, ["y"] = 1510400},
{["OtherIndexName"] = "Metinul Cãrbunilor/jos(Lv. 95)", ["x"] = 1104400, ["y"] = 1640900},
{["OtherIndexName"] = "Metinul Cãrbunilor/jos(Lv. 95)", ["x"] = 1103000, ["y"] = 1581000},
{["OtherIndexName"] = "Metinul Tristeþii/jos(Lv. 95)", ["x"] = 1116000, ["y"] = 1630300},
{["OtherIndexName"] = "Metinul Tristeþii/jos(Lv. 95)", ["x"] = 1101300, ["y"] = 1561000},
{["OtherIndexName"] = "Thunder (Nivel 90+)", ["x"] = 1126400, ["y"] = 1510400},
{["OtherIndexName"] = "Metinul Vanitãþii/jos(Lv. 100)", ["x"] = 1148700, ["y"] = 1648300},
{["OtherIndexName"] = "Metinul Vanitãþii/jos stânga(Lv. 100)", ["x"] = 1155000, ["y"] = 1627400},
{["OtherIndexName"] = "Metinul Furiei/jos stânga(Lv. 100)", ["x"] = 1149400, ["y"] = 1605900},
{["OtherIndexName"] = "Metinul Furiei/mijloc stânga(Lv. 100)", ["x"] = 1148800, ["y"] = 1578900},
{["OtherIndexName"] = "Metinul Furiei/mijloc(Lv. 100)", ["x"] = 1213000, ["y"] = 1552900},
{["OtherIndexName"] = "Metinul Vanitãþii/mijloc(Lv. 100)", ["x"] = 1190400, ["y"] = 1574500},
{["OtherIndexName"] = "Guatama (Nivel 90+)", ["x"] = 1177600, ["y"] = 1664000},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1218100, ["y"] = 1692100},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1207700, ["y"] = 1690100},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1228500, ["y"] = 1748100},
{["OtherIndexName"] = "Metinul Rãutãþi/jos(Lv. 105)", ["x"] = 1247700, ["y"] = 1743900},
{["OtherIndexName"] = "Metinul Rãutãþi/mijloc(Lv. 105)", ["x"] = 1252700, ["y"] = 1691600},
{["OtherIndexName"] = "Metinul Rãutãþi/platou(Lv. 105)", ["x"] = 1291500, ["y"] = 1695400}},
--["TeleportLevelCheck"] = false,
--["TeleportLevel"] = {90, 105},
--["TeleportItemCheck"] = false
},
{
["TeleportMapName"] = "Templul Ochao (Nivel 95+)",
["TeleportHasOtherIndexs"] = false,
["TeleportLevelCheck"] = true,
["TeleportLevel"] = {90, 105},
["TeleportItemCheck"] = false,
["x"] = 853700,
["y"] = 1416400
},
{
["TeleportMapName"] = "Desertul Suferintei (Nivel 95+)",
["TeleportHasOtherIndexs"] = false,
["TeleportLevelCheck"] = true,
["TeleportLevel"] = {90, 105},
["TeleportItemCheck"] = false,
["x"] = 640000,
["y"] = 2252800
},
};
end
return TeleportRing.data;
end
TeleportRing.TeleportIsLevelCheck = function(index)
local data = TeleportRing.ReturnData();
return data[index]["TeleportLevelCheck"];
end
TeleportRing.TeleportIsItemsCheck = function(index)
local data = TeleportRing.ReturnData();
return data[index]["TeleportItemCheck"];
end
TeleportRing.TeleportMapHasOtherIndex = function(index)
local data = TeleportRing.ReturnData();
return data[index]["TeleportHasOtherIndexs"];
end
TeleportRing.InsertWindow = function()
local data = TeleportRing.ReturnData();
local window = {};
for index in data do
table.insert(window, data[index]["TeleportMapName"]);
end
table.insert(window, "Renunþã");
return window;
end
TeleportRing.DisplayOtherIndexWindow = function(WinIndex)
local data = TeleportRing.ReturnData();
local OtherWindow = {};
for index in data[WinIndex]["TeleportTheOtherIndexes"] do
table.insert(OtherWindow, data[WinIndex]["TeleportTheOtherIndexes"][index]["OtherIndexName"]);
end
table.insert(OtherWindow, "Renunþã");
return OtherWindow;
end
TeleportRing.isBetweenLevel = function(index)
local data = TeleportRing.ReturnData();
local pLevel = pc.get_level();
return pLevel >= data[index]["TeleportLevel"][1] and pLevel <= data[index]["TeleportLevel"][2];
end
TeleportRing.hasItemNeeded = function(index)
local data = TeleportRing.ReturnData();
return pc.count_item(data[index]["TeleportItems"][1]) >= data[index]["TeleportItems"][2];
end
TeleportRing.MainWindow = function(iVnum)
local data = TeleportRing.ReturnData();
local InsertedWindowTable = TeleportRing.InsertWindow();
say_title(string.format("%s:", item_name(iVnum)))
local FirstWindow = select_table(InsertedWindowTable);
if (FirstWindow == table.getn(InsertedWindowTable)) then
return false;
else
say_title(string.format("%s:", item_name(iVnum)))
if TeleportRing.TeleportIsLevelCheck(FirstWindow) then
if not TeleportRing.isBetweenLevel(FirstWindow) then
say(string.format("Nivelul tãu trebuie sã fie cuprins între %d ºi %d pentru[ENTER]a putea intra în aceastã mapã.", data[FirstWindow]["TeleportLevel"][1], data[FirstWindow]["TeleportLevel"][2]))
return false;
end
end
if TeleportRing.TeleportIsItemsCheck(FirstWindow) then
if not TeleportRing.hasItemNeeded(FirstWindow) then
say(string.format("Trebuie sa deþi x%d - %s pentru[ENTER]a putea intra în aceastã mapã.", data[FirstWindow]["TeleportItems"][2], item_name(data[FirstWindow]["TeleportItems"][1])))
end
end
if TeleportRing.TeleportMapHasOtherIndex(FirstWindow) then
local OtherInsertedWindowTable = TeleportRing.DisplayOtherIndexWindow(FirstWindow);
local otherWind = select_table(OtherInsertedWindowTable);
if (otherWind == table.getn(OtherInsertedWindowTable)) then
return false;
else
if data[FirstWindow]["TeleportItemCheck"] then
pc.remove_item(data[FirstWindow]["TeleportItems"][1], data[FirstWindow]["TeleportItems"][2]);
end
return pc.warp(data[FirstWindow]["TeleportTheOtherIndexes"][otherWind]["x"], data[FirstWindow]["TeleportTheOtherIndexes"][otherWind]["y"]);
end
end
if data[FirstWindow]["TeleportItemCheck"] then
pc.remove_item(data[FirstWindow]["TeleportItems"][1], data[FirstWindow]["TeleportItems"][2]);
end
return pc.warp(data[FirstWindow]["x"], data[FirstWindow]["y"]);
end
end


-> 
