Code:
case 104:
int actionIndex = inStream.getByteC();
int displayType = inStream.getByteA();
String playerAction = inStream.readString();
if(actionIndex >= 1 && actionIndex <= 5) {
if(playerAction.equalsIgnoreCase("null"))
playerAction = null;
atPlayerActions[actionIndex - 1] = playerAction;
atPlayerArray[actionIndex - 1] = displayType == 0;
}
packetId = -1;
return true;
only supports 1 >= && <= 5
Code:
player.getActionSender().sendPlayerOption(4, false, "Follow");
player.getActionSender().sendPlayerOption(5, false, "Trade With");
is 4 and 5, 3 is usually attack
so try 2 or 1
also make sure something else isn't writing over it, by default in PI it'll have the sendOptions in process
Code:
getActionSender().mapBlackout(0);
getActionSender().walkableInterface(-1);
getActionSender().sendPlayerOption(3, false, "null");
} else {
getActionSender().sendPlayerOption(3, false, "null");
getActionSender().sendPlayerOption(2, false, "null");
}