Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Quest with time help


DragonBlack94

Question

Hello I would like to modify this mission by putting it in time, where example after 1 hour it is canceled if you do not finish it

Anyone kind enough to help me?

 

Quote
quest Metin80 begin
	state start begin
		when login or levelup with pc.get_level() >= 80 begin
			set_state("inizio_metin")
		end
	end
	state inizio_metin begin
		when 8058.kill begin  
			pc.setqf("metin_killati" , pc.getqf("metin_killati")+1)
			if pc.getqf("metin_killati") == 30 then
		        addimage(-140, -350, "ground.tga")
				say_title("Missione livello 80!")
				say("")
				say("Complimenti!")
				say("Hai distrutto 30 metin del freddo!")
				say("Come promesso ecco la ricompensa:") 
				say("")
				say_reward("Ricevi: 12.000.000 Exp.")
				say_reward("Ricevi: 14.000.000 Yang.")
				say_reward("Ricevi: Cintura con Rune.")
				say_reward("Ricevi: Baule Alchimia x10.")
				say_reward("Ricevi: Moneta LastBreath x50.")
				pc.give_exp2 ( 12000000 )
				pc.changegold ( 14000000 )
				pc.give_item2("18060", 1)
				pc.give_item2("33029", 10)
				pc.give_item2("25105", 50)
				set_state("fine_metin")
			end
		end
		when letter begin
			send_letter_ex("Metin 85", "purple,blink,ex", "scroll_open_purple.tga")
		end
		when button or info begin
			if pc.getqf("metin_killati") < 30 then
			    addimage(-140, -350, "ground.tga")
				say_title("Distruggi 30 metin del freddo!")
				say("")
				say("Ciao ".. pc.get_name() .."")
				say("Se distruggi 30 metin del freddo riceverai[ENTER]una bella ricompensa.")
				say("")
				say("Dovrai distruggere:")
				say("Metin 80")
				say("")
				say_reward("Attualmente hai distrutto: ".. pc.getqf("metin_killati") .." metin del freddo.")
			end
		end
	end
	state fine_metin begin
	end
end

 

 

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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


  • Activity

    1. 3

      Press F10 to close the client immediately

    2. 1

      Where are those maps/dungeons coming from?

    3. 1

      Where are those maps/dungeons coming from?

    4. 4

      Visual studio 2022 compiling issue

    5. 1

      Count players function

    6. 64
    7. 1

      Costume shining/costume effect system

    8. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.