[Release] Avatar Smega Command (Let's you make other people smega!)

Page 1 of 2 12 LastLast
Results 1 to 25 of 40
  1. #1
    Sorcerer Supreme Sathon is offline
    Member +Rank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    [Release] Avatar Smega Command (Let's you make other people smega!)

    Hey, this is a GM command that smega's a message using an avatar smega! What's more, you choose who says the smega! Any player on the server can say it as long as they are on the same channel as you.

    The syntax is !sex [name] [type] [message]

    For type, you put "diablo" "love" or "cloud."

    You'll have to add this at the top of CommandProcessor.java:

    Code:
    import java.lang.String;
    And here's the code for the command:

    Code:
    else if (splitted[0].equals("!sex"))
                {
                    if (splitted.length == 1)
                    {
                        mc.dropMessage("Usage: !amega [name] [type] [message], where [type] is love, cloud, or diablo.");
                    }
                    
                    MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
                    
                    String type = splitted[2];
                    int channel = victim.getClient().getChannel();
                    String text = StringUtil.joinStringFrom(splitted, 3);
                    
                    int itemID = 0;
                    
                    if(type.equals("love"))
                        itemID = 5390002;
                    
                    else if(type.equals("cloud"))
                        itemID = 5390001;
                    
                    else if(type.equals("diablo"))
                        itemID = 5390000;
                    
                    else
                    {
                        mc.dropMessage("Invalid type (use love, cloud, or diablo)");
                        return true;
                    }
                    
                    String[] lines = {"", "", "", ""};
                    
                    if(text.length() > 30)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10, 20);
                        lines[2] = text.substring(20, 30);
                        lines[3] = text.substring(30);
                    }
                    
                    else if(text.length() > 20)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10, 20);
                        lines[2] = text.substring(20);
                    }
                    
                    else if(text.length() > 10)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10);
                    }
                    
                    else if(text.length() <= 10)
                    {
                        lines[0] = text;
                    }
                    
                    LinkedList list = new LinkedList();
                    list.add(lines[0]);
                    list.add(lines[1]);
                    list.add(lines[2]);
                    list.add(lines[3]);
                    
                    try
                    {
                        MaplePacket mp = MaplePacketCreator.getAvatarMega(victim, channel, itemID, list);
                        victim.getClient().getChannelServer().getWorldInterface().broadcastMessage(null, mp.getBytes());
                    }
                    catch(Exception e)
                    {}
                }


  2. #2
    Grand Master boxer1480 is offline
    Grand MasterRank
    Apr 2008 Join Date
    1,031Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    nice ;]

  3. #3
    Grand Master boxer1480 is offline
    Grand MasterRank
    Apr 2008 Join Date
    1,031Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Administrator\Desktop\Final2\build\classes
    Note: C:\Documents and Settings\Administrator\Desktop\New Folder (18)\src\net\sf\odinms\client\messages\CommandProcessor.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    compile:
    Building jar: C:\Documents and Settings\Administrator\Desktop\Final2\dist\JavaProject64.jar
    jar:
    BUILD SUCCESSFUL (total time: 2 seconds)
    normal right?

  4. #4
    Sorcerer Supreme Sathon is offline
    Member +Rank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    That's probably just Netbeans being gay!

  5. #5
    Member HM Scott is offline
    MemberRank
    Feb 2008 Join Date
    ILLocation
    34Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    I remember Sathon, he made the gm handbook for us back at odin..

  6. #6
    Grand Master iGoofy is offline
    Grand MasterRank
    Dec 2007 Join Date
    1,063Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    That's a painfully hilarious command.

  7. #7
    Elite Member stapled is offline
    Member +Rank
    Feb 2008 Join Date
    MySQL databaseLocation
    144Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    hmmmmmm nice command name "!sex"

    its a fun command to make ppl mad lol

  8. #8
    Sorcerer Supreme Sathon is offline
    Member +Rank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Quote Originally Posted by scttyb69 View Post
    I remember Sathon, he made the gm handbook for us back at odin..
    And it's since been stolen and plagiarised many, many times.

  9. #9
    Back? gmsinister is offline
    Grand MasterRank
    Apr 2008 Join Date
    New YorkLocation
    1,655Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    ty so much for your releases sathon your a PRo UBER PRO godly person

  10. #10
    Grand Master boxer1480 is offline
    Grand MasterRank
    Apr 2008 Join Date
    1,031Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    hey sathon i know this is unrelated and all but pets are not coded correct? i do see see a Maplepet.java just wondering :S like if i can even make it so it appears in game im satisfied , and :S how do you enable pins? xDDDD thanks ^^

  11. #11
    Grand Master RMZero213 is offline
    Grand MasterRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Darn, that's nice.

  12. #12
    Sorcerer Supreme Sathon is offline
    Member +Rank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Quote Originally Posted by boxer1480 View Post
    hey sathon i know this is unrelated and all but pets are not coded correct? i do see see a Maplepet.java just wondering :S like if i can even make it so it appears in game im satisfied , and :S how do you enable pins? xDDDD thanks ^^
    Currently, there is no way for you to make pets work. I know some people have been capturing packets and writing code, but I don't believe they have released anything yet.

  13. #13
    IHF iPlayHard is offline
    Grand MasterRank
    Apr 2008 Join Date
    SingaporeLocation
    600Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Thanks for the release :D

  14. #14
    Grand Master xcelinex33 is offline
    Grand MasterRank
    Apr 2008 Join Date
    spooksLocation
    858Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Rofl nice

  15. #15
    Infraction Banned Wilsongb1010 is offline
    Grand MasterRank
    May 2008 Join Date
    New YorkLocation
    1,976Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    woohoo now i can spam xD

  16. #16
    Grand Master joen is offline
    Grand MasterRank
    Jun 2008 Join Date
    the netherlandsLocation
    623Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Could anyone put it in a txt file.. And upload it ?

  17. #17
    Grand Master megoesrawr is offline
    Grand MasterRank
    May 2008 Join Date
    CaliforniaLocation
    873Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    LOL !sex
    Nice one

  18. #18
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    do u really nid to add this?
    Code:
    import java.lang.String;
    i mean is't the java.lang package included automatically in all java file?
    so wads the point of adding that in?

  19. #19
    Grand Master zander145 is offline
    Grand MasterRank
    Apr 2008 Join Date
    Norfolk, VALocation
    966Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    This would be funny when framing somebody that flirting with somebody.. Or afk....

  20. #20
    Member Moofhead is offline
    MemberRank
    Apr 2008 Join Date
    68Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Doesn't work. :(

    I put in CommandProcessor. Compiled, no errors. Then I build Main Project. Move the new .jar to my odinms dist folder. And started up server. It is always

    "command !sex not found"

    Any help?

    Edit: I get errors now.

  21. #21
    Sorcerer Supreme Sathon is offline
    Member +Rank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Quote Originally Posted by alex_soh View Post
    do u really nid to add this?
    Code:
    import java.lang.String;
    i mean is't the java.lang package included automatically in all java file?
    so wads the point of adding that in?
    java.lang is only included if you import it, and my CommandProcessor didn't have it imported, so I needed to add it. I don't know if newer repacks already have it included, but mine didn't, so I told people to do it. If you're a programmer and know that you don't need it in your CommandProcessor, then you can leave it out.

  22. #22
    Sorcerer Supreme Sathon is offline
    Member +Rank
    Feb 2008 Join Date
    C:\Nexon\Location
    275Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Quote Originally Posted by Moofhead View Post
    Doesn't work. :(

    I put in CommandProcessor. Compiled, no errors. Then I build Main Project. Move the new .jar to my odinms dist folder. And started up server. It is always

    "command !sex not found"

    Any help?

    Edit: I get errors now.
    Make sure you put it in the right place and make sure you compiled and copied the new source over properly.

  23. #23
    Member Moofhead is offline
    MemberRank
    Apr 2008 Join Date
    68Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Quote Originally Posted by Sathon View Post
    Make sure you put it in the right place and make sure you compiled and copied the new source over properly.
    Where is the right place? :O

  24. #24
    Grand Master RMZero213 is offline
    Grand MasterRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Quote Originally Posted by Moofhead View Post
    Where is the right place? :O
    Where the other commands are?

  25. #25
    Sorcerer Supreme NamePlawks is offline
    Member +Rank
    Apr 2008 Join Date
    266Posts

    Re: [Release] Avatar Smega Command (Let's you make other people smega!)

    Also put the odinms.jar in the java files.



Page 1 of 2 12 LastLast

Advertisement