Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Walker;
- import org.osbot.script.Script;
- import org.osbot.script.rs2.map.Position;
- import org.osbot.script.rs2.model.Entity;
- public class PathTile extends Position {
- public boolean random;
- public PathTile original;
- public PathTile(Entity ent, boolean randomize) {
- super(ent);
- this.random = randomize;
- original = this;
- }
- public PathTile(Entity ent) {
- super(ent);
- this.random = true;
- original = this;
- }
- public PathTile(int x, int y, int z, boolean randomize) {
- super(x, y, z);
- this.random = randomize;
- original = this;
- }
- public PathTile(int x, int y, int z) {
- super(x, y, z);
- this.random = true;
- original = this;
- }
- public PathTile(PathTile old, Script scr, int max) {
- super((old.original.getX() + (scr.random(-max, max))), (old.original
- .getY() + (scr.random(-max, max))), old.original.getZ());
- this.random = old.random;
- this.original = old.original;
- }
- public PathTile randomize(Script scr, int max) {
- if (this.random) {
- return new PathTile(this, scr, max);
- }
- return this;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement