Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region DragonBall - Meteorfv
- TimeSpan remainingTimeMeteorScroll = client.LastMeteorScrollUnpackTime.AddMinutes(1) - DateTime.Now;
- if (remainingTimeMeteorScroll <= TimeSpan.Zero)
- {
- if (client.Inventory.Contain(Database.ItemType.Meteor, 10))
- {
- using (var rec = new ServerSockets.RecycledPacket())
- {
- var stream = rec.GetStream();
- client.Inventory.Remove(Database.ItemType.Meteor, 10, stream);
- client.Inventory.AddItemWitchStack(Database.ItemType.MeteorScroll, 0, 1, stream);
- //client.LastMeteorScrollUnpackTime = DateTime.Now;
- }
- }
- }
- else
- {
- int remainingSeconds = remainingTimeMeteorScroll.Seconds;
- client.SendSysMesage("You must wait " + remainingSeconds.ToString() + " seconds before converting MeteorScroll again.");
- }
- TimeSpan remainingTimeDragonBallScroll = client.LastDragonBallScrollUnpackTime.AddMinutes(1) - DateTime.Now;
- if (remainingTimeDragonBallScroll <= TimeSpan.Zero)
- {
- if (client.Inventory.Contain(Database.ItemType.DragonBall, 10))
- {
- using (var rec = new ServerSockets.RecycledPacket())
- {
- var stream = rec.GetStream();
- client.Inventory.Remove(Database.ItemType.DragonBall, 10, stream);
- client.Inventory.AddItemWitchStack(Database.ItemType.DragonBallScroll, 0, 1, stream);
- //client.LastDragonBallScrollUnpackTime = DateTime.Now;
- }
- }
- }
- else
- {
- int remainingSeconds = remainingTimeDragonBallScroll.Seconds;
- client.SendSysMesage("You must wait " + remainingSeconds.ToString() + " seconds before converting DragonBallScroll again.");
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement