Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
552 B
2
Indexable
Never
  RezzCW main;


    public bolteq(RezzCW main) {
        super();
        super.name = "bolt equipment";
        this.main = main;
    }


    @Override
    public boolean activate() {
        return main.c.desired.contains(Players.local());
    }

    @Override
    public void execute() {
        if (Game.tab(Game.Tab.INVENTORY)) {
            String boltid = "Emerald bolts (e)";
            Item bolts = Inventory.stream().name(boltid).first();
           bolts.interact("Wield");
           Condition.sleep(Random.nextInt(100,30)*50);
       }
}