Jump to content

Acerd

Scripter I
  • Posts

    5430
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Acerd

  1. What is this anime show..? Are you implying it's really good or really bad haha?

    its Texhnolyze as it says in the picture and I haven't watched it but its considered one of the most depressing anime that's why the guy in the picture is like that. :boge:

  2. They killed a mentally retarded kid for running at them with a wrench. They have bullet proof vest on what fucking dumb ass would kill a retarded kid for running at them with basically a harmless weapon. 

     

    They killed a guy for running at 2 officers going crazy skipped the taser went straight for lethal force. 

    Not to mention both of these people were black ........

     

    Just goes to show you how SOME of the cops think here in the USA. Poorly trained I think they just like killing people. 

    and/or they despise black people.

  3. because i was bored , i rewrote it:

    import java.util.function.BooleanSupplier;
    import org.osbot.rs07.api.ui.Spells;
    import org.osbot.rs07.api.ui.Tab;
    import org.osbot.rs07.script.Script;
    import org.osbot.rs07.script.ScriptManifest;
    import org.osbot.rs07.utility.ConditionalSleep;
    
    @ScriptManifest(logo = "", name = "Simple Recoil Enchanter", author = "Saiyan", info = "Recoil enchanter", version = 0)
    public class Main extends Script {
    
    	@Override
    	public void onStart() {
    
    		log("recoil enchanter");
    	}
    
    	private class DynamicSleep extends ConditionalSleep {
    		private final BooleanSupplier condition;
    
    		public DynamicSleep(final BooleanSupplier condition, int timeout) {
    			super(timeout);
    			this.condition = condition;
    		}
    
    		@Override
    		public boolean condition() throws InterruptedException {
    			return condition.getAsBoolean();
    		}
    	}
    
    	@Override
    	public int onLoop() throws InterruptedException {
    		if (canEnchant()) {
    			enchantRing();
    			log("enchantRing active");
    		} else {
    			banking();
    			log("banking active");
    		}
    		return 350;
    	}
    
    	private boolean canEnchant() {
    		return getInventory().contains("Sapphire ring") && getInventory().contains("Cosmic rune")
    				&& !getBank().isOpen();
    	}
    
    	private void enchantRing() throws InterruptedException {
    		if (!getTabs().open(Tab.MAGIC)) {
    			getTabs().open(Tab.MAGIC);
    		} else {
    			if (getMagic().canCast(Spells.NormalSpells.LVL_1_ENCHANT)) {
    				if (getMagic().castSpell(Spells.NormalSpells.LVL_1_ENCHANT)) {
    					if (getInventory().interact("Cast", "Sapphire ring")) {
    						new DynamicSleep(() -> getTabs().getOpen() == Tab.MAGIC, 5000).sleep();
    					}
    				}
    			}
    		}
    	}
    
    	@SuppressWarnings("unchecked")
    	private void banking() throws InterruptedException {
    		if (!getBank().isOpen()) {
    			if (getBank().open())
    				new DynamicSleep(() -> getBank().isOpen(), 5000).sleep();
    		} else if (getInventory()
    				.contains(i -> !i.getName().equals("Cosmic rune") && !i.getName().equals("Sapphire ring"))) {
    			getBank().depositAllExcept("Cosmic rune", "Sapphire ring");
    		} else if (!getInventory().contains("Cosmic rune")) {
    			if (getBank().contains("Cosmic rune"))
    				getBank().withdrawAllButOne("Cosmic rune");
    			else
    				stop();
    		} else if (!getInventory().contains("Sapphire ring")) {
    			if (getBank().contains("Sapphire ring"))
    				getBank().withdrawAll("Sapphire ring");
    			else
    				stop();
    		} else {
    			getBank().close();
    		}
    	}
    }
    
    • Like 1
×
×
  • Create New...