Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest evento_pvm begin
- state start begin
- when 20095.chat."Evento PvM" with pc.get_map_index() == 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 begin
- say_title("Nohe o Imortal")
- say("")
- if game.get_event_flag("evento_blazing2") == 0 and not pc.is_gm() then
- say("Os portões para a entrada no Evento")
- say("PvM estão fechados no momento!")
- else
- say("Deseja entrar no Evento PvM?")
- local main_set =select ("Sim","Não")
- if main_set == 1 then
- pc.warp (83200 , 0)
- elseif main_set == 2 then
- return
- end
- end
- end
- when 20095.chat."GM: Evento PvM" with pc.is_gm() and pc.get_map_index() == 200 and game.get_event_flag("evento_pvm") == 0 begin
- say_title("Nohe o Imortal")
- say("")
- say("Deseja ativar o Evento PvM?")
- local menu = select ("Sim", "Não")
- if menu == 1 then
- game.set_event_flag("evento_pvm", 1)
- game.set_event_flag("desativar_pvp_map", 1)
- server_timer( "finalizar_evento_pvm", 15*60, get_server_timer_arg())
- server_loop_timer("anuncio_evento_pvm", 305)
- notice_all("O Evento PvM Começou!!!")
- notice_all("Participe através do Nohe o Imortal.")
- kill_all_in_map(200)
- regen_in_map(200, "data/eventos/evento_pvm.txt")
- elseif menu == 2 then
- return
- end -- if
- end -- when
- when anuncio_evento_pvm.server_timer begin
- notice_all("O Evento PvM está em andamento!")
- notice_all("Participe através do Nohe o Imortal.")
- end
- when finalizar_evento_pvm.server_timer begin
- clear_server_timer("finalizar_evento_pvm")
- clear_server_timer("anuncio_evento_pvm")
- game.set_event_flag("evento_pvm", 0)
- game.set_event_flag("desativar_pvp_map", 0)
- notice_all("O Evento PvM Terminou!")
- notice_all("Obrigado pela participação de todos!")
- warp_all_to_village(200, 10) -- em 10 segundos manda todos para vila.
- end -- when
- when login with not pc.is_gm() and pc.get_map_index() == 200 begin
- if game.get_event_flag("evento_pvm") == 0 then -- DESLIGADO
- warp_to_village()
- end -- if
- end -- when
- end -- state
- end -- quest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement