Jump to content

Zunarb

Members
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Zunarb's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Thank you for pointing that out! After i fixed the variable timing it started working perfectly now
  2. The problem is not casting a spell, the problem is setting up a spell for autocast on a staff Atleast i coudnt figure out any magic API that worked in the situation for me.
  3. Okay so what am i doing wrong here? It opens up the tab to choose the spell but it does not pick the fire bolt based on its widget. It keeps thinking that fire bolt is null even tho the tab for it is open? Trying to setup it up to autocast for a staff. public void attackStyle() throws InterruptedException { RS2Widget fireBolt = getWidgets().get(201,1,8); RS2Widget spellChoise = getWidgets().get(593,28); if (getSkills().getDynamic(Skill.MAGIC) >= 35) { getTabs().open(Tab.ATTACK); sleep(1000); spellChoise.interact("Choose spell"); sleep(1000); if (fireBolt != null) { log("Selecting fire bolt"); fireBolt.interact("Fire Bolt"); } } }
  4. If it doesnt work this way anymore this way how do people manage to connect themselves to database? Im running xampp as instructed and via that trying to access the sql.
  5. I keep getting java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/mule?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC what am i doing wrong here ?
  6. oh shit yeah i had accidentally deleted it without notice! Thank you Now just one more problem i gotta solve. When i play the script now i get the error: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/mule?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC Appearently it is cause its not accessing the mysql-connector-java-8.0.20 but how do i change that ? I have it in the same folder with the bat file and osbot.jar also i have it in the reference library of the sqltest.jar but seems like its still not accessing any of them?
  7. I get this error in the debug mode when i run the sql test script. Can anyone tell me whats causing the issue ? I managed to launch the bat file now but posted the error photo here after launching the script so now have to figure that out
  8. Ive been following the instructions here but been facing issues. When i make the bat file as instructed like this "C:\Program Files\Java\jre1.8.0_172\bin\java.exe" -cp "lib/*" org.osbot.Boot -debug i get an error "Could not find or load main class org.osbot.Boot" I can get the client open the usual way i do with adding ....bin \javaw.exe" -jar "OSbot 2.5.8.jar" but idk if the problem is this or what ? When i have the client open and logged in i run the script i copied and only changed the db/locations i had to for getting into correct path in the sql. After running the script nothing happens and the client just kind of freezes. Anyone kind enough to help me out? Ive been struggling with this database setup shit for days now import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.*; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "", info = "", logo = "", name = "SQL Test", version = 0) public class Sqltest extends Script { @Override public void onStart() throws InterruptedException { try { String host = "localhost:3306"; String db = "mule"; String user = "root"; String pass = ""; String connStr = String.format("jdbc:mysql://%s/%s?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC", host, db); Connection conn = DriverManager.getConnection(connStr, user, pass); ResultSet results = conn.createStatement().executeQuery("SELECT `name` FROM `mule`;"); while (results.next()) { logger.debug(results.getString("name")); } } catch (SQLException e) { logger.error(e); } } @Override public int onLoop() throws InterruptedException { return 50; } }
  9. Okay i managed to make it eventually work ^^ Thanks tho!
  10. I only started scripting some days a go and been struggling with an issue of how to make my player detect if there are other player nearby so it would get out and hop worlds. Now it will do that even if its alone and nobody is there so can someone help me out and tell me what is wrong with this? it seems that "(getPlayers().getAll().size() <= 1 && (dungeon.contains(myPosition())))" is always active even if the conditions are not met? private void getOut() throws InterruptedException { if (getPlayers().getAll().size() <= 1 && (dungeon.contains(myPosition()))) { sleep(500); getWalking().webWalk(exit); RS2Object ladder = getObjects().closest("Ladder"); ladder.interact("Climb-up"); Sleep.sleepUntil(() ->myPlayer().isAnimating(), 3000); log ("Hopping worlds"); getWorlds().hopToP2PWorld(); Sleep.sleepUntil(() ->(getWorlds().hopToP2PWorld()), 2000); } else { collect(); } }
×
×
  • Create New...