Jump to content

DragonAlpha

Members
  • Posts

    482
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by DragonAlpha

  1. Inventory i = client.getInventory(); cannot find symbol try not to get hung up on the .inventory vs .getInventory() - you are missing the actual error in his code
  2. FrostBug you are getting hung up on the: inventory vs getInventory() The OP was not doing that. Check the source code he provided (all of it) He was trying to instantiate a new Inventory object. I told him to scrap that, and just call the already declared inventory object, available via 2 methods: .inventory or .getInventory() either of those replacements would have fixed his error His issue has already been resolved.
  3. It's ok. I will be online on the OSBot Chat Box tomorrow if you need more help, it should be easier than making a thread. Also try typing: this. when you type this. your software will list all the options to choose from like: inventory, bank, etc. Its useful.
  4. I already told you. Where it says in your code: Inventory inven = client.getInventroy(); if(!inven.isFull()){ put instead: if(!inventory.isFull()){ Do not try to create an Inventory inven object, remove that line. 1) Remove that line 2) change !inven to !inventory
  5. VIP only lasts for 30 days. Just let the 30 days run up. During those 30 days just use the new account! You can still use your old account for the forums, just use the new vip account for osbot.jar on your computer desktop
  6. type inventory. so the code will be: if(inventory.isFull()) Other example: bank.open(); // open the bank bank.isOpen() // to see if its open or not bank.close if(inventory.contains("Logs")) inventory.isEmpty() objects.closest("Tree").interact("Chop-down"); walking.walk(x, y) Also make sure where it says: public class NAME { change it to public class NAME extends Script {
  7. See the iBot court case. They did something about it. It cost Jagex millions though, and years.
  8. Dang you must love Big Bubba giving you that ass pounding so much, you just can't stop scripting.
  9. Thread topic is "TrumpScript" related to the presidential candidate Donald J Trump. This post is on-topic of the thread. Botre you are from Berlin, you are seeing first hand the extreme damage and disruption nearby you from the millions of Syrian immigrants. Mass-rapes on the native women, particularly the German women. Schools telling their female pupils not to wear skirts because it might excite the migrants, it's your fault. (Most of them are not even Syrian, they are people travelling first to Syria's borders to smuggle in with the migrant wave. Vast majority are men as well, not women/children, so that totally dispells this myth of millions of families). Is Donalid really that unreasonable? Donald Trump wants a wall on the American/Mexican border. Racist? For many years Mexico has had a wall on their south border: Mexican/Columbian border. Mexicans are not racist, they are happy to take Columbian immigrants - they just want it to be a process you apply for. Before they had this wall, there was mass crime, mass drugs flooding in. Nobody says Mexicans are racist. But because Trump has white skin the wall must be racist, and by the way, there is already a wall across most of the border (of America/Mexico).
  10. is making scripts illegal? Like, we're not actually doing the reverse-engineering of the client or helping others to do so (that's all on Alek and Maxi/MGI). But, are they likely to claim you making scripts for others to bot is damaging them or something to do a legal case against you? Jagex sued the American bot developers of the now extinct iBot, and I understand going after the bot makers. Just unsure about the script writing issue.
  11. The correct formula is 2 steps forward, 1 step back.
  12. It's been a while since I've played with these methods, but if I remember correctly there is a drawModel() method. When you click the [x] NPCs debug option, it draws an outline around all NPC models in the game. I reversed OSBot and inserted code to see how it was doing this; there is an internal method called something like: GraphicUtilities.drawModel(obj, color, x, y) I am just going off memory here, but it was definitely the GraphicUtilities class.
  13. What you actually said: Also he doesn't have VIP so has not even used Mirror mode. You positively affirmed that I had never used MirrorMode. How could you know that? With such faulty reasoning, it seems your term "moron" more aptly applies to yourself. (Your reasoning being: does not have VIP right now, therefore has never had it in the past.)
  14. You positively affirmed that I had never used MirrorMode. How could you know that? With such faulty reasoning, it seems your term "moron" more aptly applies to yourself. (Your reasoning being: does not have VIP right now, therefore has never had it in the past.) Also he doesn't have VIP so has not even used Mirror mode.
  15. VIP purchase of 9.99 lasts for 1 month. "he doesn't have VIP" - correct, present tense. "has not even used Mirror mode" - past tense. Use some logic. If your IQ is low I will dumb it down for you: I had VIP in the past. The VIP purchase lasted for 1 month, giving me Mirror Mode access for 1 month. During this 1 month I used mirror mode. I currently do not have VIP.
  16. World of Warcraft have been doing this for over 5 years. Not only looking at your files but also active open processes, and looking through the RAM. What proof do you have for this "law"? What is it called? What proof do you have that it does not lower ban rates? Maxi (an official osbot developer and expert java programmer) writes that Jagex perform a 2 step process. 1) Look for the runescape client running in a non-expected enviornment. That is all he said for the first flagging thing. That does NOT make jagex think you are a bot lol. Can't you read? 2) Further investigation is done on these flagged accounts, much more in-depth than a standard macro investigation. I am roughly paraphrasing what he said. Simply scroll up/go to the previous page to see the exact quote.
  17. Sure. Post from Maxi (an expert Java programmer and osbot developer): "Detection of bots can be divided in two main strategies. The first strategy is detection on a low level, this means detection of the modified RS client. The second strategy is by analysing behaviour of players. Both can be extremely efficient at what they do. Combined they do a pretty good job, considering the banning rates some people are facing on any bot they use. The first strategy is done by detecting whether the RS client that runs is modified or not and whether it is running in it's natural environment. The way current way most bots work is by downloading the RS client and modifying the client to be able to communicate information of the game with the bot engine. There are ways around it, but the way RS currently has their system set up means that battling their strategies to detect bots on a code level are meant to break and would require a lot of updating." http://osbot.org/forum/topic/66803-what-is-osbots-mirror-client/
  18. Firstly MirrorMode is 100% undetectable, safe and amazing. OSBot default mode (just injection) is good, but I believe it can be detected. This flags you and puts you onto a blacklist, in which Mod Weath works through and performs a more manual indepth investigation. (Not bashing OSBot, it is actually good. Its my own fault, I took a risk. I should have paid out for VIP to use mirrormode) ^ similar situation to me then, old legit acc, rarely botted since January 2nd.
  19. How much smarter can you bot if you are doing all the "smart" things already and got banned anyway? MirrorMode is essential, using injection makes you fall at the first hurdle and doesn't matter how smart you bot (this is from my experience today, and various other posts). Also the mirrormode information thread created by Maxi states the same thing - so i am not bashing.
  20. MirrorMode is essential. I got banned too, i should have used mirrormode so it's my own fault. I followed all the botting guidelines: alternate skills, play a lot legit, switch things up, bot 4-8 hours.
  21. I got banned botting on my main. Was trying to get 1750 skill total (started at 1630 before starting to bot). I was willing to lose it, as playing the game is not overly important to me. So I don't mind. I'm just letting others know that even with an old account that played totally legit for years, and you bot. Even if you alternate the skills (like I did) and keep botting to 4-8 hours per day and use a good script you WILL most likely be banned. I should have used the Mirror Mode and botted through OSBuddy. (mirror mode works on that). It is my own fault for being lazy and using the default OSBot injection. I was fletching at time of ban.
  22. I only just started doing it today. So I don't know if it's expensive. So far I've paid about 500k for a mud staff (mud gives me infinite earth and water runes). So it means I can cast the Stun spell easily, Stun requires: 12 water, 12 earth and 1 soul rune. The downside is you need to use fire runes for the high alching, since you will be wielding a mud staff. I have only trialed this script with 2k soul runes, 2k natures, and 2k maple longbows (and 10k fire runes), i have been very impressed with the mega exp rates.
  23. Thanks for confirming the code. Nice guy
  24. This is a script that gets you 150k mage exp per hour. It casts stun at an enemy, and then really quickly casts high alch afterwards. We wear armour so that we will splash. This process is called Stun-Alching. Here is a short video about it: This script is very basic. I made it for a user named Anthony who is new here, but actually ended up using this myself. Note: Babysitting advised. The script cannot logout when you are out of runes, because you cannot logout during combat. It also cannot take breaks, because again, you cannot logout during combat. Usage: Simply change the variable "targetEnemyName" to the name of the npc that you want to splash Stun onto. The current enemy is set to "Skeleton". package scripts; import java.awt.Color; import java.awt.Graphics2D; import java.text.NumberFormat; import java.util.Locale; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.Item; import org.osbot.rs07.api.ui.Option; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.api.ui.Spells; import org.osbot.rs07.api.ui.Tab; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "Stun Alcher", author = "MegaManAlpha", logo = "", version = 0.0, info = "") public class StunAlcher extends Script { String targetEnemyName = "Skeleton"; long scriptStartTime = 0; int startMagicLevel = 0; int startMagicExp = 0; int currentMagicExp = 0; int soulRunesStartAmount = 0; int soulRunesCurrentAmount = 0; int soulRunesUsed = 0; int natureRunesStartAmount = 0; int natureRunesCurrentAmount = 0; int natureRunesUsed = 0; boolean started = false; @Override public void onStart() throws InterruptedException { antiBan.unregisterAllBehaviors(); scriptStartTime = System.currentTimeMillis(); startMagicExp = skills.getExperience(Skill.MAGIC); startMagicLevel = skills.getStatic(Skill.MAGIC); soulRunesStartAmount = getNumberOfSoulRunes(); natureRunesStartAmount = getNumberOfNatureRunes(); log("MegaManAlpha's Stun-Alcher script has now started!"); log("You will be splashing: " + targetEnemyName); started = true; } @Override public int onLoop() throws InterruptedException { if(started) getState(); return random(100, 200); } private void getState() throws InterruptedException { if(!client.isLoggedIn()) { log("Not logged in."); log("You need to be logged in for this script to work."); return; } if(!tabs.getOpen().equals(Tab.MAGIC)) { if(tabs.open(Tab.MAGIC)) { sleepUntilMagicTabOpens(); } return; } Entity enemy = npcs.closest(targetEnemyName); if(enemy == null) { log("Target enemy not found"); return; } soulRunesCurrentAmount = getNumberOfSoulRunes(); natureRunesCurrentAmount = getNumberOfNatureRunes(); soulRunesUsed = soulRunesStartAmount - soulRunesCurrentAmount; natureRunesUsed = natureRunesStartAmount - natureRunesCurrentAmount; currentMagicExp = skills.getExperience(Skill.MAGIC); if(magic.castSpellOnEntity(Spells.NormalSpells.STUN, enemy) && sleepUntilStunIsCast(soulRunesCurrentAmount)) { sleep(random(25, 100)); if(moveMouseToAlchArea()) { leftClick(); if(sleepUntilInventoryTabActive() && isHighAlchOption()) { sleep(random(25, 100)); leftClick(); sleepUntilMagicTabOpens(); } } } } private int getNumberOfSoulRunes() throws InterruptedException { for(Item item : inventory.getItems()) { if(item != null && item.getDefinition() != null && item.getName() != null) { if(item.getName().equals("Soul rune")) { return item.getAmount(); } } } return 0; } private int getNumberOfNatureRunes() throws InterruptedException { for(Item item : inventory.getItems()) { if(item != null && item.getDefinition() != null && item.getName() != null) { if(item.getName().equals("Nature rune")) { return item.getAmount(); } } } return 0; } private boolean moveMouseToAlchArea() throws InterruptedException { //high alch area rectangle //709, 322 //719, 336 mouse.move(random(709, 719), random(322, 336)); return isHighAlchOption(); } private boolean isHighAlchOption() { for(Option option : menu.getMenu()) { if(option != null) { if(option.action.equals("Cast")) { if(option.name.contains("High Level Alchemy")) { return true; } } } } return false; } private void leftClick() { mouse.click(false); } private void rightClick() { mouse.click(true); } private void sleepUntilMagicTabOpens() throws InterruptedException { long startTime = System.currentTimeMillis(); long timeout = 4000; while(!tabs.getOpen().equals(Tab.MAGIC)) { long timeNow = System.currentTimeMillis(); if(timeNow > startTime + timeout) { break; } sleep(100); } } private boolean sleepUntilStunIsCast(int startNumOfSoulRunes) throws InterruptedException { long startTime = System.currentTimeMillis(); long timeout = 4000; while(getNumberOfSoulRunes() == startNumOfSoulRunes) { long timeNow = System.currentTimeMillis(); if(timeNow > startTime + timeout) { return false; } sleep(100); } return true; } private boolean sleepUntilInventoryTabActive() throws InterruptedException { long startTime = System.currentTimeMillis(); long timeout = 4000; while(!tabs.getOpen().equals(Tab.INVENTORY)) { long timeNow = System.currentTimeMillis(); if(timeNow > startTime + timeout) { return false; } sleep(100); } return true; } @Override public void onPaint(Graphics2D g) { int baseY = 10; int baseX = 275; int gapYAfterHeading = 20; g.setColor(Color.LIGHT_GRAY); g.fillRect(baseX, baseY, 290, 151); g.setColor(Color.BLACK); g.drawString("---: STUN-ALCHER :---", baseX+30, baseY+20); long totalRunTime = System.currentTimeMillis() - scriptStartTime; long secondsRunTime = totalRunTime / 1000; long minutesRunTime = 0; if(secondsRunTime >= 60) { minutesRunTime = secondsRunTime / 60; secondsRunTime = secondsRunTime - (minutesRunTime * 60); } String strRunTime = ""; if(minutesRunTime > 0) strRunTime += minutesRunTime + "min "; strRunTime += secondsRunTime + "s"; g.drawString("Run Time: " + strRunTime, baseX+10, baseY+gapYAfterHeading+35); g.drawString("Total Stuns: " + soulRunesUsed, baseX+10, baseY+gapYAfterHeading+50); g.drawString("Total High Alchs: " + natureRunesUsed, baseX+10, baseY+gapYAfterHeading+65); g.drawString("Exp to next level: " + NumberFormat.getNumberInstance(Locale.ENGLISH).format(skills.experienceToLevel(Skill.MAGIC)), baseX+10, baseY+gapYAfterHeading+80); int totalMagicExp = currentMagicExp - startMagicExp; String strMagicExp = NumberFormat.getNumberInstance(Locale.ENGLISH).format(totalMagicExp); g.drawString("Total Exp gained: " + strMagicExp, baseX+10, baseY+gapYAfterHeading+95); int magicLevel = skills.getStatic(Skill.MAGIC); g.drawString("Current level: " + magicLevel, baseX+10, baseY+gapYAfterHeading+110); g.drawString("Levels gained: " + (magicLevel - startMagicLevel), baseX+10, baseY+gapYAfterHeading+125); } }
×
×
  • Create New...