Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var rarities = [ItemRarity.COMMON, ItemRarity.UNCOMMON, ItemRarity.RARE, ItemRarity.EPIC, ItemRarity.LEGENDARY];
- var autoSell = setInterval(function(){
- game.inventory.slots.forEach(function(i,x){
- if (i != null) {
- var equipped = game.equipment.slots.filter(function(e){return e != null && e.type == i.type})[0];
- if (equipped != null && (rarities.indexOf(i.rarity) < rarities.indexOf(equipped.rarity) && i.level < equipped.level)) {
- game.inventory.sellItem(x);
- }
- }
- });
- },0);
- var autoFight = setInterval(function() {
- if (game.player.health * 2 >= game.player.getMaxHealth()) {
- attackButtonClick();
- }
- },0);
Advertisement
Add Comment
Please, Sign In to add comment