Jump to content

yutpod

Registered
  • Content count

    184
  • Joined

  • Last visited

  • Feedback

    100%

Community Reputation

15 Good

About yutpod

  • Rank
    Experienced Botter

Recent Profile Visitors

1,121 profile views
  1. yutpod

    Getting account's id

    @Encoded Is that still the case if I don't need to get my script approved to the store? I've never managed to find the location where TRiBot stores login details, but I've heard that all the account's information is stored locally on the user's machine for security purposes. I presume the values would be encrypted, but for my use it doesn't matter. Could I technically read that file? Also, do you know where the login details file is located?
  2. yutpod

    Getting account's id

    I want to generate a set of random numbers for a specific account, in a way that every time Script is executed the exact set of random numbers would be regenerated. The standard way for doing something like this would be to take something that is unique and static to the account and generate a seed from that. I have written one that is based on runescape username. package scripts.api.util; import scripts.api.helpers.Player07; import java.util.Random; public class ProfileRandom extends Random { private static final String TAG = ProfileRandom.class.getName(); public ProfileRandom(Class c) { setSeed(generateSeed(Player07.getUsername(), c.getName())); } protected ProfileRandom() { setSeed(generateSeed(Player07.getUsername(), getClass().getName())); } private long generateSeed(String username, String className) { if(username == null || username.isEmpty() || className == null || className.isEmpty()) { Log.e(TAG, "generateSeed: Username or Class name is empty or null!"); Log.w(TAG, "generateSeed: Continuing with a current nano time as a random seed!"); return System.nanoTime(); } return ((long) className.hashCode() << 32) | username.hashCode(); } } The problem with that is username will be null unless account is logged in and also username is not really a unique static value, since you can change it. Is it possible to get account's id (hashed login username)?
  3. yutpod

    Checking if item exists in the bank

    @ludify works great so far Thanks.
  4. What is the correct way for checking if item exists in the bank? This fails around 1 out of 500 times. I'm stomped on why it fails, bank screen is open and item is visible within the screen, when this condition returns true. if (Banking.isBankScreenOpen() && Banking.find("name").length == 0) { // Stop script, etc } Thanks. Edit: Full code of my Banking task if it is due to something else I'm missing. package scripts.api.tasks; import org.tribot.api2007.Banking; import org.tribot.api2007.Inventory; import org.tribot.api2007.types.RSArea; import scripts.api.BuildConfig; import scripts.api.ScriptController; import scripts.api.helpers.Timing07; import scripts.api.util.Log; import scripts.api.antiban.Reaction07; import scripts.api.frameworks.task.Task; import scripts.api.helpers.Inventory07; import scripts.api.helpers.Player07; import scripts.api.tasks.models.BankItem; import java.util.List; public class Bank implements Task { private static final String TAG = Bank.class.getName(); private int priority; private List<BankItem> items; private RSArea bankArea; private String[] names; public Bank(int priority, List<BankItem> items, RSArea bankArea) { this.priority = priority; this.items = items; this.bankArea = bankArea; this.names = items.stream().map(BankItem::getName).toArray(String[]::new); } @Override public int priority() { return priority; } @Override public boolean validate() { return Player07.isInArea(bankArea) && !Inventory07.contains( items.stream() .filter(BankItem::isRequired) .map(BankItem::getName) .toArray(String[]::new) ); } @Override public void execute() { Log.v(TAG, "execute: Starting task"); if (!Banking.isBankScreenOpen()) { openBank(); } if (Banking.isBankScreenOpen()) { deposit(); withdraw(); } } private void openBank() { Log.d(TAG, "openBank: Opening bank"); if (!Player07.isAnimating() && Banking.openBankBooth()) { Timing07.waitCondition(Banking::isBankScreenOpen, Reaction07.getInstance().getNextClickTime()); } } private void deposit() { Log.d(TAG, "deposit: Depositing items"); if (!Inventory07.containsOnly(names)) { Log.w(TAG, "deposit: Miscellaneous items found in inventory!"); Banking.depositAllExcept(names); } } private void withdraw() { Log.d(TAG, "withdraw: Withdrawing items"); if (!Inventory07.contains(names)) { items.forEach(bankItem -> { if(!Inventory.isFull() && bankItem.isRequired()) { if (bankItem.getRequiredCount() == 0 || Inventory.getCount(bankItem.getName()) < bankItem.getRequiredCount()) { if(BuildConfig.DEBUG) { Log.d(TAG, "withdraw: Withdrawing item: " + bankItem.getName()); } if (Banking.withdraw(bankItem.getRequiredCount(), bankItem.getName())) { Timing07.waitCondition( () -> Inventory.getCount(bankItem.getName()) >= bankItem.getMinCount(), Reaction07.getInstance().getNextClickOptionTime() ); } else if (Banking.isBankScreenOpen() && Banking.find(bankItem.getName()).length == 0) { Log.c(TAG, "withdraw: Missing an item in a Bank: " + bankItem.getName()); ScriptController.getInstance().setRunning(false); } } } }); } } }
  5. yutpod

    Auto Smither

    There is an issue while smithing iron knives. Sometimes anti-ban kicks in and bot makes another item instead of knives. After that script gets stuck in a banking phase forever. I think fail safe should be added to bank all items except hammer and knives.
  6. yutpod

    GE price lookup possible?

    http://api.rsbuddy.com/grandExchange?a=guidePrice&i=ID and you can get id by searching for item https://rsbuddy.com/exchange at the end of url you'll see id= so something like http://api.rsbuddy.com/grandExchange?a=guidePrice&i=7936 would get you basic info about pure ess price.
  7. As an example there are some items that do protect over a whip, a pker thinking you're a bot might drop such items and make you lose a whip on a kill.
  8. Worked fine yesterday, but now I'm getting this error, any ideas?
  9. yutpod

    Scripts not adding to my bot

    In Files -> Settings, make sure "Only load local scripts" option isn't ticked
  10. How many accounts do you have with 15+ fishing: Got ~30 with 81+, but probably will only use a couple to start off and if it goes well transfer more accounts into this. Do you mind if your accounts get banned: Somewhat yes, that's why I don't want to use all of my accounts from the start. Have you added me on skype: Yes, just send you a request Also, does this script work fine with looking glass? how many accounts do I need in one boat for best gp/hr?
  11. yutpod

    VPS Installing 32bit java rpm on 64bit CentOS

    It could only look "laggy" because you're streaming a desktop, so if your internet is not the best or server is far away from you, it might look laggy, but in reality its not laggy, I would give it a go and see if xp/hr match what you get botting on your desktop.
  12. yutpod

    VPS Installing 32bit java rpm on 64bit CentOS

    It didn't work because you have had installed jre instead of jdk.
  13. yutpod

    VPS Installing 32bit java rpm on 64bit CentOS

    Yes, it should work with centos x86. or you could just install 64bit jdk on current 64bit centos server
  14. yutpod

    VPS Installing 32bit java rpm on 64bit CentOS

    I'm pretty sure it's because you're on 64bit system trying to install 32bit jdk. It looks like you need to install 32bit compatibility libraries for centos 64bit. Try installing: ia32-libs
  15. yutpod

    VPS Installing 32bit java rpm on 64bit CentOS

    rpm -Uvh "file name"Also I think you need jdk to run tribot, but I'm not 100% sure. this is what i use to install 32bit jdk cd /opt/curl -LO -H "Cookie: oraclelicense=accept-securebackup-cookie" \http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-i586.rpmrpm -Uvh jdk-8u45-linux-i586.rpm
×