PHP Code:
quest warpring begin
state start begin
when 70007.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
local s = select("Reich", "Tal von Seungryong", "Yongbi-Wueste", "Berg Sohan", "Feuerland", "Weiter", "Abbrechen")
if s==6 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
local p = select("Metin Map", "Dämonenturm", "Spinnendungoen", "Geisterwald", "Roter Wald", "Grotte der Verbannung", "Abbrechen")
if p==1 then
if e==1 then
x="128500"
y="1000"
elseif e==2 then
x="179500"
y="1000"
elseif e==3 then
x="271800"
y="13000"
end
elseif p==2 then
x="590400"
y="110500"
elseif p==3 then
x="91900"
y="525400"
elseif p==4 then
x="289000"
y="5800"
elseif p==5 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
t = select("Anfang", "Ende", "Abbrechen")
if t==1 then
x="1119900"
y="70800"
elseif t==2 then
x="1119200"
y="7000"
end
end
elseif p==6 then
x="284200"
y="809600"
end
elseif s==1 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
t = select("Map1 Blau", "Map2 Blau", "Map1 Rot", "Map2 Rot", "Map1 Gelb", "Map2 Gelb", "Abbrechen")
if t==1 then
x="959600"
y="269700"
elseif t==2 then
x="863800"
y="246000"
elseif t==3 then
x="473900"
y="954600"
elseif t==4 then
x="352300"
y="882700"
elseif t==5 then
x="63200"
y="166700"
elseif t==6 then
x="145700"
y="239800"
end
elseif s==2 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
t = select("Anfang", "Mitte", "Rek-Wiese", "Abbrechen")
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==3 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
t = select("Anfang", "Mitte", "Abbrechen")
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==4 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
t = select("Anfang", "Mitte", "Abbrechen")
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 p==5 then
say_title("Warpring")
say("Wohin möchtest du teleporiert werden?")
t = select("Anfang", "Teleporter", "Abbrechen")
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
x="600500"
y="687400"
end
end
end
end
end
syntax error : [string "start"]:48 <eof> expected near `elseif´
warpring.quest:153:Error occured on compile warpring.quest