chrismac1991 Posted June 26, 2015 Share Posted June 26, 2015 (edited) annnd so here i am , hey everyone! im really new to scripting but im looking through all the tutorials and stuff now and yeah im confused as all hell but im trying my best! if anybody wants to talk on skype and learn with me or teach me or anything similiar let me know! will post a script if i ever manage to get one working! Edited June 26, 2015 by chrismac1991 Link to comment Share on other sites More sharing options...
Vydamo Posted June 26, 2015 Share Posted June 26, 2015 Be extremely careful. Bans on 07 are increasingly common Link to comment Share on other sites More sharing options...
Jams Posted June 26, 2015 Share Posted June 26, 2015 Welcome, let me know if you need anything and i'll be glad to help you ^_^ Link to comment Share on other sites More sharing options...
chrismac1991 Posted June 26, 2015 Author Share Posted June 26, 2015 yeah so i have heard about the banrates, and thanks will do! im just trying to get oriented and stuff so im not asking anyone stupid questions and wasting peoples time lol :P i have real life friends for those xD Link to comment Share on other sites More sharing options...
QuakedM8 Posted June 26, 2015 Share Posted June 26, 2015 Welcome to OSBot, good luck with scripting my friend. Link to comment Share on other sites More sharing options...
Anne Posted June 26, 2015 Share Posted June 26, 2015 Goodluck and welcome Link to comment Share on other sites More sharing options...
Kyle Posted June 26, 2015 Share Posted June 26, 2015 Welcome man, gl with scripting Link to comment Share on other sites More sharing options...
Khaleesi Posted June 26, 2015 Share Posted June 26, 2015 annnd so here i am , hey everyone! im really new to scripting but im looking through all the tutorials and stuff now and yeah im confused as all hell but im trying my best! if anybody wants to talk on skype and learn with me or teach me or anything similiar let me know! will post a script if i ever manage to get one working! hello, Glad to see people who are trying to learn how to script Goodluck Khal Link to comment Share on other sites More sharing options...
chrismac1991 Posted June 26, 2015 Author Share Posted June 26, 2015 (edited) haha yeah thanks, i was using the beginner tutorial for a tea thiever and tried to convert it into a woodcutting starter.i dont think i did to well because, although it mostly worked, it kept spam clicking and i am now way to tired to try and fix it at 4 am lolim sure its something simple. anyway here is what ive completed, im gonna get back at it all tomorrow and look at more tutorial stuff. will check back when i wake up ps. sorry for not knowing how to shorten this post with the "spoiler" tag thingy import org.osbot.rs07.api.model.Entity;import org.osbot.rs07.script.Script;import org.osbot.rs07.script.ScriptManifest;import java.awt.*;@ScriptManifest(author = "Chris", info = "Chops and Drops Trees Lumbridge", name = "Level3TreeKiller", version = 0.1, logo = "")public class FuckYouTrees extends Script { @Override public void onStart() { log("Kill All The Trees!"); } private enum State { CHOPPING_LOGS, DROPPING_LOGS, SEARCH_FOR_TREE }; private State getState() { Entity tree = objects.closest("Tree"); if (!inventory.isEmpty()) return State.DROPPING_LOGS; if (tree != null) return State.CHOPPING_LOGS; // all good as far i know else return State.SEARCH_FOR_TREE; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case DROPPING_LOGS: log("Dropping Shit"); inventory.dropAll(); break; // drops first,and immediately after acquiring logs // and i want it to collect a full backpack and drop all upon // full inventory.(gives trees more than enough case CHOPPING_LOGS: // time to reset log("Work Work"); Entity tree = objects.closest("Tree"); if (tree != null) { if (!myPlayer().isAnimating()) // /constantly spam clicks and im confused and tired if (tree.isVisible()) { { } tree.interact("Chop Down"); break; } } case SEARCH_FOR_TREE: // Switches to case temporarily but does nothing // but spam click. log("Looking for a new tree"); Entity newtree = objects.closest("Tree"); if (newtree != null) camera.toEntity(newtree); newtree.interact("Chop Down"); break; } return random(200, 300); } @Override public void onExit() { log("Done Already?"); } @Override public void onPaint(Graphics2D g) { }} Edited June 26, 2015 by chrismac1991 Link to comment Share on other sites More sharing options...
neems Posted July 7, 2015 Share Posted July 7, 2015 rimboldank Link to comment Share on other sites More sharing options...