Zerar o Rank todo mês automaticamente
Página 1 de 1
Zerar o Rank todo mês automaticamente
World.cs em ServerFunctions
- Código:
#region NobilityReset
DateTime Now64 = DateTime.Now;
if (Now64.Day == 1 && Now64.Hour == 00 && Now64.Minute == 15 && Now64.Second == 00)
{
using (var sel = new MySqlCommand(MySqlCommandType.SELECT).Select("nobility"))
using (var reader = sel.CreateReader())
{
while (reader.Read())
{
using (var upd = new MySqlCommand(MySqlCommandType.UPDATE).Update("nobility"))
upd.Set("donation", reader.ReadUInt64("Donation") / 8).Where("entityuid", reader.ReadUInt32("EntityUID"))
.Execute();
}
}
Program.CommandsAI("@restart");
}
#endregion
Tópicos semelhantes
» Zerar Rank e Informações pessoais da database
» Cps automaticamente na Bag por minuto
» BUG NO RANK (GERAL KING) AJUDA!
» Editar o Nobility Rank(Colocar mais kings ou menos Kings, Prince e etc)
» Cps automaticamente na Bag por minuto
» BUG NO RANK (GERAL KING) AJUDA!
» Editar o Nobility Rank(Colocar mais kings ou menos Kings, Prince e etc)
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|