- Thread Author
- #1
I try to make that it would teleport only when inventory is full and he is at bank area i have area in my code but it teleports me no matter where i am.
if (Inventory.isFull() && !bankArea.contains(Players.getLocal())) {
if (!Lodestone.isInterfaceOpen()) {
if (Lodestone.openInterface()) {
Execution.delayUntil(Lodestone::isInterfaceOpen, 1200, 1600); if (Lodestone.KARAMJA.teleport()) {
Execution.delayUntil(() ->
!bankArea.contains(Players.getLocal()) );
;}
}
}
}
if (!Lodestone.isInterfaceOpen()) {
if (Lodestone.openInterface()) {
Execution.delayUntil(Lodestone::isInterfaceOpen, 1200, 1600); if (Lodestone.KARAMJA.teleport()) {
Execution.delayUntil(() ->
!bankArea.contains(Players.getLocal()) );
;}
}
}
}