kjloveday Posted April 9, 2015 Share Posted April 9, 2015 (edited) Well today i want to try to script a bot but im not sure how to make it actually fish and drop the fish is there a list of codes? i can get for this type of scripting? for example i tryed the tutorial but its a bit confusing, i know all the actions belong with onloop but ermm idk how to set it up can some1 help me so i can try to make my first script i just want to try to make a simple power fisher. import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Fez", info = "FirstTime", name = "TestPowerFish", version = 0, logo = "") public class main extends Script { @Override public void onStart() { log("Test, get 99 fishing ~ Powerfishing!"); log("If you find any bugs please report to me, I will fix!"); } @Override public int onLoop() throws InterruptedException { return random(200, 300); } @Override public void onExit() { log("Thanks for using Test1 PowerFisher!"); } @Override public void onPaint(Graphics2D g) { } } I'm looking to powerfish lobsters and karamja any help is appreciated Like this is the first time even attempting to look on the coding side of a bot other then just pressing start lol Edited April 9, 2015 by kjloveday Quote Link to comment Share on other sites More sharing options...
FrostBug Posted April 9, 2015 Share Posted April 9, 2015 check out the API docs specifically for this task you should look at the classes Npcs and Inventory (accessible from the script class by getNpcs() and getInventory()) Quote Link to comment Share on other sites More sharing options...