Jump to content

HeyImJamie

Lifetime Sponsor
  • Posts

    1096
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by HeyImJamie

  1. If you were on a different IP to the one you use your main on, maybe? Try recovering / appealing anyway but I can't say it's likely.
  2. Probably cache the tile the trap was placed on
  3. 10/10 S2 ability. Goodluck returning a void method public boolean isQuestStarted(Quest quest) { return quest.getConfig() > 0; } public enum Quest { GOBLIN_DIPLOMACY(63); int questConfig; Quest(int questConfig) { this.questConfig = questConfig; } public int getConfig() { return questConfig; } } I'd do something like this. Store all your quests in an enum and just check the config is > 0 to check if it's started. Quests also have finished settings, so you can store those in this enum as well and add an isQuestFinished method etc. Hope this helps.
  4. Looking for thread designs for a few of my scripts. Payment is open for discussion. I'll ideally need the layout designed w/ graphics, text etc so ideally will need someone who's creative and good w/ 'marketing' / advertisement. I'm not looking for a generic large image. Can't really think of how to word this to get exactly what I want across, so please pm me or add my Discord @ HeyImLit#3244 if you have any questions. Cheers.
  5. I thought only S3's were allowed to write Slayer scripts?
  6. Depends where you are. It's only better practice when you can guarantee you're walking from one set location to another.
  7. It's been a while since I've done any scripting on this client but I'm pretty sure there's a way you can check the response. Edit: Look at the API. WebWalkEvent -> getDestination()
  8. Read the thread. Written by Patrick, maintained by Night.
  9. Google what the two terms mean, use your brain and you'll figure it out.
  10. Pls tell me there's no getBot().getPassword() method
  11. I personally split my scripts into a mix of a 'Task' / 'State' based framework. Add my Discord @ HeyImLit#3244 and I'll give you some code snippets.
  12. Go learn a little Java and then come back. Save yourself a world of trouble
  13. If anyone leaks these to you they're dumb as fuck.
  14. Well done Next step I'd say would be to re-think your logic a little bit. For example, your bank method could be re-ordered so it checks that the bank contains the ore prior to withdrawing, rather than attempting to withdraw and then stopping script.
  15. I don't think spoonfeeding you here is going to help you much. The NPE directs you to where the error is (line 33 of your script). You're not null checking something correctly on that line, so go figure it out Based on looking at your code though there's a few areas where you haven't bothered to null check, so get them fixed up too and you'll be good to go!
  16. https://github.com/HeyImJamie/JProgressiveWoodcutter/tree/master/src/scripts/JProgressiveWoodcutter Take a look at this. It's for a separate client, but should give you a right idea. The enum and best axe method can be found in the data folder.
  17. Need a little more context. We can't magic up reasons why your program doesn't work.
  18. I personally use a mix between a Task and a State 'framework' For example, I'll have a Bank Task which contains code for banking. And in that class will be a switch statement that chances based on certain conditions, for example: switch (getTaskState()) { case WALK_TO_BANK: // walk to bank etc break; case OPEN_BANK: // open bank break; // etc } private enum TaskState { WALK_TO_BANK, OPEN_BANK, BANK_ETC } private TaskState getTaskState() { if (!Bank.contains(Player)) { return TaskState.WALK_TO_BANK; // etc }
  19. I can write you one privately that afks if you want. HeyImLit#3244 is Discord.
  20. Awesome! Now I'd suggest you start looking at other things, such as better checks on the booleans available to you, and maybe neatening it even more? For example: You can use && to check for multiple conditions in one line!
×
×
  • Create New...