Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

  • Days Won

  • Feedback


Beg last won the day on February 16 2016

Beg had the most liked content!

Community Reputation

102 Excellent

1 Follower

About Beg

  • Rank
    Senior Botter


  • Sex

Recent Profile Visitors

2,573 profile views
  1. Hello. Some (maybe all) strings coming from tribot api treat spaces as non breaking spaces (char code 160, unicode 00A0, html  ) instead of the regular space (char code 32, unicode 0020). There are probably more, but i've noticed this situation on these methods: void tradeRequestReceived(String name) from MessageListening07 String Trading.getOpponentName() This causes problems when comparing those strings with a java generated string. It can be solved by replacing all non breaking spaces with a regular space on all strings, but It would be nice to have strings coming from tribot api in a more scripter friendly manner, in the first place.
  2. Hello. I've recently noticed a very slow execution of all methods on NPCChat class, when running a script on looking glass. I understand looking glass uses a lot more resources, but so much difference between execution times seems odd. This script requires so much npc talking that using looking glass makes it 33% less efficient. I've already fixed the problem by using my own NPCChat methods. Im just looking to know the reason why it is so much slower and if theres something to be done about it. These are the time i've gathered: With looking glass [16:36:34] Executed NPCChat.getName() in 154 ms [16:36:34] Executed NPCChat.getMessage() in 102 ms [16:36:34] Executed NPCChat.getOptions() in 116 ms [16:36:34] Executed NPCChat.getSelectOptionInterface() in 118 ms [16:36:34] Executed NPCChat.getClickContinueInterface() in 103 ms [16:36:34] Executed NPCChat.getSelectOptionInterfaces() in 125 ms Without looking glass [16:44:48] Executed NPCChat.getName() in 1 ms [16:44:48] Executed NPCChat.getMessage() in 1 ms [16:44:48] Executed NPCChat.getOptions() in 4 ms [16:44:48] Executed NPCChat.getSelectOptionInterface() in 1 ms [16:44:48] Executed NPCChat.getClickContinueInterface() in 1 ms [16:44:48] Executed NPCChat.getSelectOptionInterfaces() in 1 ms The script i've used to get this times: public class Debug extends Script { @Override public void run() { debugNPCChatMethods(); } private void debugNPCChatMethods() { long t1, t2; t1 = System.currentTimeMillis(); NPCChat.getName(); t2 = System.currentTimeMillis(); System.out.println("Executed NPCChat.getName() in " + (t2-t1) + " ms"); t1 = System.currentTimeMillis(); NPCChat.getMessage(); t2 = System.currentTimeMillis(); System.out.println("Executed NPCChat.getMessage() in " + (t2-t1) + " ms"); t1 = System.currentTimeMillis(); NPCChat.getOptions(); t2 = System.currentTimeMillis(); System.out.println("Executed NPCChat.getOptions() in " + (t2-t1) + " ms"); t1 = System.currentTimeMillis(); NPCChat.getSelectOptionInterface(); t2 = System.currentTimeMillis(); System.out.println("Executed NPCChat.getSelectOptionInterface() in " + (t2-t1) + " ms"); t1 = System.currentTimeMillis(); NPCChat.getClickContinueInterface(); t2 = System.currentTimeMillis(); System.out.println("Executed NPCChat.getClickContinueInterface() in " + (t2-t1) + " ms"); t1 = System.currentTimeMillis(); NPCChat.getSelectOptionInterfaces(); t2 = System.currentTimeMillis(); System.out.println("Executed NPCChat.getSelectOptionInterfaces() in " + (t2-t1) + " ms"); } } Using looking glass with OSBuddy.jar version 3.24.1. java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) Operating System: Ubuntu 18.04.2 LTS Kernel: Linux 5.0.0-23-generic Architecture: x86-64
  3. Hey. It does support both. I haven't used it in a long time, but i just tried it and seems to be working fine. Are you able to try it out?
  4. I've been trying to display linux notifications by executing the notify-send command. Turns out tribot security blocks those executions. Is there a way to display notifications on linux?
  5. Hi. It was supposed to use bank all button but my code had a bug, it should be fixed now. Thanks
  6. Its not a quick fix for a all in one script like this. I'd have to get ids for all supported items to get it to work based on ids and not names. I'd rather wait for a hotfix from tribot dev team.
  7. Hi. Did this start happening after tribot's last update? Banking.depositAllExcept is broken. I suspect that is the issue here.
  8. Beg

    [FREE] BEG Item Combiner

    @hi565656 Have you specified the right interface ids? You can look up interface ids on tribot client -> tools -> interface explorer
  9. Please use the proper format when using arguments. Format is available under script argument topic. Let me know of any more issues that you might have. Thanks.
  10. @Targeted Individual Updated the script to fix the logger issue. Please let me know if it ever happens again.
  11. Fixed argument line bug. It wouldn't recognize supply value. Fixed Logger timer. It was displaying an erroneous time. Added no required level check that if detected causes the current task to be aborted.
  12. But now a BooleanSupplier is a functional interface which means you can do this: Timing.waitCondition(() -> your condition, 5000); E.g. Timing.waitCondition(() -> Inventory.getCount("Monkfish") > 0, 5000);
  13. I wasn't aware that karambwan had more than 1 option when cooking it. Updated the script to fix it but I wasn't enable to check the right interface id because I don't meet the requirement to properly cook it. I suppose it is (master, child) = (270, 15). Please report if it is correctly working, thanks.
  • Create New...