Exemplo n.º 1
0
        public string handeledViewerOutput(string mssage)
        {
            if (mssage.ToLower().Contains(this.brand.ToLower() + "-on"))
            {
                Enabled = true;
                form.setBox(Enabled);

                frame.SendUserAlert("Encryption Enabled");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-off"))
            {
                Enabled = false;

                frame.SendUserAlert("Encryption Disabled");
                form.setBox(Enabled);
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-key"))
            {
                int offset = this.brand.Length + 4;
                form.setKey(mssage.Substring(mssage.ToLower().IndexOf(this.brand.ToLower() + "-key") + offset).Trim());
                frame.SendUserAlert("Key now set to " + mssage.Substring(mssage.ToLower().IndexOf(this.brand.ToLower() + "-key") + offset).Trim());
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-"))
            {
                frame.SendUserDialog(this.brand + "", "Encryption", "Messenger", "What do you want me to do?", new string[] { "S-ON", "S-OFF", "S-HELP", "S-ABOUT" });
                return("die");
            }

            return("go");
        }
Exemplo n.º 2
0
        public string handeledViewerOutput(string mssage)
        {
            if (mssage.ToLower().Contains(this.brand.ToLower() + "-on"))
            {
                Enabled = true;
                form.setBox(Enabled);

                frame.SendUserAlert("1337 Enabled");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-off"))
            {
                Enabled = false;

                frame.SendUserAlert("1337 Disabled");
                form.setBox(Enabled);
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-level"))
            {
                int offset = this.brand.Length + 6;
                form.setLevel(int.Parse(mssage.Substring(mssage.ToLower().IndexOf(this.brand.ToLower() + "-level") + offset).Trim()));
                frame.SendUserAlert("1337 level now set to " + mssage.Substring(mssage.ToLower().IndexOf(this.brand.ToLower() + "-level") + offset).Trim());
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-help"))
            {
                frame.SayToUser("I am too lazy to write help");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-about"))
            {
                frame.SayToUser("This program was made by LordGregGreg for the purpose ...");
                frame.SayToUser("Special Thanks to \"Philip Linden\" (yeah, thats not his actual sl name)\n" +
                                "and the OpenMetaverse project, and all it's contributors.\n");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-"))
            {
                frame.SendUserDialog(this.brand + "", "leet ", "speek", "What do you want me to do?", new string[] { "ls-ON", "ls-OFF", "ls-HELP", "ls-ABOUT" });
                return("die");
            }

            return("go");
        }
Exemplo n.º 3
0
        public string handeledViewerOutput(string mssage)
        {
            if (mssage.ToLower().Contains(this.brand.ToLower() + "-on"))
            {
                Enabled = true;
                form.setBox(Enabled);

                frame.SendUserAlert("Handicap TP Enabled");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-off"))
            {
                Enabled = false;

                frame.SendUserAlert("Handicap TP Disabled");
                form.setBox(Enabled);
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-help"))
            {
                frame.SayToUser("Thanks for using the handicap teleportation system :).\n" + "To make it work, you must first go to the about menu at the top of your screen\n" +
                                "If you dont see it, press ctrl+alt+shift+D to enable it.\n" +
                                "Go to \"Advanced\" -> \"UI\" and then click \"Double Click Auto Pilot\"" +
                                "\nNow just type in chat \"handi-on\" and double click the ground :)");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-about"))
            {
                frame.SayToUser("This program was made by LordGregGreg for the purpose of allowing\nAvatars who can't walk to get around better.");
                frame.SayToUser("Special Thanks to \"Philip Linden\" (yeah, thats not his actual sl name)\n" +
                                "and the OpenMetaverse project, and all it's contributors.");
                return("die");
            }
            else if (mssage.ToLower().Contains(this.brand.ToLower() + "-"))
            {
                frame.SendUserDialog(this.brand + "", "Teleportation", "Messenger", "What do you want me to do?", new string[] { "handi-ON", "handi-OFF", "handi-HELP", "handi-ABOUT" });
                return("die");
            }

            return("go");
        }
Exemplo n.º 4
0
        public Packet GotTheirName(Packet packet, IPEndPoint sim)
        {
            if (currentBastard != UUID.Zero)
            {
                UUIDNameReplyPacket nr = (UUIDNameReplyPacket)packet;
                for (int i = 0; i < nr.UUIDNameBlock.Length; i++)
                {
                    if (nr.UUIDNameBlock[i].ID == currentBastard)
                    {
                        string whatsup = Utils.BytesToString(nr.UUIDNameBlock[i].FirstName) + " " + Utils.BytesToString(nr.UUIDNameBlock[i].LastName) + " has just removed you from their freinds list!\n" +
                                         "This was at " + System.DateTime.Now.ToShortDateString() + " : " + System.DateTime.Now.ToShortTimeString();

                        frame.SayToUser(whatsup);
                        frame.SendUserAlert(whatsup);
                        frame.SendUserDialog("Freindship", "Over", "Alert!", whatsup, new String[] { "DAMN!" });
                    }
                }
            }

            return(packet);
        }