Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Assume

Scripter
  • Content Count

    5,949
  • Joined

  • Last visited

  • Days Won

    38
  • Feedback

    100%

Assume last won the day on August 9 2016

Assume had the most liked content!

Community Reputation

1,021 Excellent

About Assume

  • Rank
    Assuming makes an ass of you and me

Recent Profile Visitors

12,459 profile views
  1. package scripts.assume_staker.staker_api.types.screens; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.tribot.api.General; import org.tribot.api2007.Game; import org.tribot.api2007.Interfaces; import org.tribot.api2007.types.RSInterface; import org.tribot.api2007.types.RSVarBit; import scripts.assume_staker.main.Settings; import scripts.assume_staker.staker_api.methods.DefaultMethods; public enum InterfaceIconsFirstScreen { NO_FORFEIT(482, 50, 0, -1), NO_MOVEMENT(482, 51, 1, -1), NO_WEAPON_SWITCH(482, 52, 2, -1), SHOW_INVENTORIES(482, 53, 3, -1), NO_RANGED(482, 54, 4, -1), NO_MELEE(482, 55, 5, -1), NO_MAGIC(482, 56, 6, -1), NO_DRINKS(482, 57, 7, -1), NO_FOOD(482, 58, 8, -1), NO_PRAYER(482, 59, 9, -1), OBSTACLES(482, 60, 10, -1), FUN_WEAPONS(482, 61, 12, -1), NO_SPECIAL_ATTACK(482, 62, 13, -1), HELMET(482, 80, 14, 643), CAPE(482, 81, 15, 644), NECKLACE(482, 82, 16, 645), WEAPON(482, 83, 17, 646), BODY(482, 84, 18, 647), SHIELD(482, 85, 19, 648), LEGS(482, 86, 21, 650), GLOVES(482, 87, 23, 652), BOOTS(482, 88, 24, 653), RING(482, 89, 26, 655), AMMO(482, 90, 27, 656); private static final int SETTING_INDEX = 286; private int parent; private int child; private int bytemod; private int varbit; InterfaceIconsFirstScreen(int parent, int child, int bytemod, int varbit) { this.parent = parent; this.child = child; this.bytemod = bytemod; this.varbit = varbit; } public int getParent() { return parent; } public int getChild() { return child; } public int getByteMod() { return bytemod; } public int getVarbit() { return varbit; } public boolean isSelected() { return getVarbit() == -1 ? ((Game.getSetting(SETTING_INDEX) >> getByteMod()) & 0x1) == 1 : RSVarBit.get(getVarbit()).getValue() == 1; } public static InterfaceIconsFirstScreen[] getAllWhipping() { List<InterfaceIconsFirstScreen> list = new ArrayList<InterfaceIconsFirstScreen>(); for (InterfaceIconsFirstScreen f : values()) if (!f.equals(NO_MELEE) && !f.equals(OBSTACLES) && !f.equals(FUN_WEAPONS) && !f.equals(WEAPON) && !f.equals(NO_WEAPON_SWITCH)) list.add(f); return list.toArray(new InterfaceIconsFirstScreen[list.size()]); } public static InterfaceIconsFirstScreen[] getAllDDSing() { List<InterfaceIconsFirstScreen> list = new ArrayList<InterfaceIconsFirstScreen>(); for (InterfaceIconsFirstScreen f : values()) if (!f.equals(NO_MELEE) && !f.equals(OBSTACLES) && !f.equals(FUN_WEAPONS) && !f.equals(WEAPON) && !f.equals(NO_SPECIAL_ATTACK) && !f.equals(NO_WEAPON_SWITCH)) list.add(f); return list.toArray(new InterfaceIconsFirstScreen[list.size()]); } public static InterfaceIconsFirstScreen[] getAllBoxing() { List<InterfaceIconsFirstScreen> list = new ArrayList<InterfaceIconsFirstScreen>(); for (InterfaceIconsFirstScreen f : values()) if (!f.equals(NO_MELEE) && !f.equals(OBSTACLES) && !f.equals(FUN_WEAPONS) && !f.equals(NO_WEAPON_SWITCH)) list.add(f); return list.toArray(new InterfaceIconsFirstScreen[list.size()]); } public static InterfaceIconsFirstScreen[] getRequiredInterfacesForFix(InterfaceIconsFirstScreen[] mode) { List<InterfaceIconsFirstScreen> list = new ArrayList<InterfaceIconsFirstScreen>(); List<InterfaceIconsFirstScreen> mode_list = Arrays.asList(mode); for (InterfaceIconsFirstScreen x : values()) { boolean is_selected = x.isSelected(); if (is_selected && !mode_list.contains(x)) list.add(x); if (!is_selected && mode_list.contains(x)) list.add(x); } return list.toArray(new InterfaceIconsFirstScreen[list.size()]); } public static void clickAll(InterfaceIconsFirstScreen[] all_for_fix, InterfaceIconsFirstScreen[] mode_full, boolean isFix) { List<InterfaceIconsFirstScreen> x = Arrays.asList(mode_full); for (InterfaceIconsFirstScreen r : all_for_fix) { if (!DefaultMethods.isFirstInterfaceUp()) return; if (Settings.default_duel_method.valueIsCorrect()) return; RSInterface y = Interfaces.get(r.getParent(), r.getChild()); if (x.contains(r) && r.isSelected()) continue; if (y != null) { if (!isFix) { if (General.random(1, 25) <= 1) continue; } if (Settings.default_duel_method.valueIsCorrect()) return; y.click(""); General.sleep(150, 300); } } } } Here's how to determine what settings are set or need to be set to match a certain duel type. Hasn't been updated in years so it's possible the values are off but I doubt the method has changed.
  2. Quarantine has people bored.
  3. If you update to the latest version of DaxWalker it probably works. But also maybe not because it figured out what teleports to withdraw automatically based on prior actions and I'm sure a lot of code has changed in the walker since I last did anything to it. If you delete the code to auto withdraw teleports and update tax it'll work for sure. Or you can set the lite flag and it'll work without banking. Code is probably not all that great, wrote most of it my senior year of HS. https://github.com/Assume/CombatAIO
  4. delete it pls i dont sell anything
  5. I apologize it hasn't been updated. Got caught with some IRL stuff. I am flying back to college tonight and will have time tomorrow to get it back to its full glory.
  6. The demand for stakers just isn't there anymore especially with the new rules removing Xing.
  7. Script has been updated for the new duel arena. I have unfortunately been able to do extensive testing due to some outside circumstances so I have opened a 10 hour free trial for people to test it. Please let me know how it goes.
  8. 3-4 days. Only because I have a very busy schedule and never know when I will be able to commit time to programming/bug fixing.
  9. Tribot no longer allows unlimited instances. I have heard about issues with guthans. Unfortunately no one has been willing to lend me an account to fix it. I will check to see why that is happening.
×
×
  • Create New...