Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Quest server_timer problems


PiK90

Question

Hi there! I am trying to create a dungeon and i am stucked at the quest. When the player enters the dungeon, a server_timer is started. Both the timer_name.time and the server_timer() functions are in the start state.

if s == 1 then
	pc.setqf("first", 1)
	set_state(inlair)
	game.set_event_flag("chaos_running_ch"..get_channel_id(), 1)
	game.set_event_flag("chaos_ready_ch"..get_channel_id(), get_global_time() + 60)
	game.set_event_flag("chaos_leader_ch"..get_channel_id(),party.get_leader_pid())
	server_timer("chaos_end_timer", 10)
	pc.warp(80012600, 80007800)
end
when chaos_end_timer.timer begin
	notice_in_map("Timpul a expirat!")
	game.set_event_flag("chaos_running_ch"..get_channel_id(),0)
	warp_all_in_area_to_area(80000000,80000000,80025500,80025500,964200,964200,964200,964200)
end

The problem is that the timer refuses to start. I tried to put it everywhere and to call it from other functions. It just refuses to start. Does anybody have an idea about this? I found some topics, but there everyone said to move the timer in start state, but i have already done it.

 

*Note: the 10 seconds timer is for testing purpose.

Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 1

      Halloween 2021 Ninja M V2

    2. 0

      Visual Studio 2010 Ultimate

    3. 1

      Reduce server memory usage

    4. 31

      Metin2 Project - How to create à Metin2 private server on virtual machine

    5. 1

      Use BeltInventory slots without Belt

  • Recently Browsing

    • No registered users viewing this page.

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.