Jump to content

jca

Members
  • Posts

    390
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by jca

  1. 24 minutes ago, Alek said:

    Re-download and let me know if this works: 
    https://osbot.org/devbuilds/osbot 2.4.156.jar

    I went off of @jca's stacktrace in hopes of that being the issue. Sorry for all the test builds, so far it looks like a GUI issue on the script selector when the jframe is trying to pack. Strangest thing ever and I have no idea why its acting up now, swear I didn't touch this code. If this doesn't work I'll jump off a bridge, promise.

    Edit: @Lemons @tranzystor3

    Just tried this new build, the error in the stacktrace is now gone. I'm left with a Malformed reply from Socks server, which is strange because the proxy works perfectly on Mac OS OSBot.

    Trying without a proxy to see if there's any errors.  

    EDIT: With no proxy the client is loading up fine

    • Like 1
  2. Getting theses errors after the timeout

    [ERROR][01/25 07:38:38 PM]: Failed to load local script : org/osbot/Ft.class
    java.lang.VerifyError: Cannot inherit from final class
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at org.osbot.LpT3.iIiIIiiiiIII(hl:201)
    	at org.osbot.LpT7.iiIIiiiiiIii(mj:154)
    	at org.osbot.LpT7.iIiIIiiiiIII(mj:289)
    	at org.osbot.tA.IIiIiiiIiiII(nab:134)
    	at org.osbot.BotApplication.iIIIIiiIIiIi(aw:354)
    	at org.osbot.BotApplication.main(aw:225)
    [ERROR][01/25 07:38:39 PM]: Failed to load local script : org/osbot/Ws.class
    java.lang.VerifyError: Cannot inherit from final class
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at org.osbot.LpT3.iIiIIiiiiIII(hl:201)
    	at org.osbot.LpT7.iiIIiiiiiIii(mj:154)
    	at org.osbot.LpT7.iIiIIiiiiIII(mj:289)
    	at org.osbot.tA.IIiIiiiIiiII(nab:134)
    	at org.osbot.BotApplication.iIIIIiiIIiIi(aw:354)
    	at org.osbot.BotApplication.main(aw:225)
    [ERROR][01/25 07:38:39 PM]: Failed to load local script : org/osbot/cs.class
    java.lang.VerifyError: Cannot inherit from final class
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at org.osbot.LpT3.iIiIIiiiiIII(hl:201)
    	at org.osbot.LpT7.iiIIiiiiiIii(mj:154)
    	at org.osbot.LpT7.iIiIIiiiiIII(mj:289)
    	at org.osbot.tA.IIiIiiiIiiII(nab:134)
    	at org.osbot.BotApplication.iIIIIiiIIiIi(aw:354)
    	at org.osbot.BotApplication.main(aw:225)
    [ERROR][01/25 07:38:39 PM]: Failed to load local script : org/osbot/eQ.class
    java.lang.VerifyError: Cannot inherit from final class
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at org.osbot.LpT3.iIiIIiiiiIII(hl:201)
    	at org.osbot.LpT7.iiIIiiiiiIii(mj:154)
    	at org.osbot.LpT7.iIiIIiiiiIII(mj:289)
    	at org.osbot.tA.IIiIiiiIiiII(nab:134)
    	at org.osbot.BotApplication.iIIIIiiIIiIi(aw:354)
    	at org.osbot.BotApplication.main(aw:225)

     

    • Like 1
  3. On 19/01/2018 at 7:08 PM, battleguard said:

    I have a problem where I am making a folder hierarchy that has a folder for each run and a folder for each account being ran. This works great for saving off everything, but I cannot seem to find a way to change where the script logging output goes at runtime. Currently I log the script output using intellij's save console to output file feature, but I need to change the folder path at runtime so this wont work.

    - Things I have tried or thought about
    - redirecting output of jar using > out.txt in command line arguments but once again this is not runtime
    - redirecting system output using System.setOut(printstream), but once again the super locked down jar does not support this feature sadly
    - I can change all my calls in the entire script from the bots logger to a custom logger that I have implemented that saves the output to a fiile

     

    So far this is all I have thought of and I really do not like the idea of using the final option.

    I tried this before... the only viable solution I came up was to create a custom logger. 

    I'm sure there's some way to override the log() method though. 

  4. 7 minutes ago, Andreasth said:

    I was running different scripts on all accounts. All of which i bought from Khal.

    Do you mean the same ip as the proxy or just any ip as long as it is the same?
    Can you recomend a website that sells good socks5 proxies?

     

    Can you recomend any scripts?

    If you're creating them use a residential proxy that rotates IPs - then for each IP you create one account and run it through tutorial island. I would recommended buying fresh levels threes from here though as you're new to botting. 

    If you create them through a non residential IP, or switch to one when you do tutorial island, then Jagex flag them and they get locked. 

    I would do a quick Google search for "Socks5 proxies", don't buy them from any RuneScape specific service as often they've already been flagged. If you're spending more than $2 an IP you're spending too much. 

    I can't help on the scripts front, as I use all private scripts. 

  5. 57 minutes ago, Andreasth said:

    Hey i recently got 1 account banned for botting. Then i created 4 new accounts on the same ip and without a proxy and they all got chainbanned within a day. I am pretty new to botting. Can someone please explain the nescessity and importance of Proxy's and VPN's for me, and recomend me some Proxy's and VPN's to use? 
    Do i have to register the email/Account on a VPN? Do i have to use a proxy to avoid bans? Etc

    Sounds like it could be more related to poor scripts than IP chain ban. In my experience I've only received one chain ban and that was on an IP that has had hundreds of accounts banned previously. 

    In any case I would always use a proxy, if you're creating the accounts yourself make sure you use the same IP whilst creating them. OSBOT needs Socks5 proxies, there's plenty of places to get good quality ones. 

    Look at the scripts you're running though.  

  6. 6 hours ago, nosepicker said:

    Dunno if this is in the right section, but posting in regards of a bunch of noob questions and general information.

    So I was snooping around and found this thread

    Khaleesi posted a nice solution for the given problem

    
    static final int UNWALKABLE = 256 | 0x200000 | 0x40000;
    
    public static boolean isWalkable(int flag) {
       return (flag & (UNWALKABLE)) == 0;
    }
    
    XClippingPlane[] clippingPlanes = script.client.accessor.getClippingPlanes();
    int[][] map = clippingPlanes[script.myPlayer().getZ()].getTileFlags();
    
    for(int i = 0; i < map.length;i++){
       for(int j = 0; j < map[i].length; j++){
          if(isWalkable(map[i][j]))
             //store in list?
       }
    }

    I tried playing around with this, but didn't succeed in the end.

    My extremely nooby questions would be (spare the flame :D):

    1) What the hell are these clipping planes and how can I use the given information for my benefit?

    2) What are tile/clipping plane flags?

    3) What are tiles exactly in OSRS (in depth). A  NxN size polygon of points? 

    4) In the given code above there's a comment "//store in list?". First thing that comes to mind is to store each tile POSITION and there you have - you know where you can walk and where you can't. Didn't suceed in this.

    5) How does a tile map to a position exactly?

    I'm interested in this as well, though wouldn't it make more sense in the Scripting Help section? 

  7. 1 hour ago, the most wanted said:

    Hello! I am buying fresh accounts.

    What are fresh accounts? They are accounts with tutorial done and 7qp so that there is no trade limit. The usage will be botting.

    Payment osrs gp.

    Send me your skype, or post it.

    Thanks in advance!

    How many? 

  8. 2 hours ago, MDMAblkout said:

    has any had any luck botting agility i always get perm ban only botted it 2-3hrs a day getting to 60 is highest ive gotten to so far seems its just to much of a hot spot 

    Barbarian fishing

  9. 7 minutes ago, TheMcPker said:

    i prefer spending a tiny bit more $ if it helps banrate abit higher survival rate = higher wcing level = higher yield/hr = higher profit/account 

    specially with proxy prices being so dirt cheap

     

     

    currently my main plan is making a account replace system im thinking about just making a table in my database with a username and password  and banned boolean field where scripts can just take a account from when the current account is banned and than switching to the new account it just taken from said table and than tag the account it was using as banned so it does not get taken by accident and i instantly can see how many accounts i have banned/day

     

    whats your opinion on this?

    Good start, there's several complexities that come with replacing accounts from the script side, but that's fairly easy to work out. I recommend using your own login event so you have complete control over the process (there's a snippet somewhere).

    PM me and I can send you a photo of my database structure.

  10. 2 minutes ago, TheMcPker said:

    i have a few plans for automating auto replacement of accounts and automatic starting + muling in mind gotta get a small amount of $ first to be able to buy 1 proxy my pc can handle about 6 bots and once which i would like 3 on main ip and 3 on proxy  so i dont have to many accounts on 1 ip  i gotta get money to be able to scale into the fully automated farm first i think a 10$ goal for now would be able to get me a cheap small vps and 2 proxies which should earn me my money back slowly and surely increase the size of the farm

    Don't worry too much about proxies if you're FTP botting. I run 10-20 bots (sometimes more) on one IP. They'll be banned within 9-15 hours but you don't care about that, as long as you mule often and you can replace automatically.

  11. 2 minutes ago, TheMcPker said:

    a simplified look at my current database http://prntscr.com/hypxm5

    going to exspand on this more in the future to track more things wanted to have a working system for now took some testing to get the connection between bots and database right

    Nice start... How are you going to develop? Are you launching each bot yourself or auto rotating by pulling in account data from your database? 

    Trick with FTP farming is having everything automated. Otherwise you don't make enough to cover your expenses (time is your biggest expense!) 

    Good luck with it. 

  12. It's certainly possible... I can't seem to find an API that ge-trackers gives access to but there are many out there. If you know basic Java you can easily form GET requests to the APIs end-point and parse that data to get item prices + add your margins.

    For a headstart - here's a class I wrote that uses a basic reader to return the live item price and can store other variables about the item

    Spoiler

     

    
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.net.URL;
    
    class ItemResource {
    
        private String name;
        private String url;
    
        private int id;
        private int price;
        private int amount;
    
        public ItemResource(String name, int id) {
    
            this.url = "http://services.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id;
            this.name = name;
            this.id = id;
            this.price = fetchPrice();
    
        }
    
        // Getters
    
        public int getPrice() {
            return price;
        }
    
        public int getAmount() {
            return amount;
        }
    
        public String getName() {
            return name;
        }
    
        // Setters
    
        public void setAmount(int i) {
            amount = amount + i;
        }
    
        // Reset Amount
    
        public void resetAmount() {
            amount = 0;
        }
    
        private int fetchPrice() {
            try (final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(url).openStream()))) {
                final String raw = reader.readLine().replace(",", "").replace("\"", "").split("price:")[1].split("}")[0];
    
                reader.close();
                return raw.endsWith("m") || raw.endsWith("k") ? (int) (Double.parseDouble(raw.substring(0, raw.length() - 1))
                        * (raw.endsWith("m") ? 1_000_000 : 1_000)) : Integer.parseInt(raw);
            } catch (final Exception e) {
                e.printStackTrace();
            }
            return -1;
        }
    
    }

     

  13. 6 hours ago, nosepicker said:

    As I mentioned before - OSBot blocks all external dependencies and correct me if I'm wrong. As someone mentioned you can extract the source of the external jar and place it in your script - should work but might be messy. I gave up playing around with this when I noticed that even simple JSON parser jars are blocked :D

    I've used a few dependencies with no issue.. for a basic JSON parser you can use google/gson. 

    14 hours ago, battleguard said:

    I am trying to modify the policy information so I can use rxjava in my local script. I looked into the permissions you suggested because it looks like you are correct and its not something in osbot at all. I tried changing my policy to allow everything and I tried manually specifying the policy file when loading up the jar with vm variables but nothing seems to work sadly.

    My question was referring to what you were trying to achieve with RxJava, maybe there's a simpler way without navigating permissions which can potentially open up your system to harm. 

  14. 20 hours ago, moeotterson said:

    I'm attempting to make a script to make and curate a database of usernames from friends/ignore lists using SQLITE. Is SQLITE supported at this time (outside libraries)?

    Also, any advice on the endeavor?

    You can do it all with core Java if you build an API and run a POST request to an endpoint with account details. Then to parse data use Gson as a dependency and reference it like a normal object. 

    But as Alek said, if you don't need to use it across servers just generate a local file. 

    6 hours ago, battleguard said:

     

    @Alek Is there anyway to fix this problem when running the jar where I cannot view the System Properties.

    This line here "System.getProperties();" will always throw this error -> Blocked permission: ("java.util.PropertyPermission" "*" "read,write").

    I am using jxjava in a script but I am unable to do anything with time intervals because it requires making a scheduler from a SchedulerPoolFactory but on the static constructor of the class it blows up because it cannot access these properties (https://github.com/ReactiveX/RxJava/blob/2.x/src/main/java/io/reactivex/internal/schedulers/SchedulerPoolFactory.java#L95)

     

    From what I've found with SystemProperties is it's the external environment that you're working in blocking the jar - which isn't OSBOT specific. Look at setting permissions on system. What are you trying to do? There's probably a simpler solution that doesn't require modifying permissions.

  15. 8 minutes ago, HeyImJamie said:

    Just call it priceGrabber :???: 

    Again, you can use this for more than storing the price. For example the amount collected / gained / fished / cut, the name, ID and really anything to do with the item that you need to cache if you build on top of this. Anything to do with price / GE would not describe the class accurately as it's not solely used for that.

    I'll leave it at ItemResource for now. Change it if you want to use it for something else. 

×
×
  • Create New...