Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts;
- import java.awt.Graphics;
- import java.awt.Point;
- import java.awt.Polygon;
- import java.util.ArrayList;
- import org.tribot.api2007.Camera;
- import org.tribot.api2007.Login;
- import org.tribot.api2007.Banking;
- import org.tribot.api2007.ChooseOption;
- import org.tribot.api2007.Interfaces;
- import org.tribot.api2007.Objects;
- import org.tribot.api2007.Player;
- import org.tribot.api2007.Screen;
- import org.tribot.api2007.Walking;
- import org.tribot.api2007.types.RSNPC;
- import org.tribot.api2007.types.RSObject;
- import org.tribot.api2007.types.RSTile;
- import org.tribot.api2007.types.RSItem;
- import org.tribot.api2007.Inventory;
- import org.tribot.api2007.types.RSInterface;
- import org.tribot.api2007.NPCs;
- import org.tribot.api.DynamicClicking;
- import org.tribot.api.General;
- import org.tribot.api.Timing;
- import org.tribot.api.input.Mouse;
- import org.tribot.api.types.generic.Condition;
- import org.tribot.script.Script;
- import org.tribot.script.ScriptManifest;
- import org.tribot.script.interfaces.Painting;
- import java.awt.Color; //to get different colors
- import java.awt.Font; //to change font
- import java.awt.Graphics2D; //needed for the image
- import java.awt.Image; //same as above
- import java.io.IOException; //this is needed for the loading of the image
- import java.net.URL; //same as above
- import javax.imageio.ImageIO; //same as above
- @ScriptManifest(authors = { "Okokokok" }, category = "Money Making", name = "Ok_oreBuyer")
- public class Ok_oreBuyer extends Script implements Painting {
- private final int ORDAN_ID = 594,
- COAL_ID = 453,
- FRONT_CLOSED_DOOR_ID = 6977,
- HALF_CLOSED_DOOR_ID = 6102,
- HALF_OPEN_DOOR_ID = 6103,
- LAST_CLOSED_DOOR_ID = 6975,
- UP_STAIRS_ID = 9084,
- DOWN_STAIRS_ID = 9138;
- private final RSTile SHOPTILE_DOWNSTAIRS = new RSTile(1936, 4965, 0);
- private final Polygon frontShopArea = new Polygon(
- new int[]{2928, 2933, 2933, 2928},
- new int[]{10190, 10189, 10186, 10186},
- 4),
- frontShopAreaR = new Polygon(
- new int[]{2928, 2933, 2933, 2928},
- new int[]{10192, 10192, 10186, 10186},
- 4),
- halfShopArea = new Polygon(
- new int[]{2928, 2933, 2933, 2928},
- new int[]{10195, 10195, 10190, 10190},
- 4),
- lastShopArea = new Polygon(
- new int[]{2928, 2933, 2933, 2928},
- new int[]{10199, 10198, 10195, 10195},
- 4),
- downLadderArea = new Polygon(
- new int[]{1935, 1944, 1944, 1935},
- new int[]{4970, 4970, 4956, 4956},
- 4),
- bankArea = new Polygon(
- new int[]{2834, 2842, 2842, 2834},
- new int[]{10212, 10212, 10207, 10207},
- 4),
- firstShopArea = new Polygon(
- new int[]{2927, 2934, 2934, 2927},
- new int[]{10186, 10186, 10183, 10183},
- 4),
- downStairsArea = new Polygon(
- new int[]{1937, 1943, 1943, 1937},
- new int[]{4960, 4960, 4956, 4956},
- 4),
- walkingArea = new Polygon(
- new int[]{2842, 2926, 2926, 2842},
- new int[]{10236, 10236, 10170, 10170},
- 4);
- private int oreBought;
- private void setView(){
- int camAngle = Camera.getCameraAngle();
- int camRot = Camera.getCameraRotation();
- if (camAngle != 79 && camRot != 58){
- Camera.setCameraAngle(79);
- Camera.setCameraRotation(58);
- }
- }
- public void closeShop(){
- Mouse.clickBox(479, 34, 495, 48, 1);
- }
- public void hopWorld(){
- closeShop();
- super.setLoginBotState(false);
- super.setRandomSolverState(false);
- worldHop(General.random(1,78),true,true); // random world hop
- super.setLoginBotState(true);
- super.setRandomSolverState(true);
- }
- public boolean loginState(){
- if(!loggedOut()){
- return true;
- }
- return false;
- }
- public void loginAction(){
- if(!loginState()){
- super.setLoginBotState(active);
- }
- }
- public boolean loggedOut(){
- return (Login.getLoginState() == Login.STATE.LOGINSCREEN) && (!Screen.getColorAt(100,200).equals(new Color(0,0,0)));
- }
- public boolean waitFor(Condition c, long timeout) {
- Timer t = new Timer(timeout);
- while (t.isRunning()) {
- if(c.active()){
- return true;
- }
- sleep(60, 80);
- }
- return false;
- }
- private boolean haveOres(){
- RSItem[] haveOres = Inventory.find(COAL_ID);
- return haveOres != null && haveOres.length > 0;
- }
- private boolean atOrdan(){
- RSTile pos = Player.getPosition();
- RSTile atShop = SHOPTILE_DOWNSTAIRS;
- return pos.getPosition().distanceTo(atShop) < 8;
- }
- public boolean isShopOpen(){
- RSInterface shop = Interfaces.get(300);
- if (shop != null){
- return true;
- }
- return false;
- }
- private boolean atFirstShopArea(){
- if(firstShopArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- sleep(600, 700);
- return true;
- }
- return false;
- }
- private void walkToShop(){
- RSTile pos = Player.getPosition();
- RSTile shop = new RSTile (2930, 10185, 0);
- RSTile[] walkPath = new RSTile[] {new RSTile(2930, 10185, 0), new RSTile(2923, 10192, 0), new RSTile(2915, 10199, 0),
- new RSTile(2908, 10209, 0), new RSTile(2898, 10216, 0), new RSTile(2893, 10226, 0),
- new RSTile(2885, 10232, 0), new RSTile(2875, 10232, 0), new RSTile(2864, 10230, 0),
- new RSTile(2855, 10226, 0), new RSTile (2850, 10219, 0), new RSTile(2845, 10213, 0),
- new RSTile(2838, 10207, 0)};
- if (pos != shop){
- if (Walking.walkPath(Walking.invertPath(walkPath))){
- println("Time for a little strole");
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving() && atFirstShopArea();
- }
- }, 30000);
- }
- }
- }
- private boolean atBankArea(){
- if(bankArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- sleep(600, 700);
- return true;
- }
- return false;
- }
- public void walkToBank(){
- RSTile pos = Player.getPosition();
- RSTile bank = new RSTile (2838, 10207, 0);
- RSTile[] walkPath = new RSTile[] {new RSTile(2930, 10185, 0), new RSTile(2923, 10192, 0), new RSTile(2915, 10199, 0),
- new RSTile(2908, 10209, 0), new RSTile(2898, 10216, 0), new RSTile(2893, 10226, 0),
- new RSTile(2885, 10232, 0), new RSTile(2875, 10232, 0), new RSTile(2864, 10230, 0),
- new RSTile(2855, 10226, 0), new RSTile (2850, 10219, 0), new RSTile(2845, 10213, 0),
- new RSTile(2838, 10207, 0)};
- oreBought += Inventory.getCount(COAL_ID);
- if (pos != bank){
- if (Walking.walkPath(walkPath)){
- waitFor(new Condition(){
- @Override
- public boolean active(){
- return !Player.isMoving() && atBankArea();
- }
- }, 7000);
- }
- }
- }
- private boolean walkToFirstInside(){
- RSTile pos = Player.getPosition();
- RSTile lastInside = new RSTile(2930, 10186, 0);
- if (pos != lastInside){
- if (Walking.walkTo(lastInside)){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- return false;
- }
- private boolean walkToLast(){
- RSTile pos = Player.getPosition();
- RSTile last = new RSTile(2929, 10193, 0);
- if (pos != last){
- if (Walking.walkTo(last)){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- return false;
- }
- private boolean walkToLadder(){
- RSTile pos = Player.getPosition();
- RSTile last = new RSTile(2931, 10196, 0);
- if (pos != last){
- if (Walking.walkTo(last)){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- return false;
- }
- private boolean atDownStairsArea(){
- if(downStairsArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- sleep(600, 700);
- return true;
- }
- return false;
- }
- private boolean walkToOrdan(){
- RSTile pos = Player.getPosition();
- RSTile ordan = new RSTile(1936, 4965, 0);
- if (pos != ordan){
- if (Walking.walkTo(ordan)){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- return false;
- }
- private boolean walkToLadderDown(){
- RSTile pos = Player.getPosition();
- RSTile ladder = new RSTile(1940, 4958, 0);
- if (pos != ladder){
- if (Walking.walkTo(ladder)){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- return false;
- }
- public boolean depositOre(){
- RSItem[] gold = Inventory.find(COAL_ID);
- if (gold != null && gold.length > 0){
- return gold[0].click("Deposit-All");
- }
- return false;
- }
- private void openShop(){
- RSNPC[] ordan = NPCs.findNearest(15, ORDAN_ID);
- if (ordan != null && ordan.length > 0){
- if (ordan[0].click("Trade")){
- waitFor(new Condition(){
- @Override
- public boolean active(){
- return isShopOpen();
- }
- }, 4000);
- }
- }
- }
- private boolean atWalkingArea(){
- if(walkingArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- return true;
- }
- return false;
- }
- private boolean atFrontArea(){
- if(frontShopArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- return true;
- }
- return false;
- }
- private boolean atFrontAreaR(){
- if(frontShopAreaR.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- return true;
- }
- return false;
- }
- public void openFrontDoor(){
- RSObject[] door = Objects.findNearest(30, FRONT_CLOSED_DOOR_ID);
- if(door != null && door.length > 0){
- if (DynamicClicking.clickRSObject(door[0], "Open")){
- waitFor(new Condition(){
- @ Override
- public boolean active() {
- return !Player.isMoving() && atFrontArea(); }
- }, 4000);
- }
- }
- }
- public void openFrontDoorR(){
- RSObject[] door = Objects.findNearest(30, FRONT_CLOSED_DOOR_ID);
- if(door != null && door.length > 0){
- if (DynamicClicking.clickRSObject(door[0], "Open")){
- waitFor(new Condition(){
- @ Override
- public boolean active() {
- return !Player.isMoving() && atFirstShopArea(); }
- }, 4000);
- }
- }
- }
- private boolean atHalfArea(){
- if(halfShopArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- return true;
- }
- return false;
- }
- private void openHalfDoor(){
- RSObject[] door = Objects.findNearest(20, HALF_CLOSED_DOOR_ID);
- if(door != null && door.length > 0){
- if (DynamicClicking.clickRSObject(door[0], "Open")){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving() && atHalfArea();
- }
- }, 4000);
- }
- }else {
- if (walkToLast()){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- }
- private boolean isHalfDoorOpen(){
- RSObject[] door = Objects.findNearest(15, HALF_OPEN_DOOR_ID);
- return door != null && door.length > 0;
- }
- private void openHalfDoorR(){
- RSObject[] door = Objects.findNearest(20, HALF_CLOSED_DOOR_ID);
- if(door != null && door.length > 0){
- if (DynamicClicking.clickRSObject(door[0], "Open")){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving() && isHalfDoorOpen();
- }
- }, 4000);
- }
- } else {
- if (walkToFirstInside()){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- }
- private boolean atLastArea(){
- if(lastShopArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- return true;
- }
- return false;
- }
- private void openLastDoor(){
- RSObject[] door = Objects.findNearest(20, LAST_CLOSED_DOOR_ID);
- if(door != null && door.length > 0){
- if (DynamicClicking.clickRSObject(door[0], "Open")){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving() && atLastArea();
- }
- }, 4000);
- }
- } else {
- if (walkToLadder()){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- }
- private boolean walkToHalf(){
- RSTile pos = Player.getPosition();
- RSTile half = new RSTile(2929, 10190, 0);
- if (pos != half){
- if (Walking.walkTo(half)){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving();
- }
- }, 4000);
- }
- }
- return false;
- }
- private void openLastDoorR(){
- RSObject[] door = Objects.findNearest(20, LAST_CLOSED_DOOR_ID);
- if(door != null && door.length > 0){
- if (DynamicClicking.clickRSObject(door[0], "Open")){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return !Player.isMoving() && atHalfArea();
- }
- }, 4000);
- }
- } else {
- if (walkToHalf()){
- }
- }
- }
- private boolean atDownArea(){
- if(downLadderArea.contains(Player.getPosition().getX(), Player.getPosition().getY())){
- return true;
- }
- return false;
- }
- private void goDownStairs(){
- RSObject[] stairs = Objects.findNearest(20, UP_STAIRS_ID);
- if(stairs != null && stairs.length > 0){
- if (DynamicClicking.clickRSObject(stairs[0], "Climb-down")){
- waitFor(new Condition(){
- @ Override
- public boolean active(){
- return atDownArea();
- }
- }, 4000);
- }
- }
- }
- private void goUpStairs(){
- RSObject[] stairs = Objects.findNearest(20, DOWN_STAIRS_ID);
- if(stairs != null && stairs.length > 0){
- if (DynamicClicking.clickRSObject(stairs[0], "Climb-up")){
- waitFor(new Condition (){
- @ Override
- public boolean active(){
- return atLastArea();
- }
- }, 4000);
- }
- }
- }
- private boolean checkStoreStack(){
- RSItem[] coal = Interfaces.get(300, 75).getItems();
- if(isShopOpen()){
- for (int i = 0; i < coal.length; i++){
- if (coal[i].getID() == 453){
- if (coal[i].getStack() > 2){
- return true;
- }
- }
- }
- }
- return false;
- }
- //Doomguard's buy store snippet
- private boolean StoreHave(){
- RSItem[] items = Interfaces.get(300 , 75).getItems();
- for(int i = 0; i < items.length; i++)
- if(items[i].getID() == 453){
- return true;
- }
- return false;
- }
- private boolean buy(int x){
- while(StoreHave() && !Inventory.isFull() && checkStoreStack()){
- RSItem[] items = Interfaces.get(300, 75).getItems(); // GET ALL THE ITEM IN THE SHOP
- for (int i = 0; i < items.length; i++) { // LOOP THROUGHT THE ITEM
- if (items[i].getID() == 453) { // IF THE ITEM IS SAME AS THE ITEM WANT
- println(items[i].getID()+ " "+ items[i].getStack());
- items[i].changeType(RSItem.TYPE.BANK); // TURN TO A BANK ITEM
- Mouse.clickBox(362, 76, 393, 92, 3);
- if(x == 10){
- if(ChooseOption.isOptionValid("Buy 10")) { // IF BUY 10 IS AVI
- ChooseOption.select("Buy 10"); // CLICK BUY TEN
- }
- sleep(500);
- }
- if(x == 5){
- if(ChooseOption.isOptionValid("Buy 10")) { // IF BUY 5 IS AVI
- ChooseOption.select("Buy 10"); // CLICK buy 5
- }
- sleep(500);
- }
- if(x == 1){
- if(ChooseOption.isOptionValid("Buy 1")) { // IF BUY 1 IS AVI
- ChooseOption.select("Buy 1"); // CLICK BUY one
- }
- sleep(500);
- }
- if(ChooseOption.isOptionValid("Cancel"))
- ChooseOption.select("Cancel"); // CLICK BUY one
- }
- }
- }
- return false;
- }
- // wastedbro's World Hopping Snippet
- public void worldHop(int worldNumber, boolean excludeFrees, boolean excludePopular)
- {
- logout(); //Logs out if needed
- while(loggedOut())
- {
- openWorldSelect();
- }
- while(worldSelectOpen())
- {
- selectWorld(worldNumber,excludeFrees,excludePopular);
- }
- }
- public void selectWorld(int worldNumber, boolean excludeFrees, boolean excludePopular)
- {
- ArrayList<Point> world = new ArrayList<Point>();
- int counter = 1;
- while((worldNumber == 7 || worldNumber == 15 || worldNumber == 23 || worldNumber == 24 || worldNumber == 31 || worldNumber == 32 || worldNumber == 39 || worldNumber == 40 || worldNumber == 47 || worldNumber == 48 || worldNumber == 55 || worldNumber == 56 || worldNumber == 63 || worldNumber == 64 || worldNumber == 71 || worldNumber == 72))
- {
- worldNumber = General.random(1, 78);
- if((worldNumber == 1 || worldNumber == 2) && excludePopular)
- {
- continue;
- }
- if((worldNumber == 8 || worldNumber == 16) && excludeFrees)
- {
- continue;
- }
- } //The loops above ensure the world chosen exists and not free/popular depending on the boolean parameters
- for(int columns = 230, y = 1; y < 5 ; columns=columns+95, y++) // Populates the world arrayList with points relative to the world
- {
- for(int rows = 81, x = 1; x < 17; rows=rows+24, x++, counter++)
- {
- while(counter == 7 || counter == 15 || counter == 23 || counter == 24 || counter == 31 || counter == 32 || counter == 39 || counter == 40 || counter == 47 || counter == 48 || counter == 55 || counter == 56 || counter == 63 || counter == 64 || counter == 71 || counter == 72)
- {
- world.add(new Point(0,0));
- counter++;
- }
- world.add(new Point(columns,rows));
- }
- }
- worldNumber--;
- Mouse.clickBox(world.get(worldNumber).x - 10, world.get(worldNumber).y - 5, world.get(worldNumber).x + 10, world.get(worldNumber).y + 5, 1);
- for(int x = 0; x < 6; x++) //Waits up to 3 seconds for the login screen. Checks every half a second (Approx.)
- {
- if(loggedOut())
- {
- break;
- }
- sleep(490,510);
- }
- }
- public boolean worldSelectOpen()
- {
- if (Login.getLoginState() == Login.STATE.LOGINSCREEN)
- {
- Color black = new Color(0,0,0);
- return (Screen.getColorAt(100, 200).equals(black));
- }
- return false;
- }
- public boolean openWorldSelect()
- {
- if (Login.getLoginState() == Login.STATE.LOGINSCREEN)
- {
- Mouse.clickBox(10, 465, 100, 495, 0);
- for(int x = 0; x < 10; x++)
- {
- if(worldSelectOpen())
- {
- return true;
- }
- sleep(490,510);
- }
- }
- return false;
- }
- public boolean logout()
- {
- if (Login.getLoginState() == Login.STATE.INGAME)
- {
- Login.logout();
- for(int x = 0; x < 6; x++)
- {
- if(loggedOut())
- {
- return true;
- }
- sleep(490,510);
- }
- }
- return false;
- }
- private Image getImage(String url){
- try{
- return ImageIO.read(new URL(url));
- } catch (IOException e) {
- return null;
- }
- }
- private final Image img = getImage("http://i43.tinypic.com/28uphdt.jpg");
- private static final long startTime = System.currentTimeMillis();
- private State SCRIPT_STATE = getState();
- Font font = new Font("Forte", Font.PLAIN, 18);
- @Override
- public void onPaint(Graphics g) {
- Graphics2D gg = (Graphics2D)g;
- gg.drawImage(img, 9, 345, null);
- long timeRan = System.currentTimeMillis() - startTime;
- double multiplier = timeRan / 3600000D;
- int ore = oreBought;
- g.setFont(font);
- g.setColor(new Color(194, 182, 38));
- g.drawString("Action: " + SCRIPT_STATE, 16, 410);
- g.drawString("Time running: " + Timing.msToString(timeRan), 16, 430);
- g.drawString("Ores p/h: " + (int) (ore / multiplier) + " p/h", 16, 450);
- g.drawString("Ores bought: " + ore, 16, 470);
- }
- public enum State{
- WORLD_HOP, WALKING_TOSHOP, WALKING_TOBANK, BUY_ORES,
- OPEN_SHOP, OPEN_BANK, DEPOSIT_ORES, PASSING_LAST_AREA_R,
- PASSING_HALF_AREA_R, PASSING_FRONT_AREA_R, WALKING_TO_STAIRS,
- PASSING_FRONT_AREA, PASSING_HALF_AREA, PASSING_LAST_AREA,
- PASSING_FIRST_SHOP_AREA, GOING_UP_STAIRS, WALK_TO_ORDAN;
- }
- private State getState(){
- if (haveOres() && Inventory.isFull()){
- if (atBankArea()){
- if (Banking.isBankScreenOpen()){
- return State.DEPOSIT_ORES;
- } else {
- return State.OPEN_BANK;
- }
- } else {
- if(atOrdan()){
- return State.WALKING_TO_STAIRS;
- } else {
- if (atDownStairsArea()){
- return State.GOING_UP_STAIRS;
- } else {
- if (atLastArea()){
- return State.PASSING_LAST_AREA_R;
- } else {
- if (atHalfArea()){
- return State.PASSING_HALF_AREA_R;
- } else {
- if (atFrontAreaR()){
- return State.PASSING_FRONT_AREA_R;
- } else {
- if (atFirstShopArea()){
- return State.WALKING_TOBANK;
- } else {
- if (atWalkingArea()){
- return State.WALKING_TOBANK;
- }
- }
- }
- }
- }
- }
- }
- }
- } else {
- if (!Inventory.isFull()){
- if (atBankArea()){
- return State.WALKING_TOSHOP;
- } else {
- if (atFirstShopArea()){
- return State.PASSING_FIRST_SHOP_AREA;
- } else {
- if (atFrontArea()){
- return State.PASSING_FRONT_AREA;
- } else {
- if (atHalfArea()){
- return State.PASSING_HALF_AREA;
- } else {
- if (atLastArea()){
- return State.PASSING_LAST_AREA;
- } else {
- if (atDownStairsArea()){
- return State.WALK_TO_ORDAN;
- } else {
- if (atWalkingArea()){
- return State.WALKING_TOSHOP;
- } else {
- if (!isShopOpen() && atOrdan()){
- return State.OPEN_SHOP;
- } else {
- if (isShopOpen() && checkStoreStack()){
- return State.BUY_ORES;
- } else {
- if (!checkStoreStack()){
- return State.WORLD_HOP;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return null;
- }
- @Override
- public void run() {
- println("Script has been started");
- super.setRandomSolverState(true);
- setView();
- while(true){
- if (loggedOut()){
- super.setLoginBotState(active);
- } else {
- while(!loggedOut()){
- SCRIPT_STATE = getState();
- switch(SCRIPT_STATE){
- case BUY_ORES:
- buy(10);
- case DEPOSIT_ORES:
- Banking.isPinScreenOpen();
- depositOre();
- break;
- case OPEN_BANK:
- Banking.openBankBooth();
- break;
- case OPEN_SHOP:
- openShop();
- break;
- case WALKING_TOBANK:
- Walking.setControlClick(false);
- walkToBank();
- break;
- case WALKING_TOSHOP:
- Walking.setControlClick(true);
- walkToShop();
- break;
- case PASSING_FRONT_AREA:
- Walking.setControlClick(true);
- openHalfDoor();
- break;
- case PASSING_FRONT_AREA_R:
- Walking.setControlClick(true);
- openFrontDoorR();
- break;
- case PASSING_HALF_AREA:
- Walking.setControlClick(true);
- openLastDoor();
- break;
- case PASSING_HALF_AREA_R:
- Walking.setControlClick(true);
- openHalfDoorR();
- break;
- case PASSING_LAST_AREA:
- Walking.setControlClick(true);
- goDownStairs();
- break;
- case PASSING_LAST_AREA_R:
- Walking.setControlClick(true);
- openLastDoorR();
- break;
- case WALKING_TO_STAIRS:
- Walking.setControlClick(true);
- walkToLadderDown();
- break;
- case WALK_TO_ORDAN:
- Walking.setControlClick(true);
- walkToOrdan();
- break;
- case PASSING_FIRST_SHOP_AREA:
- Walking.setControlClick(true);
- openFrontDoor();
- break;
- case GOING_UP_STAIRS:
- goUpStairs();
- break;
- case WORLD_HOP:
- setView();
- hopWorld();
- break;
- }
- }
- }
- sleep(50, 150);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement