Jump to content

Recommended Posts

i know that this is allready public but not like i want ^_^ and i need a solution for
automated messages from the system with a time cycle i would like C++ Code and i realy would love it
if i can write the messages over account.news from my database ! that would be awesome


Example System Message over MySQL:

1.) Dont Feed the Yang Sellers // message at 4 PM
2.) Dont Hesistate to ask Question and such sort of stuff... // message to the community at 9 PM

Link to comment
https://metin2.dev/topic/21519-automated-messages-with-time-cycle/
Share on other sites

  • Premium
quest timer_notice begin
	state start begin
		when login begin
			loop_timer("tips_notice",180)
		end
		
		-- Tips notice
		when tips_notice.timer begin
			dofile("locale/germany/notice/tips_text.lua") 
			table.insert(phrases,"Info: Search shop (F11) / Switchboot (F10)") -- alternative syntax
			notice("Info: ", phrases[math.random(table.getn(phrases))]) 
		end
	end
end

For germany/notice/tips_text.lua

phrases = 
{ 
	"You can reset your skills from the general store.", 
	"The event calendar can be read from the patcher.",
}

Lua script. The text from tips_text.lua can be changed with server online. Just write or remove something.

Better than a mysql query.

  • Love 2

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.