-
Posts
416 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by Satire
-
OSBot CLI Script Creator - Manage your bots easily
Satire replied to The Hero of Time's topic in Projects
C#, nice. I might be able to improve this further. -
.bat is windows batch file. You cannot run it on Linux. You can try using the manager that the other person suggested, it should work as Java is cross platform.
-
You have a memory leak in your script. What exactly does your script do? It shouldn't leak anything unless you're trying to store something somewhere. Either that or your scripter probably made a bunch of web requests to some sort of API and forgot to dispose of it later. He's obviously not disposing something. It could be the client don't get me wrong, but I've never had this problem ever. Therefore, it may be your scripts problem.
-
Static just means you are not instantiating that object. Non-static means that you will be instantiating that object. So when you make a static method, it means everything in that method cannot be created. Let's say you have a public class that isn't static. You could go classname varname = new classname(); varname.function. if you make a static method and tried that, it would say you couldn't. So basically static means everything is already there. You are not creating a new instance of that object,
-
Thanks for the suggestion. I'm still waiting for Adapt to reply. I want to see his offerings and price first.
-
I'm looking for someone to make me a thread layout. I need the layout to be metro and appealing (more details can be given on skype). If you feel you are fit for the job, please reply and tell me your normal costs. Although, I know the price is dependent on the request of the layout anyway.
-
Hey man, I'm interested in getting a service from you. Whenever you can, add my skype and we'll talk about it. I want a thread design. I can pay u in OSRS GP but also bitcoin if u want. Click here -> hatscripts.com/addskype/?Akbar.io To make sure u add me and not an impostor. If you're still doing this!
-
When I was learning c# (first time learning a language after c++), I tried to do it all manually and added pointers 'n' shit. I was wondering why I got so many syntax errors and I asked someone why. They told me that it's already done for you behind the scenes. C++ is really good for people who like making their own functions to do a certain job. Personally, I'd only use c++ if it was a hack for a game (and needed to be undetected) and games. Because c# is already there if you want to make programs without having to worry about memory. Lucky for me, my uni taught my c first before anything! I think it is more ideal to learn c first because you get to understand programming and how it's all done. When going over to another language, you'll be able to say, "Hey, I know how this works behind the scenes".
-
NO! Java is used for RS/RSPS. C++ is good for creating hacks for games (so is C#). C++ is 100% manual meaning you have to define everything even the MEMORY allocation! I highly suggest you learn a bit of c before moving into c++. c is just c++ but without classes. If you want to do scripting/rsps coding then java is the only language you need to know.
-
Also, next time you post, can you please go to the scripting help section? Thanks! This is for tutorials...
- 3 replies
-
- Beginner
- Intermediate
-
(and 1 more)
Tagged with:
-
Added, I've got 17m here.
-
80 what? $80 or 80M? Either way, rip-off. Unless it's multi-threaded with proxy support then no deal to him.
-
Can u add script params so it starts automatically? I don't really use Multi-Acc and it would make my life easier not spending that extra second pushing start.
-
Still need some accs? What's the price for 7qp's and without? I can make em GE ready, just depends on the price to see if it's worth my time.
-
Thanks man, I downloaded and ran the file. Now i'm super duper rich with the free cracked version of Rsbuddy. It's the best botting program out there, I suggest you try it out!
-
I guess that's a lesson learned for the future Glad you got it working.
-
chckbxAutoGE.addItemListener(new ItemListener() { @[member='Override'] public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED){ spinnerHides.setEnabled = true; }else{ spinnerHides.setEnabled = false; } } }); This should work. Literally from my project, just renamed to your scenario. This should work, else you will need to see what you've done wrong. There is something in your project that is disallowing this to work. If the first condition isn't met, then it go false.
-
The ids helped me out, thanks!
-
10m... I was sleepy and didn't realize I added the $(its out of habit).
-
This should indeed help beginners. I had a sheet similar to this when I was learning c++. It is very helpful!
-
why don't you just get the amount of coins in your inventory. Then get the price of the ore from RSbuddy, then * the price by amount of ores you want, then check to see if you have enough coins? Or you could do it the opposite way and calculate how many ores u can get with the amount of money you have. Make sure barsTobuy is getting the right value. It seems like it isn't. Debug it step by step to see what's going on. I cbf writing it all up normally so I hope you understand. getinv = getInventory etc... long coins = getinv().getamount("Coins"); get price of item oresToBuy = (int)coins/price of item; which would = the amount u can get, sum it down to an int to get that value. You can use this code to get the price of the item This code is from another user, you can find it somewhere ( I forgot where). public class PriceHandler { /** * The URL of the API endpoint. */ public static HashMap<Integer, Integer> cache = new HashMap<Integer, Integer>(); public static String getData(int itemID) { try { StringBuilder sb = new StringBuilder("https://api.rsbuddy.com/grandExchange?a=guidePrice&i="); sb.append(String.valueOf(itemID)); InputStream inputStream = new URL(sb.toString()).openStream(); InputStreamReader inputStreamReader = new InputStreamReader(inputStream); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); String line; while ((line = bufferedReader.readLine()) != null) { if (line.contains("{")) { sb = new StringBuilder(line); //Remove { and } sb.deleteCharAt(0); //sb.deleteCharAt((line.length() - 1)); return sb.toString(); } } } catch (Exception e) { return e.getMessage(); } return null; } public static String[] parseData(String data) { ArrayList<String> holder = new ArrayList<String>(); String[] parts = data.split(","); //Now we have strings in format "x":y for (String s : parts) { s = s.replace("\"", ""); //Remove " - now in format x:y holder.add(s.split(":")[1]); //Extract y from format x:y } String[] ret = new String[holder.size()]; return holder.toArray(ret); } public static int getPrice(int itemID) { if (itemID == 995) return 1; if (cache.containsKey(itemID)) { return cache.get(itemID); } String[] data = parseData(getData(itemID)); int price = Integer.valueOf(data[0]); cache.put(itemID, price); return price; } }
-
You need VIP to run multiple clients. You don't have VIP so it will always kill the current bot running to allow the second session to run. EDIT: Maybe I should read a bit more. That means someone is trying to run an instance from your account. Try changing your password and see if that still happens. Maybe someone has access to your account? Or you have the botclient running without any scripts running? I think it may have a timeout for that.
-
I'm amazed you have the dedication to update this thread Nice job, you've come a long way though. It's always better to make your script than to buy one because you have complete control over it!