simple java wow image bot menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    barathrumm's Avatar Private
    Reputation
    1
    Join Date
    Dec 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple java wow image bot

    Hey got inspired of a few other threads here and decided to start building a java wow bot that read info from the screen directly, by reading pixelcolor, however i have run into a little snag, i need to parse the a square of the game area for a strong yellow color rgb(>150, >150>, <10)

    to do this i build a multilevel array with these two functions and then parse each item and checks if they fir the bill on the yellow color, thing is, this is a very slow way of doing it with a complexity(se code) at 30 it takes atleast 10 seckonds, which is alot thinking that this code is going to be run every
    0.2 seckond when looking for a target, any help to optimize this would be of great help


    Code:
    public ArrayList<ArrayList<Color>> getColorGrid(int fx, int fy, int tx, int ty, int complexity) {
    	ArrayList<ArrayList<Color>> result = new ArrayList<ArrayList<Color>>();
    	while (fy < ty) {
    		result.add(getColorLine(fx, tx, fy, complexity));
    		fy = fy+10+complexity;
    	}
    	return result;
    }
    
    public ArrayList<Color> getColorLine(int fx, int tx, int y, int complexity) {
    	ArrayList<Color> colorList = new ArrayList<Color>();
    	while(fx < tx) {
    		colorList.add(robot.getPixelColor(fx, y));
    		fx = fx+10+complexity;
    	}
    	return colorList;
    }

    simple java wow image bot
  2. #2
    Hezpadooka's Avatar Active Member
    Reputation
    15
    Join Date
    May 2008
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If i knew anything about java programming it might be cool.

  3. #3
    barathrumm's Avatar Private
    Reputation
    1
    Join Date
    Dec 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just for anyone who might find and need the help to optimize this, the answer is to take a screenshot save it to a buffered image variable, and then parse the buffered image, instead of grabbing pixels with the robots class directly from the screen.

    made my code go from 4-6sec execution to less than half a second, with a complexity(refer to code in my first post) of 30,
    well about the same time with a complexety of 0 actually, in any case it is MUCH better.
    Last edited by barathrumm; 12-19-2009 at 09:30 PM. Reason: better description

Similar Threads

  1. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 2
    Last Post: 12-10-2024, 05:46 PM
  2. [Help] wow BG bot (Java)
    By pedeg in forum Programming
    Replies: 7
    Last Post: 07-24-2014, 03:20 AM
  3. [Selling] Simple Starter WoW Account with Botting Codes for Leveling, Grinding, ETC $35
    By CheeseburgerTyler in forum WoW-US Account Buy Sell Trade
    Replies: 0
    Last Post: 05-26-2014, 04:58 PM
  4. Java WoW bot??
    By Shadow11 in forum Programming
    Replies: 15
    Last Post: 11-12-2009, 05:12 AM
  5. AutoIt Macro for WoW AFK Bot
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 8
    Last Post: 04-06-2006, 06:01 AM
All times are GMT -5. The time now is 12:46 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search