Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Money Maker] Leg Severer

Featured Replies

Hey guys, so I'm done with this script. I made it, my first ever script. I'm not even sure that it works anymore to be honest. I kept getting issues with it, never got too many runs in.

But I think toad legs are like 300-400 each.

So I cashed in before releasing this as it makes much more than all the other methods if it works.

import java.awt.*import org.osbot.script.Scriptimport org.osbot.script.ScriptManifestimport org.osbot.script.mouse.*import org.osbot.script.rs2.*import org.osbot.script.rs2.map.Positionimport org.osbot.script.rs2.model.GroundItemimport org.osbot.script.rs2.model.Itemimport org.osbot.script.rs2.model.PrimaryObjectimport org.osbot.script.rs2.model.RS2Objectimport org.osbot.script.rs2.ui.*import javax.imageio.ImageIOimport java.io.IOExceptionimport java.net.URLimport org.osbot.script.rs2.model.*import org.osbot.script.rs2.utility.Area@ScriptManifest(name = "LegSeverer", author = "Speakmore", version = 1.0D, info="Picks Swamp Toads, then severes their legs.")class ToadLegs extends Script {	enum State {		TODOOR, BANKING, PICKING, CLIMBUP, CLIMBDOWN, TOSWAMP, TOBANK, OPENDOOR, DOORAGAIN	}		int swampToad = 2150	int door = 1967	int toadLeg = 2152	int upStairs = 1742	int downStairs = 1744	int bankId = 2213	int ladder = 1747	Position frontDoor = new Position(2465, 3491, 0)	Position backDoor = new Position(2465, 3493, 0)	Position theBank = new Position(2449, 3482, 1)	Position theSwamp = new Position(2422, 3507, 0)	Position theLadder = new Position(2466, 3494, 2)	Position hill = new Position(2444, 3507, 0)	def state = State.PICKING		void onStart() {		state = State.PICKING	}		int onLoop() {		switch(state){		case State.TOSWAMP:			return swamp()		case State.PICKING:			return pick()		case State.TODOOR:			return toDoor()		case State.OPENDOOR:			return openDoor()		case State.CLIMBUP:			return up()		case State.TOBANK:			return toBank()		case State.BANKING:			return banking()		case State.CLIMBDOWN:			return down()		case State.DOORAGAIN:			return doorAgain()		}		return 1000	}		int toDoor() {		log("Walking to the Door!")		if(client.getMyPlayer().getX() == 2465 && client.getMyPlayer().getY() == 3491){			state = State.OPENDOOR		}else{			walk(frontDoor)		return 1000		}	}		int openDoor() {		log("Opening the Door!")		if(client.getMyPlayer().getX() == 2465 && client.getMyPlayer().getY() == 3491){			selectEntityOption(closestObject(door), "Open", "Tree Door")			state = State.CLIMBUP		return 1000		}else{		log("Going to the Door!")		walk(frontDoor)		return 1000		}	}		int up() {		if(client.getMyPlayer().getZ() == 2){			walk(theLadder)			log("Need to go down a floor!")			selectEntityOption(closestObject(ladder), "Climb-down", "Ladder")			return 3000		}else if(client.getMyPlayer().getZ() == 1){			walk(theBank)			log("Walking to bank!")			state = State.TOBANK			return 1000		}else{		//if (client.getMyPlayer().getZ() != 1)		log("Climbing the Ladder.")		selectEntityOption(closestObject(ladder), "Climb-up", "Ladder")		return 3000		}	}		int toBank() {		if(client.getInventory().contains(swampToad)){			selectInventoryOption(27, "Remove-legs", true)		}else if(client.getBank().isOpen()){		log("Bank is Open!")				state = State.BANKING				return 1000		}else{			selectEntityOption(closestObject(bankId), "Bank", "Bank booth")			return 1000 + random(500)	}	}		int banking() {		log("Depositing Legs!")		client.getBank().depositAll()		state = State.CLIMBDOWN		return 1000	}		int down() {		if(client.getMyPlayer().getZ() == 3){			walkExact(new Position(2465, 3495, 3))			selectEntityOption(closestObject(ladder), "Climb-down", "Ladder")			return 2000		}else if(client.getMyPlayer().getZ() == 2){			walkExact(new Position(2465, 3495, 2))			selectEntityOption(closestObject(ladder), "Climb-down", "Ladder")			return 200		}else if(client.getMyPlayer().getZ() == 1){			walkExact(new Position(2465, 3495, 1))		 selectEntityOption(closestObject(ladder), "Climb-down", "Ladder")			return 2000		}else{		walk(backDoor)		log("Leaving the Tree!")		state = State.DOORAGAIN		return 1000		}	}		int doorAgain() {		if(client.getMyPlayer().getY() == 3493 && client.getMyPlayer().getX() == 2465){		selectEntityOption(closestObject(door), "Open", "Tree Door")		return 1000		}else if(client.getMyPlayer().getY() == 3491 && client.getMyPlayer().getX() == 2465){		state = State.TOSWAMP		return 1000		}else{		walk(backDoor)		return 2000		}	}		int swamp() {		log("Walking to the Swamp!")		if(client.getMyPlayer().getY() == 3507 && client.getMyPlayer().getX() == 2422){		state = State.PICKING		}else{		walk(theSwamp)		}	}int pick() {  GroundItem[] list = client.currentRegion.getItems()  def pickup = null  def distanceOfItem = null  for(GroundItem g : list){   if (g.getId() == swampToad){    if(pickup == null) {     pickup = g     distanceOfItem = distance(g)     continue    }    if(distance(g) < distanceOfItem) {     pickup = g     distanceOfItem = distance(g)    }   }  }  if(pickup == null) {   return 1000  }  if(distance(pickup) < 2) {   selectEntityOption(pickup,"Take")  } else {   walk(pickup.getPosition())  }          if(client.getInventory().isFull()){               log("Inventory full of Toads!")		walk(hill)               state = State.TODOOR              return 1000         }  return 1000 }	}//Swamp Start: 2422, 3506

Probably doesn't even work, feel free to edit it to your liking.

It starts at the swamp, located in uhh Tree Gnome Village or whatever the place is where you start Monkey Madness.

Start up in the swamp (north east) and then it'll grab 28 legs off the ground, then walk up the ramp to the tree door. Open that, up the ladder and to the bank. It'll then pick the legs, bank it and go back.

Or it should ^_^

Like I said, feel free to edit the code since it'll most likely not work.

Save it as:

LegSeverer.groovy

I'll try it as soon as I get home and give feedback for other wanting to edit it

  • Author

I'll try it as soon as I get home and give feedback for other wanting to edit it

The main errors I've run into were:

1) Position Unreachable (position of the tree door)

2) Walking up 2 floors on the ladder instead of just the one)

