PHP Code:
quest warpring begin
state start begin
function main()
say_title(item.get_name())
local art = select("Normale Maps", "Dungeons", "Levelmaps", "Farmmaps","Abbrechen")
if art == 1 then
warpring.normmaps1()
elseif art == 2 then
warpring.dungeons()
elseif art == 3 then
warpring.levelmaps()
elseif art == 4 then
warpring.farmmaps()
else
return
end
end
function normmaps1()
say_title(item.get_name().." : Normale Maps")
local normmaps1 = select("Map 1","Map 2","Eisland","Weiter","Zurück")
if normmaps1 == 1 then
local warps = {
[1] = 4639, 9642, -- rotes reich [empire1]
[2] = 557, 1579, -- gelbes reich [empire2]
[3] = 9696, 2784 -- blaues reich [empire3]
}
pc.warp(warps[pc.get_empire()])
elseif normmaps1 == 2 then
local warps = {
[1] = 3608, 8776,
[2] = 1385, 2349,
[3] = 8731, 2426
}
pc.warp(warps[pc.get_empire()])
elseif normmaps1 == 3 then
local warps = {
[1] = 3752, 1749,
[2] = 3752, 1749,
[3] = 3752, 1749
}
pc.warp(warps[pc.get_empire()])
elseif normmaps1 == 5 then
warpring.normmaps2()
elseif normmaps1 == 6 then
warpring.main()
end
end
function normmaps2()
say_title(item.get_name().." : Normale Maps")
local normmaps2 = select("SD2 Anfang","Schlangenfeld","SD1 - Bossspinne","Tempeleingang(Orktal)","Geisterwald","Weiter","Zurück")
if normmaps2 == 1 then
pc.warp(7050, 4650)
elseif normmaps2 == 2 then
pc.warp(8400, 7200)
elseif normmaps2 == 3 then
pc.warp(850, 5250)
elseif normmaps2 == 4 then
pc.warp(3330, 7450)
elseif normmaps2 == 5 then
pc.warp(2887, 5700)
elseif normmaps2 == 6 then
warpring.normmaps3()
elseif normmaps2 == 7 then
warpring.normmaps1()
end
end
function normmaps3()
say_title(item.get_name().." : Normale Maps")
local normmaps3 = select("Roter Wald,","Orktal","Große Wüste","Grotte der Verbannung 1(Anfang)","Weiter","Zurück")
if normmaps3 == 1 then
pc.warp(1119900, 70800)
elseif normmaps3 == 2 then
pc.warp(2704, 7399)
elseif normmaps3 == 3 then
pc.warp(2219, 5027)
elseif normmaps3 == 4 then
pc.warp(1459, 13236)
elseif normmaps3 == 5 then
warpring.normmaps4()
elseif normmaps3 == 6 then
warpring.normmaps2()
end
end
function normmaps4()
say_title(item.get_name().." : Normale Maps")
local normmaps4 = select("Grotte der Verbannung 1(Setaou Kämpfer)","Drachenraum","The Devil's Catacomb","Weiter","Zurück")
if normmaps4 == 1
pc.warp(1459, 13236)
elseif normmaps4 == 2
pc.warp(1825, 12207)
elseif normmaps4 == 3
pc.warp(5913, 993)
elseif normmaps4 == 4
warpring.normmaps5()
elseif normmaps4 == 5
warpring.normmaps3()
end
end
function normmaps5()
say_title(item.get_name().." : Normale Maps")
local normmaps5 = select("Gildenmap(Gelb)","Gildenmap(Rot)","Gildenmap(Blau)","Zurück","Abbrechen")
if normmaps5 == 1 then
pc.warp(2219, 93)
elseif normmaps5 == 2 then
pc.warp(1356, 43)
elseif normmaps5 == 3 then
pc.warp(2718, 130)
elseif normmaps5 == 4 then
warpring.normmaps4()
elseif normmaps5 == 5 then
return
end
end
function dungeons()
say_title(item.get_name().." : Dungeons")
local dungeons = select("Affendungeons","Spinnendungeons","Zurück","Abbrechen")
if dungeons == 1 then
local ads = select("Anfänger","Normal","Experte","Zurück","Abbrechen")
if ads == 1 then
pc.warp(7752, 4477)
elseif ads == 2 then
pc.warp(1532, 6532)
elseif ads == 3 then
pc.warp(1352, 7300)
elseif ads == 4 then
warpring.dungeons()
elseif ads == 5 then
return
end
elseif dungeons == 2 then
local sds = select("Spinnendungeon 1(Boss Kammer)","Spinnendungeon 2(Anfang)","Zurück","Abbrechen")
if sds == 1 then
pc.warp(917, 5253)
elseif sds == 2 then
pc.warp(7050, 4650)
elseif sds == 3 then
warpring.dungeons()
elseif sds == 4 then
return
end
elseif dungeons == 3 then
warpring.main()
elseif dungeons == 4 then
return
end
end
function levelmaps()
say_title(item.get_name().." : Levelmaps")
local levelmaps = select("LevelMap - LvL 100","LevelMap - LvL 125","Zurück","Abbrechen")
if levelmaps == 1 then
pc.warp(11264, 15104)
elseif levelmaps == 2 then
pc.warp(11776, 16640)
elseif levelmaps == 3 then
warpring.main()
elseif levelmaps == 4 then
return
end
end
function farmmaps()
say_title(item.get_name().." : Farmmaps")
local farmmaps = select("Farmmap - LvL 90","Farmmap - LvL 125","Zurück","Abbrechen")
if farmmaps == 1 then
pc.warp(10496, 15104)
elseif farmmaps == 2 then
pc.warp(10240, 16640)
elseif farmmaps == 3 then
warpring.main()
elseif farmmaps == 4 then
return
end
end
when 70007.use begin
warpring.main()
end
end
end
Bekomme den Fehler : locale/germany/quest/object/state/warpring:77: 'then' expected near 'pc'.
Vermutlich wird das ein ganz Simpler Fehler sein aber naja, ich kenne mich noch nicht mit dem Questen sooo gut aus =)