mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Face bot random direction
This commit is contained in:
@@ -5,6 +5,7 @@ import redone.Constants;
|
|||||||
import redone.game.players.Client;
|
import redone.game.players.Client;
|
||||||
import redone.game.players.PlayerHandler;
|
import redone.game.players.PlayerHandler;
|
||||||
import redone.game.shops.ShopHandler;
|
import redone.game.shops.ShopHandler;
|
||||||
|
import redone.util.Misc;
|
||||||
|
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -49,6 +50,8 @@ public class BotHandler
|
|||||||
client.getPlayerAssistant().movePlayer(player.getX(), player.getY(), player.getH());
|
client.getPlayerAssistant().movePlayer(player.getX(), player.getY(), player.getH());
|
||||||
|
|
||||||
|
|
||||||
|
client.faceUpdate(player.face);
|
||||||
|
client.turnPlayerTo(player.getX() + Misc.random(-1, 1), player.getY() + Misc.random(-1, 1));
|
||||||
int i = 0;
|
int i = 0;
|
||||||
// Remove all items except money
|
// Remove all items except money
|
||||||
for (int item_id : client.playerItems) {
|
for (int item_id : client.playerItems) {
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ public class PlayerHandler {
|
|||||||
playerBotCount++;
|
playerBotCount++;
|
||||||
else
|
else
|
||||||
playerCount++;
|
playerCount++;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
playersCurrentlyOn[i] = "";
|
playersCurrentlyOn[i] = "";
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user