The online racing simulator
Lapper Auto Message
Hi all LFS Family
-----------------------------------------------------------
Lapper Auto Message How can ?
Quote from mikail669220 :Hi all LFS Family
-----------------------------------------------------------
Lapper Auto Message How can ?

When do you want an automatic message?
I've said it before, please be as complete as possible when asking questions or explaining problems with Lapper.
Otherwise we can (and won't) help you.
5 minutes message
----------------------------------
I'm sorry I don't speak English
#region ' 1 Minute Interval '

System.Timers.Timer MinuteTimer = new System.Timers.Timer(60000);
MinuteTimer.Elapsed += new System.Timers.ElapsedEventHandler(MinuteTimer_Elapsed);
MinuteTimer.Enabled = true;

#endregion

// Minute Timers
private void MinuteTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
try
{
{
if (Messages == 1)
{
MsgAll("^7Pit Cikisi ^3SAG ^7Taraftan Sur!");
}
else if (Messages == 2)
{
MsgAll("^7Daha fazla guncel bilgi, etkinlik ve daha fazlasi icin,");
MsgAll("^7Bize Erisin ^3" + Website);
}
else if (Messages == 3)
{
MsgAll("^7Oyuncu hatalarini raporla bildir!");
MsgAll("^7Rapor Gonder: ^3" + Website);
}
else if (Messages == 4)
{
MsgAll("^7^1BUG^7 Bulduysan Bildir!");
MsgAll("^7Rapor Gonder: ^3" + Website);
}
else if (Messages == 5)
{
MsgAll("^7OyunBolumleri.Net Iyi Oyunlar... ^3V" + FileInfo.GetVersion(InsimVer) + " ");
Messages = -5;
}
Messages += 1;

}

Quote from mikail669220 :5 minutes message
----------------------------------
I'm sorry I don't speak English

Okay, that's possible using RegisterScheduledAction, like this:


#Syntax: ss mm hh dayofweek dd MM YYYY

Event OnLapperStart()
RegisterScheduleAction( "* 0 * * * * *", Auto_message );
RegisterScheduleAction( "* 5 * * * * *", Auto_message );
RegisterScheduleAction( "* 10 * * * * *", Auto_message );
RegisterScheduleAction( "* 15 * * * * *", Auto_message );
RegisterScheduleAction( "* 20 * * * * *", Auto_message );
RegisterScheduleAction( "* 25 * * * * *", Auto_message );
RegisterScheduleAction( "* 30 * * * * *", Auto_message );
RegisterScheduleAction( "* 35 * * * * *", Auto_message );
RegisterScheduleAction( "* 40 * * * * *", Auto_message );
RegisterScheduleAction( "* 45 * * * * *", Auto_message );
RegisterScheduleAction( "* 50 * * * * *", Auto_message );
RegisterScheduleAction( "* 55 * * * * *", Auto_message );
EndEvent

Sub Auto_message()
cmdLFS( "/msg [YOUR MESSAGE HERE]" );
Ensub

That will send a message at 0,5,10,15,20,25,30,35,40,45,50,55 minutes each hour of the day.
Yisc[NL]
------------------------------------
This Codes How Active I'm going to
Find the OnLapperStart event in your main LPR file.
Then replace the code within that event, with the code I have given you.
Add the sub-event Auto_message below that event
Add the message you want to display and you are fine to go Smile
Yisc[NL] I Am Grateful, Thank You For
-------------------------------------
I couldn't do it picture with you show

You need to delete the whole section that you have selected in the screenshot.
Then also delete the whole Sub SA_mid and SA_newyear, since that won't be needed anymore.
Then you will be good to go.

On a side note, if you really need to ask how to use the code presented to you, then you have no idea at all, of how Lapper is working.
So it would be a good idea to try and understand how the Lapper scripts work, what is happening at which point, etc.
Otherwise you will end up doing copy/paste, without having a clue what is happening.
I Just Do It Wrong?

This is correct and should work as intended.
Of course you need to replace "[YOUR MESSAGE HERE]" with any text you want to be displayed, but as it is right now, it should display that text every 5 minutes.
Server Not Working Lapper
Yisc[NL]
------------------------
Thank You, Achievements

FGED GREDG RDFGDR GSFDG