-- ---------
-- By Ant0k
-- ---------
quest mapevent begin
state start begin
when 20041.chat."Map event" with game.get_event_flag("mapevent") == 1 begin
say("Veux tu être téléporté sur la map event ?")
say("")
local s=select("Oui","Non")
if s==2 then
return
else
pc.warp(83200, 0)
end
end
when 20041.chat."GM: Bloquer l'accès à la map Event" with game.get_event_flag("mapevent") == 1 and pc.is_gm() begin
say("Bloquer l'accès à la map ?")
say("")
local lock=select("Bloquer","Retour")
if lock==2 then
return
else
game.set_event_flag("mapevent", 0)
notice_all("L'event est terminé!")
end
end
when 20041.chat."GM: Autoriser l'accès à la map Event" with game.get_event_flag("mapevent") == 0 and pc.is_gm() begin
sat("Autoriser l'accès à la map ?")
say("")
local unlock=select("Autoriser","Retour")
if unlock==2 then
return
else
game.set_event_flag("mapevent", 1)
notice_all("L'event est lancé!")
end
end
end
end
J'ai pas test, à toi de voir....
C'est sur le passant ivre.