Jump to content

Recommended Posts

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
https://metin2.dev/topic/3699-quest-server_timer-problems/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.