Jump to content

MassRS

Members
  • Posts

    69
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by MassRS

  1. 22 minutes ago, Knuckolls said:

    did you manage to comfobble the mainframe and deltoid the flux capacitor?

    I did that and it worked.

    <3

    I did that for my wireless energy transfering module wich shoots electro beams in to the ionosphere and had my cat work as receiver.

    It worked then... But didnt work for this.

     

    Ly2

  2. 6 minutes ago, Zummy said:

    I actually changed to a mysql db for my project. Unless you really need it to work with an Access db i'd recommend doing the same.

    At this moment that isn't an option for me.

    There must be some kind of way to get the driver working right?

  3. So i'm having problems with connecting to my MS Access database with UcanAccess.

    I found this snippet on google:

    // variables
            Connection connection = null;
            Statement statement = null;
            ResultSet resultSet = null;
    
            // Step 1: Loading or registering Oracle JDBC driver class
            try {
            	Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");//Loading Driver
            	
            }
            catch(ClassNotFoundException cnfex) {
    
                log("Problem in loading or "
                        + "registering MS Access JDBC driver");
                cnfex.printStackTrace();
            }
    
            // Step 2: Opening database connection
            try {
    
            	log("TRYING TO CONNECT DB");
                String msAccDB = "C:\\Database\\DB1.accdb";
                String dbURL = "jdbc:ucanaccess://" + msAccDB; 
    
                // Step 2.A: Create and get connection using DriverManager class
                connection = DriverManager.getConnection(dbURL); 
    
                // Step 2.B: Creating JDBC Statement 
                statement = connection.createStatement();
    
                // Step 2.C: Executing SQL & retrieve data into ResultSet
                resultSet = statement.executeQuery("SELECT * FROM bots");
    
                // processing returned data and printing into console
                while(resultSet.next()) {
                	log("DB CONNECTED");
                    log(resultSet.getInt(1) + "\t" + 
                            resultSet.getString(2) + "\t" + 
                            resultSet.getString(3) + "\t" +
                            resultSet.getBoolean(4) + "\t" +
                            resultSet.getBoolean(5));
                }
            }
            catch(SQLException sqlex){
                sqlex.printStackTrace();
            }

     

    But i can't seem to succesfully load the driver, i get this message in the log:

    [INFO][Bot #1][09/20 10:02:27 PM]: Problem in loading or registering MS Access JDBC driver
    [INFO][Bot #1][09/20 10:02:27 PM]: TRYING TO CONNECT DB

    I have the .jar's from UcanAccess.

    I've tried the following already:

    - Place the .jar's in the Eclipse workspace. 

    - Place the .jar's in the Eclipse workspace in my package folder. 

    - Imported the .jar's in Eclipse as External jar's.

     

    Can't seem to figure this out..

     

  4. Use high quality scripts, don't run click intensive scripts without breaks or for too long. 

    Second: you can not "not risk a ban" there is always a risk of getting banned.

     

    IMO: it don't matter what day of the week you bot, just bot smart.

  5. mCannon.

    Script designed for cannoning @ ogre's in the Combat training camp, but you can use it pretty much anywhere just follow the instructions carefully.

     

    Features:

    - AFK when idle.

    - Telegrab's seeds.

    - Repair's cannon.

    - GUI.

     

     

    Screenshots:

    Spoiler

    hsnklv.jpg

     

    GUI:

    2iaftxc.jpg

     

     

    Changelog:

    Quote

    Update:

    - Added telegrab support for less expensive seeds. 

    - Added option to select or deselect randomized wait time between refilling.

    Release:

    - Telegrabbing expensive + cheap seeds.

    - Toggle AFK mode.

    - Toggle more human-like reaction times.

     

     

     

     

    Updated version(9/24):

    mCannon.jar

  6. Here's an example:

    List<Position> path = Arrays.asList(
    		    new Position(3135, 3511, 0), 
    		    new Position(3133, 3505, 0), 
    		    new Position(3130, 3500, 0), 
    		    new Position(3129, 3496, 0)
    		);
    
    getWalking().walkPath(path);
    
    
    
    • Like 3
  7.  

    If I had to guess, you're not checking if bone is null (i.e. an item exists with one of those names.)

    if (bone != null && bone.isOnScreen())
    

     

     

    you also need to null check bone != null

     

    thanks guys, seems to work

  8. So when i wrote my script but when it's up and running after some time it starts lagging really bad and gives this error in the logger:

    [ERROR][Bot #1][01/17 07:46:41 PM]: Error in script executor!
    java.lang.NullPointerException
    at mWyverns.getState(mWyverns.java:134)
    at mWyverns.onLoop(mWyverns.java:142)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qf:131)
    at java.lang.Thread.run(Unknown Source)
    at line 134 i have this:
    		GroundItem bone = getGroundItems().closestThatContains("potion","Clue", "Adamant", "Granite", "Uncut", "key", "logs", "Runite", "battlestaff", "Rune", "Dragon", "Snapdragon", "Ranarr", "bar", "Draconic","bones");
    
    if (bone.isOnScreen())
    	return State.LOOT;
    

     

×
×
  • Create New...