Exemplo n.º 1
0
        public override void main()
        {
            Console.WriteLine("Creating new instance, connecting and entering");
            bot = new Instance("VP Bot")
                .Login(VPNetExamples.Username, VPNetExamples.Password)
                .Enter(VPNetExamples.World);

            bot.Say("!bounce");
            bot.Wait(0);
        }
Exemplo n.º 2
0
        public override void main()
        {
            Console.WriteLine("Creating new instance, connecting and entering");
            bot = new Instance("VP Bot")
                .Login(VPNetExamples.Username, VPNetExamples.Password)
                .Enter(VPNetExamples.World);

            Console.WriteLine("Saying hello");
            bot.GoTo();
            bot.Say("Hello world!");
            bot.Wait(1000);
        }
Exemplo n.º 3
0
        public override void main()
        {
            Console.WriteLine("Creating new instance, connecting and entering");
            bot = new Instance("Sender")
                .Login(VPNetExamples.Username, VPNetExamples.Password)
                .Enter(VPNetExamples.World);

            bot2 = new Instance("Receiver")
                .Login(VPNetExamples.Username, VPNetExamples.Password)
                .Enter(VPNetExamples.World);

            bot.Avatars.Enter += Avatars_Enter;
            bot2.Console += bot2_Console;
            bot.GoTo();
            bot2.GoTo();

            Console.WriteLine("Trying plain broadcast");
            bot.ConsoleBroadcast("hello", "Hello everybody!");
            bot.Wait(1000);
            bot2.Wait(1000);
            Thread.Sleep(1000);

            Console.WriteLine("Trying styled broadcast");
            bot.ConsoleBroadcast(ChatEffect.Bold, new Color(128,0,0), "", "How are you?");
            bot.Wait(1000);
            bot2.Wait(1000);
            Thread.Sleep(1000);

            for (var i = 0; i < 100; i++)
            {
                bot.Wait(10);
                bot2.Wait(10);
                Thread.Sleep(100);
            }

            bot.Avatars.Enter -= Avatars_Enter;
            bot2.Console -= bot2_Console;
        }
Exemplo n.º 4
0
        public override void main()
        {
            Console.WriteLine("Creating new instance, connecting and entering");
            bot = new Instance("VP Bot")
                .Login(VPNetExamples.Username, VPNetExamples.Password)
                .Enter(VPNetExamples.World);

            bot.Property.ObjectClick += Property_ObjectClick;
            bot.GoTo();

            while (true)
                bot.Wait(100);

            bot.Property.ObjectClick -= Property_ObjectClick;
        }