-
Posts
196 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by Joubot
-
Like I said, still pretty new and I may be misunderstanding how exactly things work. It was my understanding that stealth mode just tells the client to interact with the closest bank and mirror mode takes control of the official client and clicks where it's supposed to click. I've read that they have bank booths in game that exist in code but not actually rendered? Like they can be referenced by the stealth client but a legit client wouldn't be able to click on it so accessing that bank would get you flagged? Again I'm fairly new and my understanding of how this all works probably isn't that great but I find my stealth client bans are significantly higher when accessing banks. Just a thing I've taken notice to and decided to avoid doing and since I've started that my bans have been extremely low. On 3 weeks of pretty simple script that doesn't bank, running with 30-90 minuet bot time and 5-15 minuet breaks 24/7 and no bans yet.
-
I've had an account banned by doing tutorial island by hand in stealth mode before. I just used an afk script to punch in the username and password and then took over by hand. I'm pretty sure they can see what client your game is running on if they look at you for whatever reason. I think they have certain things in place to catch how stealth mode works and I pretty much avoid using stealth mode any time I'm accessing a bank because I feel like in my experience that's when I get banned in stealth. But someone may have also reported you for some reason or another and got you looked at? But mirror mode pretty much takes control of the official game client so if you get looked at you're showing as playing on that and from my understanding it doesn't inject code to access the bank like in stealth mode, it clicks on the bank on the official client. But I'm fairly new myself. Mirror mode is a lot more resource heavy though. I can run about 11-15 stealth clients on a machine that can handle 4-6 mirror clients depending on the script I'm running.
-
Thanks, I think I can make Khaleesi's advice work for now by checking time until break. I need to learn how to make my own break handler, but I have a lot to learn. Not even sure how to go about starting something like that lol.
-
Is there a way to have a function run when the break manager starts a break. I have a boolean I need reset whenever this happens.
-
Got it, thanks
-
I'm having trouble with a function to enter a friends POH. I'm familiar enough with using dialogue that involves simple continues and selecting options, but I can't find out how to enter text when asked for it. I do have a String variable MyHost I would like to use. Any help would be appreciated. void GoHome() throws InterruptedException { if (OutsideArea.contains(myPosition())) { if(getDialogues().inDialogue()) { //Not sure what to put here <<<------- } else { RS2Object MyPortal = getObjects().closest("Portal"); MyPortal.interact("Friend's house"); sleep(3000); } } else if (inventory.contains("Teleport to house")) { getInventory().getItem("Teleport to house").interact("Outside"); sleep(5000); } else { log("Stopping script... No way home"); stop(); } }
-
My script seems to stop immediately and I'm not sure why
Joubot replied to Joubot's topic in Scripting Help
Thanks. I'm familiar with them from Unreal Engine but I'm just getting my feet wet with Java. -
Trying to make a little script to pull equipment from bank and equip it based on attack and defense levels. The script stops as soon as I run it and I'm not exactly sure why. I've tried adding logs to various places but nothing is making it into the logger. Any help would be greatly appreciated. I am also getting some warnings and I don't see how this would be true ===WARNINGS=== Condition 'MyAttackLvl >= 5' is always 'true' Condition 'MyAttackLvl >= 20' is always 'true' Condition 'MyAttackLvl >= 30' is always 'true' Condition 'MyDefenceLvl >= 5' is always 'true' Condition 'MyDefenceLvl >= 20' is always 'true' Condition 'MyDefenceLvl >= 30' is always 'true' ===CODE=== package GearSetter; import org.osbot.rs07.api.ui.EquipmentSlot; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.ui.Skill; @ScriptManifest(name = "GearSetter", author = "Alakazizam",logo = "", version = 0.1, info = "Equips gear for level") public class Main extends Script { int MyAttackLvl = getSkills().getDynamic(Skill.ATTACK); int MyDefenceLvl = getSkills().getDynamic(Skill.DEFENCE); String MyWeapon = ""; String MyHelm = ""; String MyChest = ""; String MyLegs = ""; String MyShield = ""; String MyNecklace = "Amulet of power"; String MyGloves = "Leather gloves"; String MyBoots = "Leather boots"; String MyCape = "Black cape"; @Override public int onLoop() throws InterruptedException { log("Starting script");; SetMyWeapon(); SetMyArmor(); if (!CheckMyGear()) { GoGetGear(); } else { log("Stopping script, you have the proper gear."); stop(false); } return 602; } private void SetMyWeapon() { if (MyAttackLvl < 5) { MyWeapon = "Iron longsword"; log( "Weapon set to Iron longsword"); } else if (MyAttackLvl >= 5 && MyAttackLvl < 20) { MyWeapon = "Steel longsword"; log( "Weapon set to Steel longsword"); } else if (MyAttackLvl >= 20 && MyAttackLvl < 30) { MyWeapon = "Mithril longsword"; log( "Weapon set to Mithril longsword"); } else if (MyAttackLvl >= 30 && MyAttackLvl < 40) { MyWeapon = "Adamant longsword"; log( "Weapon set to Adamant longsword"); } else { MyWeapon = "Rune longsword"; log( "Weapon set to Rune longsword"); } } private void SetMyArmor() { if (MyDefenceLvl < 5) { MyHelm = "Iron full helm"; MyChest = "Iron platebody"; MyLegs = "Iron platelegs"; MyShield = "Iron kiteshield"; log( "Armor set to Iron"); } else if (MyDefenceLvl >= 5 && MyDefenceLvl < 20) { MyHelm = "Steel full helm"; MyChest = "Steel platebody"; MyLegs = "Steel platelegs"; MyShield = "Steel kiteshield"; log( "Armor set to Steel"); } else if (MyDefenceLvl >= 20 && MyDefenceLvl < 30) { MyHelm = "Mithril full helm"; MyChest = "Mithril platebody"; MyLegs = "Mithril platelegs"; MyShield = "Mithril kiteshield"; log( "Armor set to Mithril"); } else if (MyDefenceLvl >= 30 && MyDefenceLvl < 40) { MyHelm = "Adamant full helm"; MyChest = "Adamant platebody"; MyLegs = "Adamant platelegs"; MyShield = "Adamant kiteshield"; log( "Armor set to Adamant"); } else { MyHelm = "Rune full helm"; MyChest = "Rune chainbody"; MyLegs = "Rune platelegs"; MyShield = "Rune kiteshield"; log( "Armor set to Rune"); } } private boolean CheckMyGear() { return getEquipment().isWearingItem(EquipmentSlot.WEAPON, MyWeapon) && getEquipment().isWearingItem(EquipmentSlot.HAT, MyHelm) && getEquipment().isWearingItem(EquipmentSlot.CHEST, MyChest) && getEquipment().isWearingItem(EquipmentSlot.LEGS, MyLegs) && getEquipment().isWearingItem(EquipmentSlot.SHIELD, MyShield) && getEquipment().isWearingItem(EquipmentSlot.AMULET, MyNecklace) && getEquipment().isWearingItem(EquipmentSlot.HANDS, MyGloves) && getEquipment().isWearingItem(EquipmentSlot.FEET, MyBoots) && getEquipment().isWearingItem(EquipmentSlot.CAPE, MyCape); } private void GoGetGear() throws InterruptedException { WalkToBank(); WithdrawGear(); EquipGear(); BankInventory(); } private void WalkToBank() { log("Walking to closest bank"); getWalking().walk(getBank().closest()); log("Arrived at bank"); } private void WithdrawGear() throws InterruptedException { if (!getBank().isOpen()) { bank.open(); } if (!getEquipment().isWearingItem(EquipmentSlot.WEAPON, MyWeapon)) { bank.withdraw(MyWeapon, 1); log("Withdrawing " + MyWeapon); } if (!getEquipment().isWearingItem(EquipmentSlot.HAT, MyHelm)) { bank.withdraw(MyHelm, 1); log("Withdrawing " + MyHelm); } if (!getEquipment().isWearingItem(EquipmentSlot.CHEST, MyChest)) { bank.withdraw(MyChest, 1); log("Withdrawing " + MyChest); } if (!getEquipment().isWearingItem(EquipmentSlot.LEGS, MyLegs)) { bank.withdraw(MyLegs, 1); log("Withdrawing " + MyLegs); } if (!getEquipment().isWearingItem(EquipmentSlot.SHIELD, MyShield)) { bank.withdraw(MyShield, 1); log("Withdrawing " + MyShield); } if (!getEquipment().isWearingItem(EquipmentSlot.AMULET, MyNecklace)) { bank.withdraw(MyNecklace, 1); log("Withdrawing " + MyNecklace); } if(!getEquipment().isWearingItem(EquipmentSlot.HANDS, MyGloves)) { bank.withdraw(MyGloves, 1); log("Withdrawing " + MyGloves); } if (!getEquipment().isWearingItem(EquipmentSlot.FEET, MyBoots)) { bank.withdraw(MyBoots, 1); log("Withdrawing " + MyBoots); } if (!getEquipment().isWearingItem(EquipmentSlot.CAPE, MyCape)) { bank.withdraw(MyCape, 1); log("Withdrawing " + MyCape); } bank.close(); log("Closing bank"); } private void EquipGear() { if (!getEquipment().isWearingItem(EquipmentSlot.WEAPON, MyWeapon)) { getEquipment().equip(EquipmentSlot.WEAPON, MyWeapon); log("Equipping " + MyWeapon); } if (!getEquipment().isWearingItem(EquipmentSlot.HAT, MyHelm)) { getEquipment().equip(EquipmentSlot.HAT, MyHelm); log("Equipping " + MyHelm); } if (!getEquipment().isWearingItem(EquipmentSlot.CHEST, MyChest)) { getEquipment().equip(EquipmentSlot.CHEST, MyChest); log("Equipping " + MyChest); } if (!getEquipment().isWearingItem(EquipmentSlot.LEGS, MyLegs)) { getEquipment().equip(EquipmentSlot.LEGS, MyLegs); log("Equipping " + MyLegs); } if (!getEquipment().isWearingItem(EquipmentSlot.SHIELD, MyShield)) { getEquipment().equip(EquipmentSlot.SHIELD, MyShield); log("Equipping " + MyShield); } if (!getEquipment().isWearingItem(EquipmentSlot.AMULET, MyNecklace)) { getEquipment().equip(EquipmentSlot.AMULET, MyNecklace); log("Equipping " + MyNecklace); } if(!getEquipment().isWearingItem(EquipmentSlot.HANDS, MyGloves)) { getEquipment().equip(EquipmentSlot.HANDS, MyGloves); log("Equipping " + MyGloves); } if (!getEquipment().isWearingItem(EquipmentSlot.FEET, MyBoots)) { getEquipment().equip(EquipmentSlot.FEET, MyBoots); log("Equipping " + MyBoots); } if (!getEquipment().isWearingItem(EquipmentSlot.CAPE, MyCape)) { getEquipment().equip(EquipmentSlot.CAPE, MyCape); log("Equipping " + MyCape); } } private void BankInventory() throws InterruptedException { if (!getBank().isOpen()) { log("Opening bank"); bank.open(); } log("Depositing inventory"); bank.depositAll(); log("Closing bank"); bank.close(); } }
-
Not sure how I didn't notice windows defender popping up, but sure enough... All I did was tell windows defender to allow it to run and now I'm good to go
-
I find it strange that it works fine outside the sandbox program and not inside if an antivirus were the cause. I feel like if the antivirus were the issue it wouldn't be working properly outside the sandbox. I just expanded my little gold farm last night, this is kind of a bummer lol
-
As of this morning when trying to boot up osbot in mirror mode in a sandbox I get a 'Could not load stream library' error. It seems to work fine outside of the sandbox and I've had no issues until this morning. I've uninstalled and reinstalled sandboxie but the problem is still present. Any advice would be appreciated