Alek
Ex-Staff-
Posts
7878 -
Joined
-
Last visited
-
Days Won
202 -
Feedback
100%
Everything posted by Alek
-
Classic example of how new scripters that concentrate more on antiban instead of learning how to write good code.
-
Optional<RS2Object> optional = getObjects().getAll().stream().filter(n -> n.getName().equals("Coffin")).findFirst(); if(optional.isPresent()) { //do things } This is the more "proper" way, however your solution would work. The only static ids which are normally accepted is item ids and config ids. Although config ids have changed in the past they are considered very stable. Definitely replace entity ids with other identifiers, the entity hover debug tool should give you some ideas. As for using configs for checking if a quest is complete or not, that's definitely fine because you know the exact values for your individual quests. You said specifically you are new to Java coding, are you familiar with other languages?
-
It sounds like you're implying that using text color means that it's buggy. Also part a and b are not completely valid arguments, the Quest API caches one time for initial values - then it's stored in memory (and called just as fast thereafter). The benefit to the way I set it up is that you don't need the configs and their values for hundred(s?) of quests, which would actually make the API a lot more prone to breaking than the color check. Just some things I noticed: The code in red is duplicate code, some of which is pretty expensive. Also: I'm very certain this script will break in 2 days because you're using a ton of static ids. Also your streams should really be optionals, using the orElse(null) kind of defeats the purpose. It's not bad but with some minor changes you can make a really big improvement.
-
Correct - just as a reminder carefully go over the updated script rules.
-
Yes, I said directly in the guide:
-
You have been very rude because you keep using my name and I don't process them. A more appropriate question would have been "how long does it take to process a git request".
-
The client will only display that error on a new bot startup, before any scripts are allowed to load, and only if SocketException is thrown.
-
It's not a static web walker like the other bots, it loads all the map information and generates the routes dynamically. Some obstacles are automatically handled, others we write manual links for.
-
Your understanding of Entity is not correct. An entity is not a representation, it's a reference to the generic object in game. This means when the entity is destroyed, so is the reference. When a new entity is created, so is a new reference. This is not so readily apparent because in Java everything is a value, and there is no way to represent a reference. Also an Entity is an interface between all the entities, ensure you arent object slicing if you are storing the object as an entity versus NPC, RS2Object, etc. I italicized some key words that you can Google if you need a further explanation.
-
Changelog: -All home teleports are supported in Magic API -Reverted LUMBRIDGE_HOME_TELEPORT spell -ARCEUUS_HOME_TELEPORT pending change to HOME_TELEPORT -Added 3 new prayer spells to Prayer API Thanks to: @Chris and @Fruity
-
You should probably hide the ip since there are 11 year olds on this website. Also you didn't really give any information.
-
C# Sorting a list by amount of occurring letters in a string
Alek replied to Tom's topic in Software Development
They are both incredibly high level languages, not sure why it would make any difference. O(n) would be simplest, just putting the string to a char array then adding from each occurrence in the Dictionary (map?). I'm sure there is a BST way which is O(n log n). -
You should still have access to the script. If you no longer have access please message me or Maldesto.
-
All true statements, if you really need money you're better off getting a minimum wage job. If you know programming very well, then you can save on some costs. If you don't know any programming, you're very likely to lose out.
-
If you are using a 4k monitor, then don't.
-
This file has existed for many years, if it was used for bans before then its not used anymore.
-
Changelog: -Improved bit logic behind Bank methods withdraw/swap modes -Removed index identifier from Spells -Updated Magic API, not reliant on static ids --Zach patched getSpellName() hook
-
Not compatible with Java 9.
-
Is it spamming null pointer a lot? If so you have to stop the script instantly and scroll all the way up to the original stack trace, which is what I suspect is happening.
-
Please don't troll here, we have a SPAM section for troll posts. Not sure how that solves his problem. Conditional sleeping is working on other scripts, so it must be something wrong. @HunterRS Post the stack trace/error
-
SafespotBot - Slightly adjusted version of Alek's Macro Killer
Alek replied to Megagozer's topic in Combat & Prayer
It's open source, not sure why you would decompile it lol. Thanks at OP for credits.- 23 replies
-
- safespotbot
- safespotting
-
(and 6 more)
Tagged with: