Jump to content

Quest server_timer problems


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
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.