Thread: [718/Matrix]Itemdb.biz Search Command[718/Matrix]

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [718/Matrix]Itemdb.biz Search Command[718/Matrix] 
    Banned
    Join Date
    Jul 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    hey guys im new here and i made a ::itemdb search command

    what it does:

    when you type ::itemdb texthere

    it will open a browser with this url: ItemDB | 724 TYPED TEXT AFTER ::itemdb command


    fixed version!!@!@

    Code:
    			case "itemdb":
    				String itemsearch = "";
    				for (int i = 1; i < cmd.length; i++)
    				itemsearch += cmd[i] + ((i == cmd.length - 1) ? "" : "%20");
    				player.getPackets().sendOpenURL("http://itemdb.biz/index.php?search=" + itemsearch);
    				return true;
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jul 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    just found out it doesnt works with spaces in it if someone can fix it i would appreciate it lol
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Aug 2012
    Posts
    57
    Thanks given
    32
    Thanks received
    24
    Rep Power
    12
    try using an _ instead of a space
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jul 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    ty i try now
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2010
    Posts
    705
    Thanks given
    96
    Thanks received
    36
    Rep Power
    16
    replace (" ", "_"); ..... too easy fix?

    Quitted Development
    Spoiler for Siggy ;D:

    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jul 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    not working it does like this itemdb.biz/search=dragon_claws which results in no search results ty for your help though
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Jul 2009
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    i have the solution:

    Code:
    			case "itemdb":
    				String itemsearch = "";
    				for (int i = 1; i < cmd.length; i++)
    				itemsearch += cmd[i] + ((i == cmd.length - 1) ? "" : "%20");
    				player.getPackets().sendOpenURL("http://itemdb.biz/index.php?search=" + itemsearch);
    				return true;
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Oct 2011
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Try + instead on underscore. So like temdb.biz/search=dragon+claws
    Reply With Quote  
     

  9. #9  
    Registered Member Taylor Moon's Avatar
    Join Date
    Aug 2012
    Posts
    2,565
    Thanks given
    625
    Thanks received
    1,303
    Rep Power
    66
    if(cmd.length > 2)
    replaceAll(" ", "+");
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Oct 2008
    Posts
    865
    Thanks given
    75
    Thanks received
    56
    Rep Power
    483
    Don't take this the wrong way, but why do you need to connect to itemdb.biz for this? Doesn't Matrix already load item defs from cache? If so, then you can just search through the loaded defs on your server.

    Good job though, none-the-less.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Matrix 718.
    By Tyler. in forum Projects
    Replies: 93
    Last Post: 06-27-2012, 06:38 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •