-
Posts
157 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by roguehippo
-
the current problem is that im not really sure of the script uploading process, how to upload paid vs free scripts, and how the process of becoming scripter I and II works. also im on break and an alcoholic fine wine connoisseur but i really do want to release these so im currently looking for answers. im hoping it will be released (price pending) by the end of the week.
-
Hey everyone! Thanks for the feedback. Originally i was pretty bummed that no one commented on this because out of all my scripts i thought this was the real game changer with the cost to prayer ratio. I hate to string people on for so long, I have this script and my perfected combat / nmz afker up and running but I have been bogged down with coding large projects for my senior year of comp sci degree. So i have to do the last parts of applying for scripter I or II so i can upload paid scripts. thanks to everyone for bearing with me you are all great (also my test accounts that have used this script to get 70+ prayer are both still in use months later)
-
Hello i was just wondering what everyone thought the best way to interact with tiles is. What i mean by this specifically is how would i find a specific game tile at a position, then Be able to Overlay color over the tile, walk to the tile, check if it has an object on it, like a hunter trap or a tree.
-
has anyone here learned scripting on their own?
roguehippo replied to SpiritualAbyss's topic in Scripting Help
learned how to code BASIC with my friend (the code that TI calculators use) back in sophmore year of highschool and i havent stopped since. i am now learning computer science in college but i taught myself for a good 3 years and started coding scripts before college -
what if you just stored the values in a HashMap in your main code with the key being the string name ex: outVarrock, barbVillage and the value would be the Area. then you can just do Area areaIWantTOWalkTo = hashmap.at(gui.getArea()); but im not really sure if i understood the question. are you trying to make checking which area the bot wants to mine in once or many times? might have got some syntaxt stuff wrong but i think a hashmap would be helpful.
-
i didnt even know that osbot functions returned true if they were successful, i can think of so many places where this would get rid of some bugs. thanks so much for the helpful information!
-
never mind guys, i looked around at config stuff on the forums and now understand how to atleast work with the cannon, thanks for the info!
-
oh ok,i dont know what configs are, how would one work with configs?
-
i was just wondering if i am able to tell in any way if an rs2object is animating, like the cannon for example. none of the functions i can find either tell me if it is animating or let me get the direction it is faceing so i can check it again.
-
Hello everyone, im proud to announce that i am soon releasing my Ensouled Heads Prayer script. As soon as my application comes back successful and i can upload to the sdn i will be able to release this amazing script. Features: Banking with ring of dueling + refills prayer and hp in portal Teleports to arceuus with games necklaces's (wintertodt camp then walks to altar) automatically detects ensouled head in inventory. automatically detects food in inventory. easy to use gui to select potions + prayer use ! easily 100k + prayer exp at around 60+ (tested with troll heads at level 70 with semi high combat stats and str gear) gif of walking, potion use, summoning head, (and bad but explanatory paint) prayer and potion selection paint. questions: would you buy it? how much would you pay for it? i spent quite some time making this, and was hoping of pricing it reasonably. thanks
-
ok, i understand completely. thanks for the feedback
-
i dont know if this is the right forum to ask but it kinda seems fitting. i made a post in the forum for applying for scripter a couple days ago and have yet to hear anything. im hoping to release some pretty cool scripts so i was hoping it wouldnt take long. anyone know how long it ussually takes?
-
it wouldnt be too hard to get the item in the inventory with inventory.getItem("item") then get the items interactions. cycle through them with null checks. then interact with the option you are looking for while putting a sleep where you want
-
i am aware he shouldnt use exists, but if someone really wanted to, they would have to check if its != null . it is pretty silly though
-
you should check if the fire is null BEFORE if you check if it .exists() . so it would look like : if(fire != null && fire.exists())
-
i made a new project and copied the code over but that didnt help. redownloaded osbot. nothing helps i dont get it
-
i deleted my local and data folders. the paint still doesnt show up. the paint does show up for my other scripts. should i just remake the project and copy and paste code?
-
is there somewhere to read the api code?
-
i could find osbot but then what. its pretty weird that the code works but the paint just wont show up. is it a compiling issue? or maybe a problem with my client download?
-
check which line of code the nullpointer is referencing and see what on that line could be uninitialized.
-
private void castReanimateSpell(MagicSpell spellToCast) throws InterruptedException { ArrayList<RS2Widget> allWidgets= new ArrayList<RS2Widget>(); allWidgets.addAll(widgets.getAll()); String spellNameFixer = spellToCast.toString(); //the string starts out all caps. we want only first letter of each word to be caps. spellNameFixer = spellNameFixer.toLowerCase(); //now we replace the underscore with a space spellNameFixer = spellNameFixer.replace('_', ' '); String[] storageArray = spellNameFixer.split(" "); String finalName = ""; //build the final string out of the string array. while capatalizing the first // letter of each word for(String s : storageArray) { char temp = s.charAt(0); temp = Character.toUpperCase(temp); s = Character.toString(temp) + s.substring(1); finalName = finalName + s + " "; } //remove the last white space. //for some reason all the widget names start with this sequence. String temp = finalName.trim(); finalName = "<col=00ff00>" + temp; //log("looking for spell " + finalName); if(magic.canCast(spellToCast)) { //log("we can cast the spell"); if(getTabs().getOpen() != Tab.MAGIC) { log("opening magic tab"); getTabs().open(Tab.MAGIC); sleep(random(400,600)); } ArrayList<RS2Widget> spellWidgetList = new ArrayList<RS2Widget>(); spellWidgetList.addAll( widgets.getAll()); for(RS2Widget rw : allWidgets) { if(rw != null && rw.isVisible() && rw.getSpellName().length() > 1) { if(rw.getSpellName().equals(finalName)) { //log("selecting spell: " + finalName); rw.interact("Reanimate"); sleep(random(50,80)); break; } sleep(random(10,20)); } } } } hey guys, i noticed that it wasn't really possible to use the current cast spell function with the reanimation spells in the arceuus spell book so i made a function that would select the spell. please let me know if this helps, if my code is disgusting , or if its already been done and i just haven't found it yet. thanks!
-
has anyone ever had this problem where paint isnt showing up? is it like a file messup? idk why onPaint isnt getting called.
-
just woke up, thanks guys for the help, i have started the tracker for the prayer skill in on start. @Fleeb compiling to the correct osbot directory? do you mean like file directory to save the script in the right folder?
-
hello everyone, for some reason i cant get my paint to show up. ive looked through the tutorials and cant tell what im doing wrong. im just trying to get a purple box with some exp trackers. the exp tracker has been set to track prayer. heres the code: public void onPaint(Graphics2D g) { Color purpleBackGround = new Color(138,43,226,bgShade); g.setColor(purpleBackGround); g.fillRect(0, 200, 800, 50); g.setColor(Color.LIGHT_GRAY); g.drawString("Prayer XP Gained: " + getExperienceTracker().getGainedXP(Skill.PRAYER),5,210); } thanks for the help