The main errors I've run into were:

1) Position Unreachable (position of the tree door)

2) Walking up 2 floors on the ladder instead of just the one)

Well if those seem to be the only error they should be easily fixed. I my self am sh*t at script design but i can look into is. Also how was the market when you sold the legs ( Did a lot of people buy them or did it take some time to sell )

  • Author

Well if those seem to be the only error they should be easily fixed. I my self am sh*t at script design but i can look into is. Also how was the market when you sold the legs ( Did a lot of people buy them or did it take some time to sell )

I didn't sell them, I just have a lot in the bank ^_^

Advertise what you're selling on zybez though.

I didn't sell them, I just have a lot in the bank happy.png

Advertise what you're selling on zybez though.

Ya i know zybez but I can't remember what frog legs are used for ( I think is herbalore, but not entirely sure) but I don't wanna touch this if they sell slow lol. Fast money only when I bot :P

Bout to try this out.

Edit:Tried out the script and the clicking accuracy is really bad and needs to be fixed.

Edited by noah6131

Ya just tested it and it refuses to click the frog unless I manually hover over it. If I don't hover over the frog it just clicks around it lol

  • Author

Ya just tested it and it refuses to click the frog unless I manually hover over it. If I don't hover over the frog it just clicks around it lol

 

It'll missclick a lot.

 

Can't fix that, but it'll eventually click it.

I pry won't use this for awhile, but great job. I give you a lot of credit for making your first script and it's something different than everyone else's. :)



By the way, to prevent deflation in the price, you shouldn't release this to any other site. :P



EDIT: I used it... It picked up 28 legs then didn't do anything.

Great attempt as a first time scripted,

 

I find that the clicking accuracy is quite off, I would attempt to fix that for your next release!

 

- Visn

  • Author

Great attempt as a first time scripted,

I find that the clicking accuracy is quite off, I would attempt to fix that for your next release!

- Visn

As I stated in my main thread, I will not be editing the code or continuing the script, thus why I released it so others could fix it up and use it, but hopefully uhh release the good copy I guess.

I pry won't use this for awhile, but great job. I give you a lot of credit for making your first script and it's something different than everyone else's. :)

By the way, to prevent deflation in the price, you shouldn't release this to any other site. :P

EDIT: I used it... It picked up 28 legs then didn't do anything.

Is it giving you the unreachable position error?

Please note i haven't updated in a while too. So if there is new methods that work and you want to use, please do so!

Edited by Speakmore

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.