

mousbros
Members-
Posts
31 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by mousbros
-
I'm mad of the inconsistency of the bans. Ban everything or nothing.
-
wut, I got banned. I did turt island by hand, then botted the 7qp by using mirror mode, after that I traded 200k from one of my accounts. Bought some pickaxe on Grand Exchange and stopped. That just banned me. And the account that I trade the 200k from and that one botted everything including turt island and didnt use mirror mode once is still going strong? wtf JamFlex????
-
this is not really good but it works and its noob friendly what youre doin here is youre checking if youre in the specific area so where you gonna be when your dead and then youre gonna walk back to the goblins so (the areas is not good you should do it yourself thats one x and y coardinate tile from bottom left to top right when your looking north) final Area LUMBRIDGE_AREA = new Area (2982,3233,2990,3242); final Area GOBLIN_AREA = new Area (x,y,x,y); if (LUMBRIDGE_AREA .contains(myPosition()){ getWalking().webWalk(GOBLIN_AREA); }
-
I found it!! love for they guys who are helping me in my journey, love for the people in this community. I know im making really stupid mistakes and it is ''spoonfeeding'' but ill start my IT classes soon and hopefully I can pay back to the commmunity what I gained. love
-
Hello as you can see I improve alot and fast, the question is why doesnt the script note the clay before it trades. the script opens the bank withdraws the items and after that it trade the player so it does everything I want except the note part. thanks in advance guys x if (Banks.DRAYNOR.contains(myPosition()) && !getBank().open()) { new ConditionalSleep(3000, 500) { @Override public boolean condition() throws InterruptedException { return getBank().isOpen() && getBank().enableMode(BankMode.WITHDRAW_NOTE); //we will stop sleeping when bank is open. } }.sleep(); }else { log("Depositing Ore and walking back to mine"); getBank().withdrawAll("Clay"); if (getPlayers().closest("name") !=null);{ if (getPlayers().closest("name").interact("Trade with")) { new ConditionalSleep(10000, 5000) { @Override public boolean condition() throws InterruptedException { return getTrade().isFirstInterfaceOpen(); //we will stop sleeping when first interface is open. } }.sleep(); } }
-
how should the script know how much items it mined
mousbros replied to mousbros's topic in Scripting Help
love you made it -
how should the script know how much items it mined
mousbros replied to mousbros's topic in Scripting Help
yea your right, dumb of me. it just goes to 0 when the loop starts again. is there any trick that I can make it remember it how many times it did the loop -
how should the script know how much items it mined
mousbros replied to mousbros's topic in Scripting Help
@Gunman case "MINING": final Area MINING_AREA1 = new Area (2982,3233,2990,3242); int ItemsMade = 0; if (!getInventory().isFull()) { if(MINING_AREA1.contains(myPosition()) && (getInventory().contains("Bronze pickaxe"))){ RS2Object ore = getObjects().closest(11362,11363); if (ore != null) { log ("Found ore"); if (!myPlayer().isAnimating()) { if (!myPlayer().isMoving()) { ore.interact("Mine"); antiban(); ItemsMade += 1; log("Made an item"); if (ItemsMade == 5) { log("Walking to Draynor"); getWalking().webWalk(Banks.DRAYNOR); } } } } } } I did something like this, knows when the item is made cuz I see the log. but it doesnt go to the draynor after 5 ''items are made'' -
how should the script know how much items it mined
mousbros replied to mousbros's topic in Scripting Help
thank you im gonna try that out -
I wanna do something like if 100 tin ores mined then go to state trading but how should the script know how many tin ores it mined. maybe getInventory().containts(Tin ore) +1? I really appereciate your help
-
it seems it doesnt know the depositbox is open, it just closes the bank again and tries to bank againd without depositing. thanks guys in advance case "BANKING": final Area BANKING_AREA = new Area (3044,3233,3050,3236); if(BANKING_AREA.contains(myPosition())){ Entity depobox = objects.closest("Bank deposit box"); if (depobox != null) { sleep(random(757,2345)); if (depobox.interact("Deposit")) { if (depositBox.isOpen()) { log("Try opening bank"); depositBox.depositAllExcept("Bronze pickaxe"); } } } } break;
-
It doesnt click an option, widgets dont return
mousbros replied to mousbros's topic in Scripting Help
my man as you can see im using widgets and it doesnt interact with them, did I place them correct in the script? -
It doesnt click an option, widgets dont return
mousbros replied to mousbros's topic in Scripting Help
case "TALK1": RS2Widget IAM = getWidgets().get(219, 1, 1); sleep(random(1435,2130)); NPC Gielinor = npcs.closest("Gielinor Guide"); if (Gielinor != null) { Gielinor.interact("Talk-to");{ sleep(random(1435,2130)); if(getDialogues().completeDialogueU()) { sleep(random(200, 700)); } } if(IAM != null) { IAM.interact("I've played in the past, but not recently."); } } break; bro i did that plenty of times, it continues untill it hits the options where i have to choose if the player is new or not -
it continue's untill it hits the options and then it just stops thank you in advance ❤ ``` case "TALK1": String[] options = new String []{ "Click to continue","I am brand new! This is my first time here.", "I've played in the past, but not recently.", "I am an experienced player." }; sleep(random(1435,2130)); NPC Gielinor = npcs.closest("Gielinor Guide"); if (Gielinor != null) { Gielinor.interact("Talk-to");{ sleep(random(1435,2130)); if(getDialogues().completeDialogueU(options)) { sleep(random(200, 700)); } } } break; ```
-
Shut up I'm like 10 days into coding Much appreciated for your reply bro, I'm gonna investigate what you did differently and try to fix it
-
its this one bro if(Cow.exists()) { sleep(random(256,2487)); }
-
the title says it all, it does it job, sometimes tho [ERROR][Bot #1][03/06 07:09:07 AM]: Error in script executor! java.lang.NullPointerException at begin.Begin.onLoop(Begin.java:84) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(nj:193) at java.lang.Thread.run(Unknown Source) ``` package begin; import org.osbot.rs07.api.filter.AreaFilter; import org.osbot.rs07.api.filter.NameFilter; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.GroundItem; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author = "Mousbros", info = "", logo = "", name = "EZBEGIN", version = 0) public class Begin extends Script { final Area GOBLIN_AREA = new Area (3250,3223,3264,3242); final Area COW_AREA = new Area (3239,3255,3265,3296); final Area START_AREA = new Area (3242,3228,3263,3250); final Area DIED_AREA = new Area (3217,3215,3226,3222); String status; String food="Salmon"; String GroundItem ="Bones"; public void onExit() { } public void onStart() { } @Override public int onLoop() throws InterruptedException { status=getState(); switch (status) { case "FIGHTING": if(!myPlayer().isAnimating() && !myPlayer().isUnderAttack() && !myPlayer().isMoving()) { NPC Goblin = npcs.closest("Goblin"); if (Goblin != null && Goblin.isAttackable() && Goblin.getName().contains("Goblin")) { if (map.canReach(Goblin)) { log("Attacking that punk ass goblin!"); Goblin.interact("Attack"); } sleep(random(1435,2130)); } } break; case "FIGHTING_COWS": if(!myPlayer().isAnimating() && !myPlayer().isUnderAttack() && !myPlayer().isMoving()) { NPC Cow = npcs.closest("Cow"); if (Cow != null && Cow.isAttackable() && Cow.getName().contains("Cow")) { if (map.canReach(Cow)) { log("Attacking that punk ass Cow!"); Cow.interact("Attack"); } sleep(random(1435,2130)); } if(Cow != null && Cow.getHealthPercent() == 0) { log("Cow we are tracking is dead"); }else { log("LOOT -> chicken we are tracking is not dead?"); Cow = null; } if(Cow.exists()) { sleep(random(256,2487)); } Area corpse = Cow.getArea(1); if(getInventory().getAmount("Bones") >= 0) { GroundItem bones = groundItems.closest(new AreaFilter<GroundItem>(corpse), new NameFilter<GroundItem>("Bones")); if(bones !=null) { log("Found Bones"); bones.interact("Take"); sleep(random(287,2869)); } } while (inventory.contains("Bones")) { log("Bury the Bones"); inventory.interact("Bury", "Bones"); sleep(random(369,2158)); } } break; case "BANKING": if(!getBank().isOpen()) { getBank().open(); log("Try opening bank"); }else{ getBank().depositAll(); } break; case "GOING_TO_BANK": getWalking().webWalk(Banks.LUMBRIDGE_UPPER); break; case "GOING TO GOBLIN_AREA": getWalking().webWalk(GOBLIN_AREA); break; case "GOING_TO_COW_AREA": getWalking().webWalk(COW_AREA); break; } return random (2456,3450); } public String getState(){ if(START_AREA.contains(myPosition()) && !getInventory().isEmpty()&& myPlayer().getCombatLevel() == 3){ return "GOING_TO_BANK"; }else if (Banks.LUMBRIDGE_UPPER.contains(myPosition()) && !getInventory().isEmpty()) { return "BANKING"; }else if (Banks.LUMBRIDGE_UPPER.contains(myPosition()) && getInventory().isEmpty()) { return "GOING TO GOBLIN_AREA"; }else if(GOBLIN_AREA.contains(myPosition()) && myPlayer().getCombatLevel() < 10){ return "FIGHTING"; }else if(GOBLIN_AREA.contains(myPosition()) &&myPlayer().getCombatLevel() >= 10){ return "GOING_TO_COW_AREA"; }else if (COW_AREA.contains(myPosition()) && myPlayer().getCombatLevel() >= 10){ return "FIGHTING_COWS"; }else if(Banks.LUMBRIDGE_UPPER.contains(myPosition()) && !inventory.contains(food)){ return "BANKING"; }else if(GOBLIN_AREA.contains(myPosition()) && !inventory.contains(food) && myPlayer().getHealthPercent()<30){ return "GOING_TO_BANK"; }else{return "GOING TO GOBLIN_AREA";} } } ```
-
guys, I wanna loot some epic bones and bury them, but how. I know how to interact with my inventory but idk how to make the script look for bones that it just found
-
I searched in the API but I cant find it. I wanna create that my script swtiches attackstyle at a certain level. Like attack is <10 switch to defence, defence is <10 switch to strength. thank you in advance
-
thanks you, I hate reading im learning trough projects and face problems like this and overcome them. I wont stop untill I got a fully functional script and hopefully understand JAVA way better. thanks for the help
-
true thats why, I want to create my own method, I want to use it from the ground up so i'ts starts from lumbridge and it will quest, fight goblins etc. I'm using the switch statements. is that a good idea to use that for a complex script?
-
how do I remove a topic?? i found the problem tho yaaay it was a syntax error.... thank you for the answer much love!
-
package begin; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Mousbros", info = "", logo = "", name = "EZBEGIN", version = 0) public class Begin extends Script { final Area BEGIN_AREA = new Area (3233,3218,3237,3226); final Area BANK_AREA = new Area(3092,3240,3095,3246); public void onExit() { } public void onStart() { } @Override public int onLoop() throws InterruptedException { if(!getInventory().isEmpty()) { if (BEGIN_AREA.contains(myPlayer())) { log("not empty"); getWalking().webWalk(BANK_AREA); } }else { if(!getInventory().isEmpty()) { if (BANK_AREA.contains(myPlayer())) { RS2Object banker = getObjects().closest(10355); if (bank.getBank().isOpen()) { bank.depositAll(); } else { if (banker != null) { if (banker.isVisible()) { banker.interact("Bank"); sleep(random(998, 7896)); } } } }else { getWalking().webWalk(BANK_AREA); } } } return 50; } }