quest evento_mesterlum begin
   state start begin
   
      when 9004.chat."GM: Evento_reino" with pc.is_gm() begin
      
         say_title(""..pc.get_name()..":")
         say("")
         
      local se = select ("Activeaza evenimentul","Dezactiveaza evenimentul","Iesire")
      
            if se == 1 then
               game.set_event_flag("Razboi_Jinno", 1)
               game.set_event_flag("Razboi_Chunjo", 1)
               game.set_event_flag("Razboi_Shinsoo", 1)
               game.set_event_flag("Jinno", 1)
               game.set_event_flag("Chunjo", 1)
               game.set_event_flag("Shinso", 1)
               game.set_event_flag("Jinno_kill", 1)
               game.set_event_flag("Chunjo_kill", 1)
               game.set_event_flag("Shinsoo_kill", 1)
               notice_all("Evenimentul_regatelor activat")
               
            elseif se == 2 then
            
               game.set_event_flag("Razboi_Jinno", 0)
               game.set_event_flag("Razboi_Chunjo", 0)
               game.set_event_flag("Razboi_Shinsoo", 0)
               game.set_event_flag("Jinno", 0)
               game.set_event_flag("Chunjo", 0)
               game.set_event_flag("Shinsoo", 0)
               game.set_event_flag("Jinno_kill", 0)
               game.set_event_flag("Chunjo_kill", 0)
               game.set_event_flag("Shinso_kill", 0)
               notice_all("Evenimentul_regatelor dezactivat")
               
            else
               return
               
            end
            
      end
 
      
      when 9004.chat."Evenimentul e pe cale sa inceapa" begin
 
         if game.get_event_flag("Razboi_Chunjo") == 0 and pc.get_empire() == 2 then
         
            say_title("Evenimentul:")
            say("Este dezactivat in acest moment")
            say("")
         end   
         
         if game.get_event_flag("Razboi_Chunjo") == 1 and pc.get_empire() == 2 then
            say_title("Evenimentul:")
            say("Este activat in acest moment")
            
            local temo = select ("Vreau sa intru!", "Iesire")
            
               if temo == 1 then
               
                  pc.warp(819200,   204800)
                  
               else
                  return
               
               end
         end
            if game.get_event_flag("Razboi_Jinno") == 0 and pc.get_empire() == 3 then
         
            say_title("Evenimentul:")
            say("Este dezactivat in acest moment")
            say("")
         end   
         
         if game.get_event_flag("Razboi_Jinno") == 1 and pc.get_empire() == 3 then
            say_title("Evenimentul:")
            say("Este activat in acest moment")
            
            local temo1 = select ("Vreau sa intru!", "Iesire")
            
               if temo1 == 1 then
               
                  pc.warp(819200,   204800)
                  
               else
                  return
               
               end
         end
                  if game.get_event_flag("Razboi_Shinso") == 0 and pc.get_empire() == 1 then
         
            say_title("Evenimentul:")
            say("Este activat in acest moment")
            say("")
         end   
         
         if game.get_event_flag("Razboi_Shinsoo") == 1 and pc.get_empire() == 1 then
            say_title("Evenimentul:")
            say("Este activat in acest moment")
            
            local temo2 = select ("Vreau sa intru!", "Iesire")
            
               if temo2 == 1 then
               
                  pc.warp(819200,   204800)
                  
               else
                  return
               
               end
         end
      end
 
      when login with pc.get_map_index() == 43 begin
         
         if pc.get_empire() == 1 then
            game.set_event_flag("Shinsoo", game.get_event_flag("Shinsoo")+1)
            chat(""..game.get_event_flag("Shinsoo").." In eveniment au fost rosii")            
         elseif pc.get_empire() == 2 then
         
            game.set_event_flag("Chunjo", game.get_event_flag("Chunjo")+1)
            chat(""..game.get_event_flag("Chunjo").." In eveniment au fost galbenii")      
            
         elseif pc.get_empire() == 3 then
            game.set_event_flag("Jinno", game.get_event_flag("Jinno")+1)
            chat(""..game.get_event_flag("Jinno").." In eveniment au fost albastrii")
 
 
         end
         
      if game.get_event_flag("Shinsoo") == 2 then
         notice_all("Regatul rosu a ajuns la numarul maxim de jucatori si e gata sa inceapa!")
         notice_all("Portile pentru regatul rosu au fost inchise!")
         game.set_event_flag("Razboi_Shinsoo", 0)
      elseif game.get_event_flag("Jinno") == 2 then
         notice_all("Regatul albastru a ajuns la numarul maxim de jucatori si e gata sa inceapa!")
         notice_all("Portile pentru regatul albastru au fost inchise!")
         game.set_event_flag("Razboi_Jinno", 0)
      elseif game.get_event_flag("Chunjo") == 2 then
         notice_all("Regatul galben a ajuns la numarul maxim de jucatori si e gata sa inceapa!")
         notice_all("Portile pentru regatul galben au fost inchise!")
         game.set_event_flag("Razboi_Chunjo", 0)
      end
   end
 
      
      
      when kill with npc.is_pc() and pc.get_map_index() == 43 begin
      
            loop_timer("Timpul", 20*1)
 
            if pc.get_empire() == 3 then
               game.set_event_flag("Jinno_kill", game.get_event_flag("Jinno_kill")+1)
               notice_all("Jinno mai are:"..game.get_event_flag("Jinno_kill").."puncte")
            elseif pc.get_empire() == 2 then
               game.set_event_flag("Chunjo_kill", game.get_event_flag("Chunjo_kill")+1)
               notice_all("Chunjo mai are:"..game.get_event_flag("Chunjo_kill").."puncte")
               
            elseif pc.get_empire() == 1 then
               game.set_event_flag("Shinsoo_kill", game.get_event_flag("Shinso_kill")+1)
               notice_all("shinso mai are:"..game.get_event_flag("Shinsoo_kill").."puncte")
            end
      end
      
      
      when Timpul.timer begin
      
         chat("Timpul s-a sfarsit)
         
            if game.get_event_flag("Jinno_kill") > game.get_event_flag("Chunjo_kill") > game.get_event_flag("Shinsoo_kill") then   -------- Acum shinsoo pierde
                  notice_all("Shinsoo a fost eliminat")   
            elseif game.get_event_flag("Jinno_kill") > game.get_event_flag("Shinso_kill") > game.get_event_flag("Chunjo_kill") then  ------- Acum chunjo pierde
                  notice_all("Chunjo a fost eliminat")   
            elseif game.get_event_flag("Chunjo_kill") > game.get_event_flag("Shinso_kill") > game.get_event_flag("Jinno_kill") then   ------- Acum jinno pierde
                  notice_all("Jinno a fost eliminat")
                  
                  
            end
      end
   end
end

Tutorial instalare quest:

1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .

2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).

3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.

4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest

5. Intraţi pe server şi scrieţi /reload q .