June 12, 20187 yr Do you use java reflection in your scripts? Is is worth in coding scripts? or use lots of method to convert strings from file to generate different classes? Edited June 12, 20187 yr by Pegasus
June 12, 20187 yr 34 minutes ago, Pegasus said: Do you use java reflection in your scripts? Is is worth in coding scripts? or use lots of method to convert strings from file to generate different classes? Reflection is blocked by default in OSBot scripts
June 12, 20187 yr Reflection has its uses if you're wanting to do stuff that is potentially risky (that Jagex could detect), such as force-selecting inventory items (like I did for my old Usain Bolter and Darter script when reflection worked), selecting magic spells, and if you can see how prayer works, you could even perhaps bump prayers about programatically.
June 12, 20187 yr "Convert strings from files to generate different classes", so essentially ClassReader/Loader? That's not really necessary when you could probably use serialization for whatever you are doing instead - or perhaps it can just be solved with simple file management? We would need more context on what you're trying to do.
June 12, 20187 yr 4 hours ago, Alek said: "Convert strings from files to generate different classes", so essentially ClassReader/Loader? That's not really necessary when you could probably use serialization for whatever you are doing instead - or perhaps it can just be solved with simple file management? We would need more context on what you're trying to do. Would that also work for scripts on the SDN?
June 13, 20187 yr 11 hours ago, Canidae said: Would that also work for scripts on the SDN? Serialization works for local scripts; not SDN. File management would work for both as long as you work in the OSBot data directory Edited June 13, 20187 yr by FrostBug
Create an account or sign in to comment