[Release] search <name> method. NO MORE GM HANDBOOK!

Page 1 of 8 12345678 LastLast
Results 1 to 15 of 114
  1. #1
    Member intutiondone is offline
    MemberRank
    Jun 2008 Join Date
    84Posts

    [Release] search <name> method. NO MORE GM HANDBOOK!

    Now you can find IDs IN THE GAME without the need of a GM handbook! Just use the !search command!

    NOTE NOTE NOTE NOTE: If you are looking for something with spaces, use % instead of a space

    FOR EXAMPLE YOU WANT TO LOOK FOR BLUE SNAIL SO YOU WOULD TYPE Blue%snail


    !search <name>

    Once you do so, it will give you a list of names and IDs. Punch in the ID and you're good to go!



    Okay here is how to do it: (Sorry no patch! but feel free to make your own and share it)

    Open net.sf.odinms.client.messages.CommandProcessor.java

    Find
    Code:
    import org.slf4j.LoggerFactory;
    Add after:
    Code:
    import java.net.URL;
    import java.net.URLConnection;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.io.InputStreamReader;
    Find:
    Code:
    else if (splitted[0].equals("!fullhp")) {
    				player.setHp(player.getMaxHp());
    				player.updateSingleStat(MapleStat.HP, player.getMaxHp());
    				player.setMp(player.getMaxMp());
    				player.updateSingleStat(MapleStat.MP, player.getMaxMp());
    
    			}
    Add After:
    Code:
    else if (splitted[0].equals("!search")) {
    				try {
    
    				    URL                url;
    				    URLConnection      urlConn;
    				    BufferedReader    dis;
    
    				    url = new URL("http://www.mapletip.com/search_java.php?search_value=" + splitted[1] + "&check=true");
    
    				    urlConn = url.openConnection();
    				    urlConn.setDoInput(true);
    				    urlConn.setUseCaches(false);
    
    				    dis = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
    				    String s;
    				 
    				    while ((s = dis.readLine()) != null) {
    				    	mc.dropMessage(s);
    				    }
    				    dis.close();
    				    }
    				    catch (MalformedURLException mue) {}
    				    catch (IOException ioe) {}
    			}
    And that's it!

    Have fun everyone

    NOTE NOTE NOTE NOTE: If you are looking for something with spaces, use % instead of a space

    FOR EXAMPLE YOU WANT TO LOOK FOR BLUE SNAIL SO YOU WOULD TYPE Blue%snail


  2. #2
    Member darkphoenix is offline
    MemberRank
    Jun 2008 Join Date
    98Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    looks like its alot of fun ^^ nice release there

  3. #3
    Account Upgraded | Title Enabled! itzikd is offline
    MemberRank
    Apr 2008 Join Date
    207Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    but doesnt the room in chat finshe?

  4. #4
    Account Upgraded | Title Enabled! brainbracker is offline
    MemberRank
    Apr 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    Wow... I like it. ;)

  5. #5
    Apprentice aeronux is offline
    MemberRank
    Jul 2008 Join Date
    16Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    This looks awesome :0 Super useful instead of getting all kinds of Handbooks.

  6. #6
    :) RpViet is offline
    MemberRank
    Jun 2008 Join Date
    356Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    O wow, that's a great command!

  7. #7
    Member intutiondone is offline
    MemberRank
    Jun 2008 Join Date
    84Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    NOTE NOTE NOTE NOTE: If you are looking for something with spaces, use % instead of a space

    FOR EXAMPLE YOU WANT TO LOOK FOR BLUE SNAIL SO YOU WOULD TYPE Blue%snail

  8. #8
    Alpha Member OmgItsParm is offline
    MemberRank
    Apr 2008 Join Date
    2,070Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    Very Nice! :D

  9. #9
    Alpha Member ch1nkayy is offline
    MemberRank
    Apr 2008 Join Date
    2,145Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    this is so useful! nice!!

  10. #10
    Member MeowMixer is offline
    MemberRank
    Apr 2008 Join Date
    55Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    I love you (no homo). Really nice release, alot faster than actually searching mapletip. Best part about it connecting to the actual website is that it's always updated.

  11. #11
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    Wow, this is great! I like it :)

  12. #12
    while(true) spam(); kevintjuh93 is offline
    MemberRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,119Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    I cant get it to work..
    Help me!
    When I build it gives me errors!

  13. #13
    Member intutiondone is offline
    MemberRank
    Jun 2008 Join Date
    84Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    Quote Originally Posted by kevintjuh93 View Post
    I cant get it to work..
    Help me!
    When I build it gives me errors!
    You obviously didn't put it in correctly. Follow the instructions precisely.

  14. #14
    Account Upgraded | Title Enabled! flashlights is offline
    MemberRank
    Jun 2008 Join Date
    307Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    How come i get error CommandProcessor.java:1461: 'else' without 'if'
    else if (splitted[0].equals("!search")) {
    1 error
    BUILD FAILED (total time: 1 second)

  15. #15
    Account Upgraded | Title Enabled! RMZero213 is offline
    MemberRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [Release] !search <name> method. NO MORE GM HANDBOOK!

    Quote Originally Posted by flashlights View Post
    How come i get error CommandProcessor.java:1461: 'else' without 'if'
    else if (splitted[0].equals("!search")) {
    1 error
    BUILD FAILED (total time: 1 second)
    Add a } before the else.



Page 1 of 8 12345678 LastLast

Advertisement