Jump to content

Automated messages with time cycle


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
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 1
Link to comment
Share on other sites

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.