PHP Code:
quest endlvl begin
state start begin
when levelup with pc.get_level() == 150
notice_all(""..pc.get_name().." hat level 150 erreicht!")
say_title("Glückwunsch")
say("Du hast das End Level erreicht")
say("Du erhälst eine Belohnung.")
say("Möchtest du zurück nach Map 1?")
pc.give_item2(item, anzahl)
local a = select("Ja", "Nein")
if a == 2 then
return
else
if pc.get_empire() == 1 then -- Rotes reich
pc.warp(x, y)
elseif pc.get_empire() == 2 then -- Gelbes Reich
pc.warp(x, y)
elseif pc.get_empire() == 3 then -- Blaues Reich
pc.warp(x, y)
end
end
end
end
end
Du musst aber die koordinaten anpassen^^