Hello everyone, this is my first script. It will probably look terrible to an experienced eye. Currently it checks if it needs to bank, starts the previous dream, enters NMZ, kills Elvarg, loots his bones, leaves, and does it all again. I'm running into the issue that NMZ is very laggy, script wont respond to user input, has high CPU and Memory usage. Any advise is welcome!
case FIGHT:
{
target = npcs.closest("Elvarg");
target.interact("Attack");
sleep(random(2500, 4800));
new ConditionalSleep(4000, 500) {
@Override
public boolean condition() throws InterruptedException {
return myPlayer().isUnderAttack();
}
}.sleep();