Jump to content

what the fuck osbot 2


Recommended Posts

Posted

	private Condition attackNPC = new Condition(){
		NPC npc;
		@Override
		public boolean validate() {
			s.npcs.closest(GUI.npcToKill);
			return npc != null && !isDoingSomething() && !npc.isUnderAttack() && npc.getHealth() >= 2 && npc.exists();
		}

		@Override
		public void execute() throws InterruptedException {			
			s.camera.toEntity(npc);
			npc.interact("Attack");
			Script.sleep(Script.random(3000,6000));
			while (isDoingSomething()) {
				Script.sleep(10);
			}
		}
	};

literally works fine in one of my script but im trying to use the same method in another one of my scripts and IT DOESNT WANT TO WORK! FUCK!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...