[RELEASE] !leeton/!leetoff (Fun Command)

Page 1 of 6 123456 LastLast
Results 1 to 15 of 77
  1. #1
    Account Upgraded | Title Enabled! Sathon is offline
    MemberRank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    [RELEASE] !leeton/!leetoff (Fun Command)

    This is pretty simple. This is just a status that GM's turn on and off with the !leeton and !leetoff commands and what it does it makes the person speak in leetspeak. Here's a picture to describe:








    CommandProcessor.java
    Code:
    else if (splitted[0].equals("!leeton"))
                {
                    MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
                    victim.setLeetness(true);
                    mc.dropMessage("You have given " + victim.getName() + " the gift of 1337ness.");
                    
                    ServernoticeMapleClientMessageCallback cm = new ServernoticeMapleClientMessageCallback(victim.getClient());
            
                    if(!(c.getPlayer().getName().equals(victim.getName())))
                    {
                        cm.dropMessage("You have been given the gift of 1337ness by a GM.");
                    }
                    
                }
                
                else if (splitted[0].equals("!leetoff"))
                {
                    MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
                    victim.setLeetness(false);
                    mc.dropMessage("You have taken away " + victim.getName() + "'s 1337ness.");
                    
                    ServernoticeMapleClientMessageCallback cm = new ServernoticeMapleClientMessageCallback(victim.getClient());
            
                    if(!(c.getPlayer().getName().equals(victim.getName())))
                    {
                        cm.dropMessage("Your 1337ness has been taken away by a GM.");
                    }
                }
    MapleCharacter.java, after this line:
    Code:
    private boolean gm;
    add this line:
    Code:
    private boolean leetness;

    MapleCharacter.java, after this line:
    Code:
    setPosition(new Point(0, 0));
    add this line:
    Code:
    leetness = false;


    MapleCharacter.java, after this code:
    Code:
    public void setLevel(int level) {
                this.level = level-1;
        }
    add this code:
    Code:
    public boolean getLeetness()
        {
            return leetness;
        }
        
        public void setLeetness(boolean setTo)
        {
            leetness = setTo;
        }


    GeneralChatHandler.java, after this code:
    Code:
    if (StringUtil.countCharacters(text, '@') > 4 || StringUtil.countCharacters(text, '%') > 4 ||
                    StringUtil.countCharacters(text, '+') > 6 || StringUtil.countCharacters(text, '$') > 6 ||
                    StringUtil.countCharacters(text, '&') > 6 || StringUtil.countCharacters(text, '~') > 6 ||
                    StringUtil.countCharacters(text, 'W') > 6) {
                    text = "DISREGARD THAT I SUCK COCK";
                }
    add this code:
    Code:
    if(c.getPlayer().getLeetness())
                {
                    String normal = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
                    String leet = "48(d3f9h1jk1mn0PQR57uvwxyz@6cD3F9hiJk|Mn0pqr$+uvWXy2";
                    for(int i = 0; i < 52; i++)
                    {
                        text = text.replace(normal.charAt(i), leet.charAt(i));
                    }
                    text = text.replaceAll("y0u", "j00");
                }
    And that should do it. Enjoy.


  2. #2
    Account Upgraded | Title Enabled! PatTheCow is offline
    MemberRank
    Apr 2008 Join Date
    Your mom's bed.Location
    205Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    LMAO thats awesome lmao.

  3. #3
    Account Upgraded | Title Enabled! Emulation is offline
    MemberRank
    Jul 2008 Join Date
    205Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    LOL NICE ONE.
    I love this other than the smega/!sex command.

  4. #4
    Account Upgraded | Title Enabled! Onesky is offline
    MemberRank
    Aug 2008 Join Date
    In Your BedLocation
    228Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    Nice i might use
    NEW FORUM style suckss

  5. #5
    Account Upgraded | Title Enabled! PatTheCow is offline
    MemberRank
    Apr 2008 Join Date
    Your mom's bed.Location
    205Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    You have given Sathon the gift of 1337ness LMAO! this is so cool haha :P imma use it i think.

  6. #6
    Account Upgraded | Title Enabled! Mgssidley is offline
    MemberRank
    Apr 2008 Join Date
    443Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    Im adding this for sure :D And yea I like the old style more

  7. #7
    Account Upgraded | Title Enabled! kenta7795 is offline
    MemberRank
    Apr 2008 Join Date
    Burlingame, CalLocation
    220Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    Lmfao sweet!

  8. #8
    Proficient Member Hotoshii is offline
    MemberRank
    Jul 2008 Join Date
    SoCalLocation
    180Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    LOL! That has got to be the funnest command evar!

  9. #9
    Account Upgraded | Title Enabled! Lolhamachi is offline
    MemberRank
    May 2008 Join Date
    AustraliaLocation
    265Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    Sathon you made my day man :P
    Been shitty all morning and this just made me lol.
    Thanks.

  10. #10
    Account Upgraded | Title Enabled! ~slimshady is offline
    MemberRank
    Aug 2008 Join Date
    flLocation
    285Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    thats just hysterical.

  11. #11
    Omega ihatehaxor is offline
    MemberRank
    Apr 2008 Join Date
    JerseyLocation
    5,461Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    oo leet style eh

  12. #12
    Account Upgraded | Title Enabled! Sathon is offline
    MemberRank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    Quote Originally Posted by Lolhamachi View Post
    Sathon you made my day man :P
    Been shitty all morning and this just made me lol.
    Thanks.
    Glad I could help.

  13. #13
    Account Upgraded | Title Enabled! lvazn93 is offline
    MemberRank
    Jun 2008 Join Date
    506Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    lol this is a funny command

  14. #14
    Valued Member harrychong is offline
    MemberRank
    May 2008 Join Date
    128Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    LOL ! so funny ! nice release btw :D

  15. #15
    Account Upgraded | Title Enabled! Emulation is offline
    MemberRank
    Jul 2008 Join Date
    205Posts

    Re: [RELEASE] !leeton/!leetoff (Fun Command)

    Quote Originally Posted by ihatehaxor View Post
    oo leet style eh
    Yea.



Page 1 of 6 123456 LastLast

Advertisement