Jump to content
  • 0
Sign in to follow this  
iMeleys

solved Automated messages with time cycle

Question

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

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0
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

Share this post


Link to post
  • 0

Thank you , yeah its better then a mysql query thank you that u made it for me. :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

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