Cod: Selectaţi tot
quest teleport begin
state start begin
when login begin
cmdchat("teleporter_index "..q.getcurrentquestindex())
end
when button or info begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Încotro vrei sa mergi straine?")
local s = select("Map1", "Map2", "Valea Orcilor", "Desert", "Sohan", "Tara de foc", "Urmatoarele", "Închide")
if s==7 then
say_title("Teleporter:")
say("Încotro vrei sa mergi straine?")
local p = select("Turnul Demonilor", "V1", "Padurea Fantomelor", "Padurea Rosie", "Tara Gigantilor", "Grota Exilului", "Închide")
if p==1 then
x="590400"
y="110500"
elseif p==2 then
x="91900"
y="525400"
elseif p==3 then
x="289000"
y="5800"
elseif p==4 then
say_title("Teleporter")
say("Încotro vrei sa mergi straine?")
t = select("Început", "Sfârsit", "Închide")
if t==1 then
x="1119900"
y="70800"
elseif t==2 then
x="1119200"
y="7000"
end
elseif p==5 then
x="828100"
y="763400"
elseif p==6 then
x="284200"
y="809600"
end
elseif s==1 then
say_title("Teleporter")
say("Încotro vrei sa mergi straine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru","Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Încotro vrei sa mergi straine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
elseif s==3 then
say_title("Teleporter:")
say("Încotro vrei sa mergi straine?")
t = select("Început", "Centru", "Arahani", "Închide")
if t==1 then
if e==1 then
x="402100"
y="673900"
elseif e==2 then
x="270400"
y="739900"
elseif e==3 then
x="321300"
y="808000"
end
elseif t==2 then
x="332700"
y="745600"
elseif t==3 then
x="282800"
y="792800"
end
elseif s==4 then
say_title("Teleporter:")
say("Încotro vrei sa mergi straine?")
t = select("Inceput", "Sfârsit", "Închide")
if t==1 then
if e==1 then
x="217800"
y="627200"
elseif e==2 then
x="221900"
y="502700"
elseif e==3 then
x="344000"
y="502500"
end
elseif t==2 then
x="296300"
y="547500"
end
elseif s==5 then
say_title("Teleporter")
say("Încotro vrei sa mergi straine?")
t = select("Început", "Mijloc", "Închide")
if t==1 then
if e==1 then
x="434200"
y="290600"
elseif e==2 then
x="375200"
y="174900"
elseif e==3 then
x="491800"
y="173600"
end
elseif t==2 then
x="436200"
y="215300"
end
elseif s==6 then
say_title("Teleporter:")
say("Încotro vrei sa mergi straine?")
t = select("Început", "Închide")
if t==1 then
if e==1 then
x="599400"
y="756300"
elseif e==2 then
x="597800"
y="622200"
elseif e==3 then
x="730700"
y="689800"
end
elseif t==2 then
return
end
end
if s!=8 or p!= 7 then
pc.warp(x, y)
end
end
end
end
Cod: Selectaţi tot
quest teleporter begin
state start begin
when 9012.chat."Teleport" begin
local empire = pc.get_empire()
local selectmap = select(gameforge[get_lang()].warpring._title000,
gameforge[get_lang()].warpring._title010,
gameforge[get_lang()].warpring._title020,
gameforge[get_lang()].warpring._title030,
gameforge[get_lang()].warpring._title040,
gameforge[get_lang()].warpring._title050,
gameforge[get_lang()].warpring._title060,
gameforge[get_lang()].warpring._title070,
gameforge[get_lang()].warpring._title080,
gameforge[get_lang()].warpring._title090,
gameforge[get_lang()].warpring._title100,
gameforge[get_lang()].warpring._title110,
gameforge[get_lang()].warpring._title120,
gameforge[get_lang()].warpring._title130,
gameforge[get_lang()].warpring._title140,
gameforge[get_lang()].warpring._title150,
gameforge[get_lang()].warpring._title160,
gameforge[get_lang()].warpring._title170,
gameforge[get_lang()].warpring._title180,
gameforge[get_lang()].warpring._title190,
gameforge[get_lang()].warpring._title200,
gameforge[get_lang()].warpring._title210,
gameforge[get_lang()].warpring._title220,
gameforge[get_lang()].warpring._title230)
if selectmap == 26 then
return
elseif selectmap == 1 then
local map1select = select(gameforge[get_lang()].warpring._locale080,
gameforge[get_lang()].warpring._locale380,
gameforge[get_lang()].warpring._locale410,
gameforge[get_lang()].warpring._locale090,
gameforge[get_lang()].warpring._locale000)
if map1select == 5 then
return
elseif map1select == 1 then
pc.warp(969500, 278400)
elseif map1select == 2 then
pc.warp(953500, 259800)
elseif map1select == 3 then
pc.warp(950900, 232100)
elseif map1select == 4 then
pc.warp(2157200, 2993300)
end
elseif selectmap == 2 then
local map1select = select(gameforge[get_lang()].warpring._locale120,
gameforge[get_lang()].warpring._locale390,
gameforge[get_lang()].warpring._locale420,
gameforge[get_lang()].warpring._locale130,
gameforge[get_lang()].warpring._locale000)
if map1select == 5 then
return
elseif map1select == 1 then
pc.warp(469300, 964200)
elseif map1select == 2 then
pc.warp(474400, 954000)
elseif map1select == 3 then
pc.warp(498600, 956200)
elseif map1select == 4 then
pc.warp(2363200, 875400)
end
elseif selectmap == 3 then
pc.warp(75933000, 35921900)
elseif selectmap == 4 then
pc.warp(3004400, 4956700)
elseif selectmap == 5 then
local wuesteselect = select(gameforge[get_lang()].warpring._locale010,
gameforge[get_lang()].warpring._locale020,
gameforge[get_lang()].warpring._locale000)
if wuesteselect == 3 then
return
elseif wuesteselect == 1 then
if empire == 1 then
pc.warp(217800, 627200)
elseif empire == 2 then
pc.warp(221900, 502700)
elseif empire == 3 then
pc.warp(344000, 502500)
end
elseif wuesteselect == 2 then
pc.warp(295100, 549300)
end
elseif selectmap == 6 then
pc.warp(372000, 172400)
elseif selectmap == 7 then
pc.warp(599700, 623300)
elseif selectmap == 8 then
local flr_map = select(gameforge[get_lang()].warpring._locale050,
gameforge[get_lang()].warpring._locale040,
gameforge[get_lang()].warpring._locale100,
gameforge[get_lang()].warpring._locale060,
gameforge[get_lang()].warpring._locale110,
gameforge[get_lang()].warpring._locale000)
if flr_map == 6 then
return
elseif flr_map == 1 then
pc.warp(163100, 158400)
elseif flr_map == 2 then
pc.warp(69800, 96100)
elseif flr_map == 3 then
pc.warp(257500, 124500)
elseif flr_map == 4 then
pc.warp(297300, 206300)
elseif flr_map == 5 then
pc.warp(251600, 14200)
end
elseif selectmap == 9 then
local wwuesteselect = select(gameforge[get_lang()].warpring._locale010,gameforge[get_lang()].warpring._locale020,gameforge[get_lang()].warpring._locale070,gameforge[get_lang()].warpring._locale000)
if wwuesteselect == 4 then
return
elseif wwuesteselect == 1 then
if empire == 1 then
pc.warp(1119100, 69900)
elseif empire == 2 then
pc.warp(1119100, 69900)
elseif empire == 3 then
pc.warp(1119100, 69900)
end
elseif wwuesteselect == 2 then
pc.warp(1091900, 30700)
elseif wwuesteselect == 3 then
pc.warp(1101200, 53700)
end
elseif selectmap == 10 then
local map1select = select(gameforge[get_lang()].warpring._locale450,
gameforge[get_lang()].warpring._locale440,
gameforge[get_lang()].warpring._locale370,
gameforge[get_lang()].warpring._locale000)
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(5571100, 5648700)
elseif map1select == 2 then
pc.warp(5607800, 5615400)
elseif map1select == 3 then
pc.warp(5609000, 5603700)
end
elseif selectmap == 11 then
local map1select = select(gameforge[get_lang()].warpring._locale320,
gameforge[get_lang()].warpring._locale330,
gameforge[get_lang()].warpring._locale340,
gameforge[get_lang()].warpring._locale000)
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(84228600, 94724800)
elseif map1select == 2 then
pc.warp(84272900, 94841300)
elseif map1select == 3 then
pc.warp(84343900, 94844700)
end
elseif selectmap == 12 then
pc.warp(1153800, 1116500)
elseif selectmap == 13 then
pc.warp(2263500, 2254500)
elseif selectmap == 14 then
local map1select = select(gameforge[get_lang()].warpring._locale280,
gameforge[get_lang()].warpring._locale290,
gameforge[get_lang()].warpring._locale300,
gameforge[get_lang()].warpring._locale310,
gameforge[get_lang()].warpring._locale000)
if map1select == 5 then
return
elseif map1select == 1 then
pc.warp(10000, 1207800)
elseif map1select == 2 then
pc.warp(136600, 1344400)
elseif map1select == 3 then
pc.warp(241800, 1275000)
elseif map1select == 4 then
pc.warp(180300, 1220600)
end
elseif selectmap == 15 then
pc.warp(63400, 7686700)
elseif selectmap == 16 then
pc.warp(4575800, 55400)
elseif selectmap == 17 then
pc.warp(613000, 652300)
elseif selectmap == 18 then
pc.warp(426300, 169500)
elseif selectmap == 19 then
pc.warp(71500, 106000)
elseif selectmap == 20 then
local map1select = select(gameforge[get_lang()].warpring._locale270,
gameforge[get_lang()].warpring._locale030,
gameforge[get_lang()].warpring._locale190,
gameforge[get_lang()].warpring._locale200,
gameforge[get_lang()].warpring._locale000)
if map1select == 5 then
return
elseif map1select == 1 then
pc.warp(1106700, 1791800)
elseif map1select == 2 then
pc.warp(1089600, 1786900)
elseif map1select == 3 then
pc.warp(1120700, 1732800)
elseif map1select == 4 then
pc.warp(1165300, 1779400)
end
elseif selectmap == 21 then
local map1select = select(gameforge[get_lang()].warpring._locale010,gameforge[get_lang()].warpring._locale200, gameforge[get_lang()].warpring._locale210 ,gameforge[get_lang()].warpring._locale000)
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(1087300, 1652200)
elseif map1select == 2 then
pc.warp(1106300, 1639400)
elseif map1select == 3 then
pc.warp(1064300, 1604400)
end
elseif selectmap == 22 then
local map1select = select(gameforge[get_lang()].warpring._locale010,gameforge[get_lang()].warpring._locale220,gameforge[get_lang()].warpring._locale230,gameforge[get_lang()].warpring._locale000)
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(1134100, 1654800)
elseif map1select == 2 then
pc.warp(1216900, 1518800)
elseif map1select == 3 then
pc.warp(1191800, 1618800)
end
elseif selectmap == 23 then
local map1select = select(gameforge[get_lang()].warpring._locale010,gameforge[get_lang()].warpring._locale220,gameforge[get_lang()].warpring._locale240,gameforge[get_lang()].warpring._locale000)
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(1225800, 1682000)
elseif map1select == 2 then
pc.warp(1244600, 1744300)
elseif map1select == 3 then
pc.warp(1278000, 1734400)
end
elseif selectmap == 24 then
return
end
end
end
end