Beispiel #1
0
        public void OpenGoldPouches()
        {
            while (Client.GoldPouches.Count > 0)
            {
                int counter = 0;

                if (Client.session.Connected == true)
                {
                    long itemUUID = Client.GoldPouches.Dequeue();
                    this.Send(PacketFactory.OpenCashPouch(itemUUID));
                    Thread.Sleep(3000);
                    this.Send(PacketFactory.FinishOpenCashPouch(itemUUID));
                    Thread.Sleep(1000);
                    Console.WriteLine("Opened gold pouch!");
                    counter++;
                    if (counter % 3 == 0)
                    {
                        Console.WriteLine("Crashing nearby assholes!");
                        this.Send(PacketFactory.CrashNearbyPlayers(this.Client.Magic));
                    }
                }
                else
                {
                    return;
                }
            }
        }