Results 1 to 1 of 1
  1. #1
    Gen2us's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    2
    My Mood
    Amazed

    Thumbs up Fortnite working but incomplete player detctor

    Here's my script in java for player detector.
    The problem is that it doesn't clear the previous detected player
    Maybe you can help
    Anyways it's written in java, just debug it and then open fortnite and enjoy...
    [SPOILER]
    Code:
    import java.awt.image.BufferedImage;
    import javax.swing.JFrame;
    import java.awt.AWTException;
    import java.aw*****lor;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Rectangle;
    import java.awt****bot;
    import java.awt.Window;
    
    public class Frame extends JFrame {
    	static boolean running = true;
    	static int sWidth = 1600, sHeight = 900;
    	static Dimension scrDim = new Dimension(sWidth, sHeight);
    	static int KRed[] = new int[]{114, 130, 201, 73};
    	static int KGreen[] = new int[]{116, 128, 141, 44};
    	static int KBlue[] = new int[]{143, 116, 107, 40};
    	static int DxPos, dDxPos;
    	static int DyPos, dDyPos;
    	static int ErrorInterval = 5;
    	static int reptimes = 0;
    	static boolean detected = false;
    	static boolean equals(int DRed, int DGreen, int DBlue) {
    		detected = false;
    		for(int i = 0; i < KRed.length; i++) {
    			for(int j = -ErrorInterval; j < VA(j); j++) {
    				for(int jb = -ErrorInterval; jb < VA(jb); jb++) {
    					for(int jc = -ErrorInterval; jc < VA(jc); jc++) {
    						if(DRed == KRed[i] + j && DGreen == KGreen[i] + jb  && DBlue == KBlue[i] + jc) {
    							detected = true;
    						}
    					}
    				}
    			}
    		}
    		return detected;
    	}
    	public static int VA(int a) {
    		if(a >= 0) {
    			return a;
    		}else {
    			return -a;
    		}
    	}
    	public static void main(String[] args) {
    		while(running) 
    		{
    			Window w = new Window(null)
    			{
    			 @override
    				public void paint(Graphics g)
    				{
    					reptimes ++;
    					if(DxPos != 0 && DyPos != 0) {
    						g.setColor(new Color(1f, 0f, 0f, 0.1f));
    						g.fillRect(DxPos, DyPos, 100, 100);
    					}
    					if((reptimes % 2) == 0) {
    						return;
    					}
    					update(g);
    				}
    			 @override
    				public void update(Graphics g)
    				{
    					paint(g);
    				}
    			};
    			w.setBackground(new Color(0, false));
    			w.setAlwaysOnTop(true);
    			w.setBounds(w.getGraphicsConfiguration().getBounds());
    			w.setBackground(new Color(0, true));
    			w.setVisible(true);
    			try {
    				Robot r = new Robot();
    				Rectangle screnrect = new Rectangle(scrDim);
    				BufferedImage buffedimg = r.createScreenCapture(screnrect);
    				for(int y = 0; y < sHeight; y++) 
    				{
    					for(int x = 0; x < sWidth; x++) 
    					{
    						Color pxcol = new Color(buffedimg.getRGB(x, y));
    						if(equals(pxcol.getRed(), pxcol.getGreen(), pxcol.getBlue())) {
    							dDxPos = DxPos;
    							dDyPos = DyPos;
    							DxPos = x;
    							DyPos = y;
    						}
    					}
    				}
    			} catch (AWTException e) {
    				e.printStackTrace();
    			}
    		}
    
    	}
    
    }
    [/SPOILER]

  2. The Following User Says Thank You to Gen2us For This Useful Post:

    UsernameofTheUnknowZ (03-27-2018)

Similar Threads

  1. Replies: 17
    Last Post: 04-14-2009, 11:18 AM
  2. mpgh public hack works, but i dont know how to work it
    By skope323 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 12-24-2008, 12:27 PM
  3. Why do shotty work but not famas etc.?
    By xtrylanx in forum WarRock - International Hacks
    Replies: 13
    Last Post: 07-09-2007, 02:54 PM
  4. My UCE pointer finder works but how do i find pointer in WarRock?
    By scooby107 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-01-2007, 01:14 PM
  5. idk if this IP spoofer would work but here!
    By stupidiot in forum WarRock - International Hacks
    Replies: 10
    Last Post: 04-30-2007, 06:59 AM