case TRADE:
Player muler = getPlayers().closest(player -> player != null && player.getName().equals(mule));
if (!trade.isCurrentlyTrading()) {
state = "Trading with mule.";
muler.interact("Trade with");
new org.osbot.rs07.utility.ConditionalSleep(20000) {
@Override
public boolean condition() throws InterruptedException {
return trade.isCurrentlyTrading();
}
}.sleep();
}
why getting null pointer exception for this?