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]