Jump to content
×
×
  • Create New...
  • 0

Quête active map


Oscar
 Share

Question

  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

9 answers to this question

Recommended Posts

  • 0

-- ---------
-- 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.

Link to comment
Share on other sites

  • 0

J'ai fait une petite faute de frappe x)

 

-- ---------
-- 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
           say("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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.