Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

nebscape

Registered
  • Content count

    28
  • Joined

  • Last visited

  • Feedback

    N/A

Everything posted by nebscape

  1. So far I have this script working so that it will do tut island-->7 qp --> then goes right onto my fishing script. The problem I'm having is when my fishing script gets called it's only using the Run() method in the class. I need it to use message listening specifically clan chat trading and server messages also so the fishing script will work properly. package scripts; import java.awt.Color; import java.awt.Graphics; import org.tribot.api.General; import org.tribot.api.Timing; import org.tribot.script.Script; import org.tribot.script.ScriptManifest; import org.tribot.script.interfaces.MessageListening07; import org.tribot.script.interfaces.Painting; import scripts.NebsFisher.NebFarm; import scripts.api.data.Bag; import scripts.api.patterns.BaseScript; import scripts.api.util.ACamera; import scripts.quester.Quester; import scripts.tutorial.Tutorial; @ScriptManifest(authors = { "Nebscape" }, category = "Tools", name = "fuckmeifthisworks", version = 1.00, description = "", gameMode = 1) public class Example extends Script implements BaseScript, Painting, MessageListening07 { private ACamera camera = new ACamera(); private Bag bag = new Bag(); private int shrimpCount = 0; private int anchoviesCount = 0; private int lobsCount = 0; @Override public void run() { if (Tutorial.start(this)) { System.out.println("DeluxeTutorial took " + Timing.msToString( System.currentTimeMillis() - bag.get("tutorialStartTime", System.currentTimeMillis())) + " to complete."); if (Quester.start(this)) { System.out.println("DeluxeQuester took " + Timing.msToString( System.currentTimeMillis() - bag.get("questStartTime", System.currentTimeMillis())) + " to complete."); NebFarm nebObject = new NebFarm(); nebObject.run(); } } else { NebFarm nebObject = new NebFarm(); nebObject.run(); } } @Override public void setStatus(String status) { General.println(status); } @Override public void update(String message) { General.println(message); } @Override public ACamera getCamera() { return this.camera; } @Override public Bag getBag() { return this.bag; } @Override public Script getScript() { return this; } @Override public void onPaint(Graphics g) { g.setColor(Color.WHITE); g.drawString("Neb's Fisher", 10, 70); g.drawString("You have caught" + " " + shrimpCount + " " + "shrimp!", 10, 80); g.drawString("You have caught" + " " + anchoviesCount + " " + "anchovies!", 10, 90); g.drawString("You have caught" + " " + lobsCount + " " + "lobsters!", 10, 100); g.drawString("Happy Fishing!", 10, 120); } @Override public void clanMessageReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void duelRequestReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void personalMessageReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void playerMessageReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void serverMessageReceived(String msg) { if (msg.contains("You catch some shrimps.")) { shrimpCount++; } if (msg.contains("You catch some anchovies.")) { anchoviesCount++; } if (msg.contains("You catch a lobster.")) { lobsCount++; } } @Override public void tradeRequestReceived(String arg0) { // TODO Auto-generated method stub } }
  2. package scripts.NebsFisher; import java.awt.Color; import java.awt.Graphics; import org.tribot.api.DynamicClicking; import org.tribot.api.General; import org.tribot.api.Timing; import org.tribot.api.input.Keyboard; import org.tribot.api.input.Mouse; import org.tribot.api.types.generic.Condition; import org.tribot.api2007.Banking; import org.tribot.api2007.Camera; import org.tribot.api2007.Interfaces; import org.tribot.api2007.Inventory; import org.tribot.api2007.NPCChat; import org.tribot.api2007.NPCs; import org.tribot.api2007.Objects; import org.tribot.api2007.Player; import org.tribot.api2007.Players; import org.tribot.api2007.Skills; import org.tribot.api2007.Trading; import org.tribot.api2007.Skills.SKILLS; import org.tribot.api2007.Walking; import org.tribot.api2007.WebWalking; import org.tribot.api2007.types.RSInterfaceChild; import org.tribot.api2007.types.RSNPC; import org.tribot.api2007.types.RSObject; import org.tribot.api2007.types.RSPlayer; import org.tribot.api2007.types.RSTile; import org.tribot.script.Script; import org.tribot.script.ScriptManifest; import org.tribot.script.interfaces.MessageListening07; import org.tribot.script.interfaces.Painting; @ScriptManifest(authors = { "Nebscape" }, category = "Fishing", name = "NebFarm") public class NebFarm extends Script implements Painting, MessageListening07 { private final RSTile DRAYNOR_BANK = new RSTile(3093, 3244, 0); private final RSTile BOARDING_TILE = new RSTile(3028, 3217, 0); private final RSTile SHRIMP_TILE = new RSTile(3244, 3152, 0); private final RSTile FISHING_TUTOR_TILE = new RSTile(3245, 3156, 0); private int shrimpCount = 0; private int anchoviesCount = 0; private int lobsCount = 0; private final int BANK_MASTER_ID = 12, WITHDRAW_AS_ITEM_ID = 21, WITHDRAW_AS_NOTED_ID = 23; RSTile[] bankPath = new RSTile[] { new RSTile(3093, 3246, 0), new RSTile(3087, 3250, 0), new RSTile(3083, 3254, 0), new RSTile(3082, 3258, 0), new RSTile(3080, 3264, 0), new RSTile(3076, 3269, 0), new RSTile(3073, 3273, 0), new RSTile(3070, 3277, 0), new RSTile(3064, 3277, 0), new RSTile(3060, 3272, 0), new RSTile(3059, 3267, 0), new RSTile(3057, 3261, 0), new RSTile(3057, 3258, 0), new RSTile(3057, 3253, 0), new RSTile(3052, 3248, 0), new RSTile(3046, 3247, 0), new RSTile(3042, 3247, 0), new RSTile(3042, 3241, 0), new RSTile(3042, 3237, 0), new RSTile(3037, 3236, 0), new RSTile(3032, 3236, 0), new RSTile(3028, 3236, 0), new RSTile(3027, 3232, 0), new RSTile(3027, 3228, 0), new RSTile(3028, 3223, 0), new RSTile(3028, 3217, 0) }; RSTile[] lobbyPath = new RSTile[] { new RSTile(2952, 3148, 0), new RSTile(2946, 3148, 0), new RSTile(2941, 3148, 0), new RSTile(2935, 3149, 0), new RSTile(2929, 3151, 0), new RSTile(2925, 3152, 0), new RSTile(2918, 3152, 0), new RSTile(2915, 3153, 0), new RSTile(2916, 3158, 0), new RSTile(2919, 3162, 0), new RSTile(2923, 3167, 0), new RSTile(2924, 3172, 0), new RSTile(2925, 3177, 0), new RSTile(2925, 3179, 0) }; RSTile[] lobstoboat = new RSTile[] { new RSTile(2925, 3177, 0), new RSTile(2925, 3174, 0), new RSTile(2924, 3171, 0), new RSTile(2920, 3165, 0), new RSTile(2917, 3162, 0), new RSTile(2918, 3158, 0), new RSTile(2916, 3153, 0), new RSTile(2923, 3152, 0), new RSTile(2929, 3151, 0), new RSTile(2935, 3149, 0), new RSTile(2941, 3146, 0), new RSTile(2946, 3147, 0), new RSTile(2952, 3148, 0), new RSTile(2954, 3148, 0) }; RSTile[] boattodeposit = new RSTile[] { new RSTile(3028, 3221, 0), new RSTile(3028, 3225, 0), new RSTile(3028, 3230, 0), new RSTile(3028, 3236, 0), new RSTile(3034, 3237, 0), new RSTile(3040, 3237, 0), new RSTile(3046, 3237, 0), new RSTile(3045, 3235, 0) }; @Override public void onPaint(Graphics g) { g.setColor(Color.WHITE); g.drawString("Neb's Fisher", 10, 70); g.drawString("You have caught" + " " + shrimpCount + " " + "shrimp!", 10, 80); g.drawString("You have caught" + " " + anchoviesCount + " " + "anchovies!", 10, 90); g.drawString("You have caught" + " " + lobsCount + " " + "lobsters!", 10, 100); g.drawString("Happy Fishing!", 10, 120); } private boolean needCash() { sleep(1000); if (Inventory.getCount(995) <= 100 && Inventory.getCount(301) == 1) { WebWalking.walkToBank(); if (!Player.isMoving()) { Banking.openBank(); sleep(2000); if (Banking.isBankScreenOpen()) { Banking.withdraw(10000, 995); } } } return false; } private boolean offBoatFishing() { if (Player.getPosition().getPlane() == 1) { RSObject[] gankplank = Objects.findNearest(20, "Gangplank"); if (gankplank.length > 0) { if (!gankplank[0].isOnScreen()) Camera.turnToTile(gankplank[0].getPosition()); if (DynamicClicking.clickRSObject(gankplank[0], "Cross")) { sleep(2000); } } } return false; } private boolean needPot() { sleep(1000); if (lobsCount == 0 && Inventory.getCount(301) == 0) { if (!Banking.isInBank()) { WebWalking.walkTo(DRAYNOR_BANK); sleep(2000); Banking.openBank(); sleep(2000); Banking.depositAll(); sleep(500); Banking.close(); sleep(500); lobsCount++; } } return false; } private boolean draynorBank() { if (Banking.isInBank() && !Player.isMoving() && Inventory.getCount(378) == 0 && Inventory.getCount(301) == 1) { Walking.walkPath(bankPath); } return false; } private boolean returnIsland() { RSNPC[] monkguy = NPCs.findNearest("Monk of Entrana"); monkguy = NPCs.findNearest("Monk of Entrana"); if (monkguy.length > 0 && monkguy[0].isOnScreen() && !Inventory.isFull()) { Walking.blindWalkTo(BOARDING_TILE); sleep(5000); } return false; } private boolean goIsland() { RSNPC[] boardingguy = NPCs.findNearest("Seaman Thresnor", "Captain Tobias", "Seaman Lorris"); boardingguy = NPCs.findNearest("Seaman Thresnor", "Captain Tobias", "Seaman Lorris"); if (boardingguy.length > 0 && boardingguy[0].isOnScreen() && !Inventory.isFull()) { DynamicClicking.clickRSNPC(boardingguy[0], "Pay-fare"); sleep(4000); NPCChat.clickContinue(true); sleep(2000); NPCChat.selectOption("Yes please.", true); sleep(2000); NPCChat.clickContinue(true); sleep(8000); } return false; } private boolean InvFullOfShrimp() { if (Inventory.isFull()) { Inventory.dropAllExcept(303); } return false; } private boolean fishShrimp() { if (!Inventory.isFull() && (Player.getAnimation() == -1)) { RSNPC[] fishingspot = NPCs.findNearest("Fishing spot"); fishingspot = NPCs.findNearest("Fishing spot"); if (fishingspot.length > 0 && fishingspot[0].isOnScreen()) { DynamicClicking.clickRSNPC(fishingspot[0], "Net"); sleep(3000); } else { Walking.blindWalkTo(SHRIMP_TILE); //move tile more south sleep(2000); } } return false; } private boolean noNet() { if (Inventory.getCount(303) == 0) { Walking.blindWalkTo(FISHING_TUTOR_TILE); RSNPC[] netguy = NPCs.findNearest("Fishing tutor"); netguy = NPCs.findNearest("Fishing tutor"); if (netguy.length > 0 && netguy[0].isOnScreen()) { DynamicClicking.clickRSNPC(netguy[0], "Talk-to"); { Timing.waitCondition(new Condition() { @Override public boolean active() { return NPCChat.getClickContinueInterface() != null; } }, General.random(3000, 4000)); if (NPCChat.getSelectOptionInterface() != null && NPCChat.getOptions().length > 0 && NPCChat.getOptions()[0].contains("Can you teach me the basics of fishing please?")) { NPCChat.selectOption("Can you teach me the basics of fishing please?", true); sleep(2000); NPCChat.clickContinue(true); } if (NPCChat.getMessage().contains("Can you teach me the basics of fishing please?")) { NPCChat.clickContinue(true); } } } } return false; } private boolean boatToFish() { RSNPC[] customsguy = NPCs.findNearest("Customs officer"); customsguy = NPCs.findNearest("Customs officer"); if (customsguy.length > 0 && customsguy[0].isOnScreen() && !Inventory.isFull()) { Walking.walkPath(lobbyPath); sleep(2000); } return false; } private boolean fishingLobs() { RSNPC[] lobbinspot = NPCs.findNearest(1522); lobbinspot = NPCs.findNearest(1522); if (lobbinspot.length > 0 && lobbinspot[0].isOnScreen() && !Inventory.isFull() && (Player.getAnimation() == -1)) { DynamicClicking.clickRSNPC(lobbinspot[0], "Cage"); sleep(3000); } return false; } private boolean fullOfLobs() { RSNPC[] lobbingspot = NPCs.findNearest("Fishing spot"); lobbingspot = NPCs.findNearest("Fishing spot"); if (lobbingspot.length > 0 && lobbingspot[0].isOnScreen() && Inventory.isFull()) { Walking.walkPath(lobstoboat); sleep(2000); } return false; } private boolean takeBoatHome() { RSNPC[] customschick = NPCs.findNearest("Customs officer"); customschick = NPCs.findNearest("Customs officer"); if (customschick.length > 0 && customschick[0].isOnScreen() && Inventory.isFull()) { DynamicClicking.clickRSNPC(customschick[0], "Pay-Fare"); sleep(4000); NPCChat.clickContinue(true); sleep(2000); NPCChat.selectOption("Can I journey on this ship?", true); sleep(2000); NPCChat.clickContinue(true); sleep(2000); NPCChat.clickContinue(true); sleep(2000); NPCChat.selectOption("Search away, I have nothing to hide.", true); sleep(2000); NPCChat.clickContinue(true); sleep(2000); NPCChat.clickContinue(true); sleep(2000); NPCChat.selectOption("Ok.", true); sleep(2000); NPCChat.clickContinue(true); sleep(8000); } else { if (NPCChat.getMessage() == null && customschick.length > 0 && customschick[0].isOnScreen() && Inventory.isFull()) { DynamicClicking.clickRSNPC(customschick[0], "Pay-Fare"); sleep(1000); } } return false; } private boolean lobsToBank() { RSNPC[] bankingguy = NPCs.findNearest("Captain Tobias"); bankingguy = NPCs.findNearest("Captain Tobias"); if (bankingguy.length > 0 && bankingguy[0].isOnScreen() && Inventory.isFull()) { Walking.walkPath(boattodeposit); sleep(1000); } return false; } private boolean depositLobs() { RSNPC[] monkguy = NPCs.findNearest("Monk of Entrana"); monkguy = NPCs.findNearest("Monk of Entrana"); if (monkguy.length > 0 && monkguy[0].isOnScreen() && Inventory.isFull()) { RSObject[] boxes = Objects.findNearest(5, "Bank deposit box"); if (!Banking.isDepositBoxOpen()) { if (boxes.length > 0) if (DynamicClicking.clickRSObject(boxes[0], "Deposit")) sleep(3000); Banking.depositAllExcept(995, 301); Timing.waitCondition(new Condition() { @Override public boolean active() { return Banking.isDepositBoxOpen(); } }, General.random(1000, 1500)); } } return false; } private boolean muleLobs() { if (lobsCount == (1000) || lobsCount == (1001) || lobsCount == (1002) || lobsCount == 2000 || lobsCount == 2001 || lobsCount == 2002) { if (!Banking.isInBank()) { WebWalking.walkToBank(); sleep(1000); if (Banking.isInBank()) { Banking.openBank(); sleep(2000); Banking.depositAllExcept(995, 301); if (Banking.isBankScreenOpen()) { this.setNoted(true); sleep(1500); Banking.withdraw(9876, "Raw lobster"); sleep(1000); if (Banking.isBankScreenOpen()) { Banking.close(); Keyboard.typeSend("/You Ready?"); sleep(2000); } } } } } return false; } private boolean mulesBusy() { if (Banking.isInBank() && Trading.getWindowState() == null && Inventory.getCount(378) > 0) { Keyboard.typeSend("/You Ready?"); sleep(2000); } return false; } public boolean isNotedOn() { if (Banking.isBankScreenOpen()) { RSInterfaceChild itemInterfaceChild = Interfaces.get(BANK_MASTER_ID, WITHDRAW_AS_ITEM_ID); if (itemInterfaceChild != null) { return itemInterfaceChild.getTextureID() == 812; } } return false; } public boolean setNoted(boolean noted) { if (Banking.isBankScreenOpen()) { if (noted && !isNotedOn()) { RSInterfaceChild notedInterfaceChild = Interfaces.get(BANK_MASTER_ID, WITHDRAW_AS_NOTED_ID); if (notedInterfaceChild != null && notedInterfaceChild.click("Note")) { Timing.waitCondition(new Condition() { @Override public boolean active() { General.sleep(10, 30); return isNotedOn(); } }, General.random(800, 1200)); return isNotedOn(); } } else if (!noted && isNotedOn()) { RSInterfaceChild itemInterfaceChild = Interfaces.get(BANK_MASTER_ID, WITHDRAW_AS_ITEM_ID); if (itemInterfaceChild != null && itemInterfaceChild.click("Item")) { Timing.waitCondition(new Condition() { @Override public boolean active() { General.sleep(10, 30); return !isNotedOn(); } }, General.random(800, 1200)); return !isNotedOn(); } } } return false; } @Override public void run() { while (true) { Mouse.setSpeed(250); while (Skills.getActualLevel(SKILLS.FISHING) <= 39) { if (this.noNet()) ; if (this.fishShrimp()) ; if (this.InvFullOfShrimp()) ; } while (Skills.getActualLevel(SKILLS.FISHING) >= 40 && Trading.getWindowState() == null) { if (this.muleLobs()) ; if (this.needPot()) ; if (this.needCash()) ; if (this.draynorBank()) ; if (this.returnIsland()) ; if (this.goIsland()) ; if (this.offBoatFishing()) ; if (this.boatToFish()) ; if (this.fishingLobs()) ; if (this.fullOfLobs()) ; if (this.takeBoatHome()) ; if (this.lobsToBank()) ; if (this.depositLobs()) ; if (this.mulesBusy()) ; } if (Trading.getWindowState() != null && Inventory.getCount(301) == 1) { Trading.offer(9999, 378); sleep(3000); if (!Trading.hasAccepted(false)) { Trading.accept(); sleep(3000); if (!Trading.hasAccepted(false)) { Trading.accept(); lobsCount++; lobsCount++; lobsCount++; } } } } } @Override public void clanMessageReceived(String s, String s1) { RSPlayer[] player = Players.find(s); if (s1.contains("Gimmie lobs") && Inventory.getCount(378) > 0 && (lobsCount == 1000 || lobsCount == 1001 || lobsCount == 1002 || lobsCount == 2000 || lobsCount == 2001 || lobsCount == 2002)) { Keyboard.typeSend("/okiedokie"); if (player[0] != null) { if (player[0].isOnScreen()) { player[0].click("Trade with " + s); } } } else { if (Trading.getWindowState() != null) { Trading.offer(9999, 378); sleep(3000); if (!Trading.hasAccepted(false)) { Trading.accept(); sleep(3000); if (!Trading.hasAccepted(false)) { Trading.accept(); lobsCount++; lobsCount++; lobsCount++; } } } } } @Override public void duelRequestReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void personalMessageReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void playerMessageReceived(String arg0, String arg1) { // TODO Auto-generated method stub } @Override public void serverMessageReceived(String msg) { // TODO Auto-generated method stub if (msg.contains("You catch some shrimps.")) { shrimpCount++; } if (msg.contains("You catch some anchovies.")) { anchoviesCount++; } if (msg.contains("You catch a lobster.")) { lobsCount++; } } @Override public void tradeRequestReceived(String name) { RSPlayer[] player = Players.find(name); if (player[0] != null) { if (Player.getPosition().distanceTo(player[0]) == 1) { sleep(1000); player[0].click("Trade with " + name); if (Trading.hasAccepted(true)) { Trading.accept(); if (!Trading.hasAccepted(false)) { Trading.accept(); //use with usa bot farm tool? } } } } } } NebFarm class (fishing script)
  3. I seem to get the issue often on my VPS when at the lobby fishing spot
  4. If your looking for active members just check the bottom of the page.
  5. Those are jagex working hours and I'm assuming thats why.
  6. I don't understand lol you paid for your mcdicks with money you got from botting?
  7. Someone should really check the email listed as contact information lol
  8. wild pies isn't working. The script opens the bank and ends. I think it's not detecting the supplies.
  9. no this bug was found after skippy was removed.
  10. Right now the only bug i can find is when your talking to the very first npc he asks a new question now. requiring you to choose 1 of 3 options to move forward. Right now the script gets stuck there.
  11. I would highly recommend talking to @Mute he made me a private script. Script works awesome and his communication is awesome. Expect regular updates from him throughout the whole process!
  12. Huge vouch for Mute! I paid him for a private script and he had it ready for me that night with status updates the whole way through. I couldn't have asked for better customer service or quality. Thanks again Mute!
  13. I'm curious on what the effect of randomly giving away money everyonce in a while would do.
  14. https://www.youtube.com/watch?v=v6EiYbRTv4M this farm songs a classic listen to this while farming and no ban ever.
  15. hows your back doing lol
  16. In theory someone has to be buying the bonds from jagex or none would be traded on the grand exchange. If no ones selling bonds and gold farmers are trying to buy them the price is going to skyrocket and all a sudden it will be cheaper to buy a bond from jagex than it is ingame. Constant demand for bonds means there will be a supply which means jagex is selling bonds to someone lol
  17. essentially the only way to bot 24/7 is to mass create accounts and have a ton of proxies. You need to only bot a 2-3 hours a day I would say so you would need around 14 bots just to have 1 "bot" running 24/7. Thats the way I think of it anyways. Lots of brothers/siblings play rs on the same ip address at the same time so I like to think the average number of kids someone has is 2 meaning I keep 2 accounts per 1 proxy running at the same time.
  18. I died multiple times in the same spot using the preset cake option. It seems that the bot normally does fine but every once in a while there is a guard that spawns and seems to be able to walk further than the normal guard that the bot walks away from.