Go to Program.cs and find:
Code:
public static Random Rnd = new Random();
Code:
public static DateTime SystemMsgTime = new DateTime();
Code:
static void ServerStuff_Execute()
{
try
{
[COLOR="Red"]if (World.BroadCastCount > 0 && DateTime.Now > World.LastBroadCast.AddMinutes(1))[/COLOR]
{
BroadCastMessage B = World.BroadCasts[0];
for (int i = 0; i < World.BroadCastCount; i++)
World.BroadCasts[i] = World.BroadCasts[i + 1];
World.BroadCastCount--;
World.SendMsgToAll(B.Name, B.Message, 2500, 0);
World.LastBroadCast = DateTime.Now;
World.CurrentBC = B;
}
}
Code:
if (DateTime.Now > SystemMsgTime.AddMinutes(1))
{
Handle_Events();
SystemMsgTime = DateTime.Now;
}
Code:
static void CompanionThread_Execute()
Code:
static void Handle_Events()
{
switch (DateTime.Now.Minute)
{
case 7:
case 8:
Game.World.SendMsgToAll("GM", "GMs have [GM] or [PM] at the end of their names. Don`t trust anyone claiming to be a GM but not having [GM]/[PM] in their names.", 2011, 0);
break;
case 19:
case 20:
Game.World.SendMsgToAll("GM", "File account problems and TQ Point Card purchase problems at SUPPORT on the official site.", 2011, 0);
break;
case 31:
case 32:
Game.World.SendMsgToAll("GM", "Help UnknownMan at Market (212,204) to level up quickly.", 2011, 0);
break;
case 43:
case 44:
Game.World.SendMsgToAll("GM", "Trading of game accounts is illegal and may result in the instant banning of the accounts involved in the trading.", 2011, 0);
break;
case 55:
case 56:
Game.World.SendMsgToAll("GM", "co.91.com is the only official website of CO, which is also the only website where you can purchase Dragonballs.", 2011, 0);
break;
default:
break;
}
}






