Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. if (client.NobilityTimer.Donation > 0 && DateTime.Now >= client.NobilityTimer.EndOn)
  2. {
  3. client.NobilityInformation.Donation = client.NobilityTimer.OldDonation;
  4. //////////////////////////////////////////
  5. Game.ConquerStructures.Nobility.Sort(client.Entity.UID);
  6. Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
  7. client.NobilityTimer.Save(client);
  8. client.Send("Your Rank, Is Ended, Now Your Rank is Back.");
  9. /////////////////////////////////////////////////////////////////
  10. MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
  11. cmd.Delete("nobilitytimer", "UID", client.Entity.UID).Execute();
  12. client.NobilityTimer.Donation = 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement