Hello,
I spend last few hours looking into this method to fix arrow hint for target. The problem is at
Code:
public static void drawMinimapMarkTarget(Client client, int y, int x) {
see red text
Code:
if (distance > 4225) {
int i1 = client.viewRotation + client.minimapRotation & 0x7ff;
int j1 = Model.modelIntArray1[i1];
int k1 = Model.modelIntArray2[i1];
j1 = (j1 * 256) / (client.minimapZoom + 256);
k1 = (k1 * 256) / (client.minimapZoom + 256);
int l1 = y * j1 + x * k1 >> 16;
int i2 = y * k1 - x * j1 >> 16;
double d = Math.atan2(l1, i2);
int j2 = (int) (Math.sin(d) * 63D);
int k2 = (int) (Math.cos(d) * 57D);
y = (94 + j2 + 4) - 10;
x = 83 - k2 - 20;
x += Client.isFixedScreen() ? 0 : 0;
y += Client.isFixedScreen() ? 0
: (Client.getClientWidth()) - Client.getFullscreenModeMinimapX(224);
Client.instance.mapEdgeMarker.method353(x + 5, 0.0, y + 35);
return;
}
output ingame: 
The target location is currently west but the arrow always point north because of 0.0 value. If I input there value of minimap rotation d
Code:
Client.instance.mapEdgeMarker.method353(x + 5, d, y + 35);
it works but the sprite mapEdgeMarker looks like this
Code:
public void method353(int i, double d, int l1) {
//all of the following were parameters
int j = 15;
int k = 14;
int l = 23;
int j1 = 256;
int k1 = 30;
//all of the previous were parameters
try {
int i2 = -k / 2;
int j2 = -k1 / 2;
int k2 = (int) (Math.sin(d) * 65536D);
int l2 = (int) (Math.cos(d) * 65536D);
k2 = k2 * j1 >> 8;
l2 = l2 * j1 >> 8;
int i3 = (l << 16) + (j2 * k2 + i2 * l2);
int j3 = (j << 16) + (j2 * l2 - i2 * k2);
int k3 = l1 + i * DrawingArea.width;
for (i = 0; i < k1; i++) {
int l3 = k3;
int i4 = i3;
int j4 = j3;
for (l1 = -k; l1 < 0; l1++) {
int index = (i4 >> 16) + (j4 >> 16) * myWidth;
if (index > myPixels.length - 1) {
continue;
}
int k4 = myPixels[index];
if (k4 != 0)
DrawingArea.pixels[l3++] = k4;
else
l3++;
i4 += l2;
j4 -= k2;
}
i3 += k2;
j3 += l2;
k3 += DrawingArea.width;
}
}
catch (Exception e) {
e.printStackTrace();
}
}
Any advice where can be problem will be really helpful