antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
csantos93

Evento São Valentim (Português)

1 post in this topic

quest saovalentim begin
	state start begin
		when login begin
				if game.get_event_flag("sao_valentim") == 1 then
					notice("O evento de São Valentim está ativo.")
				end
			end
		when 20095.chat."Evento de São Valentim" with pc.is_gm() begin
			say_title("Evento de São Valentim")
			say("O Evento 'Dia Dos Namorados' consiste no drop")
			say("de Rosas Amarelas e Chocolates por personagens")
			say("do sexo 'Feminino' e Rosas Vermelhas e Chocolates")
			say("por personagens do sexo 'Masculino'. Esses itens")
			say("contem um presente em seu interior e devem ser")
			say("trocados entre casais para que possam ser abertos.")
			say_reward("O que você deseja fazer?")
		local s = select("Ativar Evento", "Desativar Evento", "Cancelar")
			if s == 1 then
				game.set_event_flag("sao_valentim", 1)
				notice_all("O Evento de São Valentim começou.")
				notice_all("Agora podes obter Rosas Amarelas, Rosas Vermelhas e Chocolates")
				notice_all("em todos os monstros e trocá-los com o teu parceiro ou parceira.")
			elseif s == 2 then
				game.set_event_flag("sao_valentim", 0)
				notice_all("O Evento de São Valentim terminou.")
				notice_all("Infelizmente o Evento de São Valentim chegou ao fim, mas não")
				notice_all("fiques triste dia 14 de Fevereiro há mais!")
			end
		end

		when kill with not npc.is_pc() and game.get_event_flag("sao_valentim") == 1 begin
			local porc2 = math.random(1,1500)
			if pc.get_sex() == 1 then
				if porc2 <= 3 then
					game.drop_item_with_ownership("50031", 1)
				elseif porc2 == 18 then
					game.drop_item_with_ownership("50025", 1)
				end
			end
					
					
			if pc.get_sex() == 0 then
				if porc2 <= 3 then
					game.drop_item_with_ownership("50024", 1)
				elseif porc2 == 18 then
					game.drop_item_with_ownership("50025", 1)
				end
			end
			
		end
	end
end

Evento do 'Dia dos Namorados' como podem ver consiste no drop de rosas e chocolates e para serem abertos tem de ser trocados por personagens do sexo oposto.

Não tenho a certeza se é 100% igual ao oficial pois nunca passei por esse evento.

 

Nota: Não testei, então não faço ideia se esta a funcionar por isso agradeço a alguém que tenha umas files instaladas que teste e comente ai em baixo se está a funcionar correctamente.

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this