AllZone
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

[event]event de votare server

In jos

[event]event de votare server Empty [event]event de votare server

Mesaj Scris de Alyy Joi Iun 30, 2011 7:59 am

Buna
Un alt event !
Este un event de vot. Care este activat de catre GM doar. Se poate vota doar o data la 24 de ore !.
Intrebarea este cum e site iar voi aleeti intre :
-Cel mai bun
-Bunicel
-Nu prea bun
-Naspa
Astfel puteti vedea ce cred playeri despre serverul vostru.
Il activati de la npc 20092 si votati de la 20095
Quest:
Cod:
quest vot begin
  state start begin
      when 20092.chat."Activeaza Event Vot" with pc.is_gm() begin
            say("Vreti sa porniti sistemul de vot ?")
            if game.get_event_flag("vot") >=1 then
              say("Eventul Vot este pornit vrei sal opresti ?")
              local g = select("Da", "Nu")
              if g == 2 then
                  return
              elseif g == 1 then
                  game.set_event_flag("vot", 0)
            local s = select("Da", "Nu")
            if s == 2 then
              return
            elseif s == 1 then
              game.set_event_flag("vot", 1)
              say_reward("Event Activat!")
            end
      end
     
      when 20095.chat."Voteaza Servarul" with game.get_event_flag("vot") >=1 then
        say_reward("Aici puteti vota Serverul Nostru !")
        local menu = select("Vezi Voturile", "Voteaza", "Exit")
        if menu == 3 then
            return
        elseif menu == 1 then
            say_reward("Voturile sunt:")
            say("Este cel mai bun server: "..game.get_event_flag("fbun")..")
            say("")
            say("Server-ul este bun    : "..game.get_event_flag("bun")..")
            say("")
            say("Nui asa de rau serverul: "..game.get_event_flag("nbun")..")
            say("")
            say("Serverul este naspa    : "..game.get_event_flag("naspa")..")
        elseif menu == 2 then
            if get_time() >= pc.getqf("vott") then
              say_reward("Voteaza cum crezi tu ca e serverul:")
              local s = select("Cel mai bun server", "Server-ul este bun", "Nui asa de rau serverul", "Serverul este naspa", "Exit")
                  if s == 5 then
                    return
                  elseif s == 1 then
                    game.set_event_flag("fbun", game.get_event_flag("fbun")+1)
                  elseif s == 2 then
                    game.set_event_flag("bun", game.get_event_flag("bun")+1)
                  elseif s == 3 then
                    game.set_event_flag("nbun", game.get_event_flag("nbun")+1)
                  elseif s == 4 then
                    game.set_event_flag("naspa", game.get_event_flag("naspa")+1)
                  end
                  say_reward("Ai votat!")
                  say_reward("Nu mai poti vota pentru urmatoarele 24 ore!")
                  pc.setqf("vott",get_time()+60*60*60)
            else
              say("Trebuie sa treaca 24 de ore ca-sa poti vota din nou!")
              return
            end
        end
      end
  end
end
avatar
Alyy
Moderator
Moderator

Varsta Varsta : 28
Joburi/Distractii Joburi/Distractii : Metin2
Stare de spirit Stare de spirit : Happy

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum