Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 22:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



loop_server_timer and notice_in_map [PROBLEM]

Discussion on loop_server_timer and notice_in_map [PROBLEM] within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
thenemne0032's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 19
Received Thanks: 23
Post loop_server_timer and notice_in_map [PROBLEM]

Hey,

Code:
quest *** begin
	state start begin
		when letter with pc.is_gm() begin
			send_letter("GM: Timer")
		end
		when info or button begin
			local sec = select("open","stop","close")
			if sec == 1 then 
				server_loop_timer("server1",3)
			elseif sec == 2 then
				clear_server_timer("server1")
			end
		end
		when server1.server_timer begin
				notice_in_map("***")
		end
	end
end
notice_in_map fails.

How do I run it?
thenemne0032 is offline  
Old 04/09/2015, 08:28   #2

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
a servertimer cant do a notice_in_map
rollback is offline  
Old 04/09/2015, 08:34   #3
 
thenemne0032's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 19
Received Thanks: 23
Quote:
Originally Posted by definitely not Sensenmann View Post
a servertimer cant do a notice_in_map
Thanks. Is there a cure?
thenemne0032 is offline  
Old 04/09/2015, 09:24   #4

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
let it run on a pc with a eventflag

Code:
quest *** begin
	state start begin
		when login with pc.get_map_index() == mapindex and game.get_event_flag("xx_time") < get_time() begin
			game.set_event_flag("xx_time", get_time()+60*3)
			notice_in_map("***")
		end
	end
end
this should work
rollback is offline  
Reply


Similar Threads Similar Threads
notice_in_map undeclared function?
11/23/2013 - Metin2 Private Server - 3 Replies
Anyone else getting this error? Calls undeclared function! : notice_in_map Abort trap (core dumped) Error occured on compile metinevent.quest SF Daroo metinevent.quest
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 22:53.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.