Jump to content

Viston

Trade With Caution
  • Posts

    620
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Viston

  1. Want to get rid of some bucks quickly.
  2. Meh, 10m? Maybe 1-2m extra for 99
  3. True that, I've made multiple scripts by using onLoop, by seperating the functions into subclasses, but felt like somewhat Tasks were easier to maintain. However, I'll give it a try for my next project, and see how it goes, wouldn't hurt I guess
  4. Fixed Apparently I was using the wrong widget
  5. I'm trying to get the integer value of a widget. Do I convert string to integer? Or how should I approach this? Do I use the RootID to check whether it contains the number I need? This is the widget
  6. I feel like onLoop on bigger scripts is not my thing. I can't stand looking at bunch of code glued together under 1 loop I'll end up with 3k lines of coding in one class
  7. But but but... Statics are love men
  8. GTA is cancer on PC. Every session there is a modder, you might find me in one of them fucking with people
  9. Lmao, fixed it. One of my other Tasks were fucking with it apparently lol. I had a task that walks to the nmz area in case i'm not there. It was getting validated, which I've fixed now. Thank you for your effort, it's appreciated! You always there helping out It's always these small things that fucks with the whole script
  10. Same problem. However, when I removed inDreamWidget.isVisible(); It doesn't Paint the status right when stopping the script. So the script I had above should be working, why else would it be able to validate the Task right when I stop the script? Isn't that weird?
  11. I've been having some trouble with widgets lately, can't seem to make it detect whether a widget is visible or not properly. So I currently have this Task assigned. It can't seem to be able to validate when the widget appears. I noticed it detects the widget right when I stop the script, and if I restart the script without refreshing the script selection window, it detects the widget, but not able to execute the method. Code: /** * Created by Viston on 11/07/2017. */ public class InsideDreamWalkToMid extends Task { public InsideDreamWalkToMid(MethodProvider s) { super(s); } @Override public boolean canProcess() { RS2Widget inDreamWidget; inDreamWidget = s.getWidgets().singleFilter(s.getWidgets().getAll(), widget -> widget != null && widget.getMessage().contains("Points:")); return inDreamWidget != null && inDreamWidget.isVisible(); } @Override public void process() throws InterruptedException { Paint.status = "Inside..."; Vars.middleTile = s.myPosition().translate(10, 15); s.getWalking().walk(Vars.middleTile)) } } -------------------------------------------------------------------------------------------------------------------------------------------------------------- A gif of my explanation above > http://i.imgur.com/NXu1zM2.gifv As you can see, if I refresh before starting the script, it's not able to detect the widget. However, just when I stop the script, the Paint.status = "Inside..."; appears, which means it successfully validated the task. If I start the script without refreshing, it's able to detect the widget, yet not able to execute the method.
  12. Ah, like this? Position pos = s.myPosition().translate(5, 6);
  13. I'm basically trying to get a tile from my current position. E.g 10 Tiles x and 15 tiles y from my current position. I was thinking something like this perhaps? Position pos = s.myPosition().getLocalX()
  14. Ask your momma, she knows the answer men
  15. xp from 45 to 46 defence is more than 300 xp. Hence why it's not ruined
  16. Then the script will fuck up I guess. But shouldn't be a worry, since you'll start the script with an axe anyways
  17. It does, he is specifically banking Yew Logs, so the axes won't be banked.
  18. I suggest using walkPath, since you have a static area. Take a loot at it. Other than that, gz
  19. 1. You could be flagged. 2. Don't use a public tutorial bot to do tutorial island for you, the banrate is high.
×
×
  • Create New...