SRL Archive - Reflection Help

Finding ladder and clicking it


Cstrike

2010-08-11 10:21:53

tl;dr at bottom


I've been trying to learn reflection. Thus far I can make it walk :) (which is not much of course…), and now I need to climb up and down a ladder.

I could technically go "hey guys what is the object ID of (item X)", but then I learn nothing.
I don't know if this is possible, but how can I go about finding what object ID is for my specific ladder on my own? I know there is self-debugging code out there… but all the reflection examples I've looked at have problems (like returning as -1). On top of that, I'm not sure what code I would use to find it on the main screen.
Of course I will bring in fail safes […etc…], though I'd like to make a specifically reflection based script to enhance my scripting repertoire.


TL;DR

1) How do I go about finding ladder ID's (ladder as an example, could be anything… even a door I will need) without just pestering someone? What debug code can I use?

2) What code would I use for above to hover mouse on main screen (not MM)?
Thanks

Smarter Child

2010-08-11 11:06:32

1) RsBot debug?
2)
MMouse(MSCX, MSCY, 20, 20);

That will move the mouse randomly from the center of mainscreen, and you can just make case of those[ex. case Random(5) of and then 6 different MMouse functions like that. :)

Cstrike

2010-08-11 12:00:47

From: Smarter Child
1) RsBot debug?
2)
MMouse(MSCX, MSCY, 20, 20);

That will move the mouse randomly from the center of mainscreen, and you can just make case of those[ex. case Random(5) of and then 6 different MMouse functions like that. :)


Thanks :)

Also, I've not used RSBot before. On top of it, I'm afraid of using it on my main since is it not detectable and bannable?
Or am I able to extract a p2p ladder place from one of the files?

i luffs yeww

2010-08-11 14:16:31

Obviously it's not that detectable or bannable. >_> Thousands of people use it daily. I've used it, too. You're fine.

Cstrike

2010-08-11 17:03:11

From: i luffs yeww
Obviously it's not that detectable or bannable. >_> Thousands of people use it daily. I've used it, too. You're fine.


I read that reflection reflects the hooks (mind my lack of knowledge on java), whereas RSBot modifies the client, which is detectable, and that is a bannable offense. Though if you have personal experience and never got banned (and not lying :)) then that's a bonus. How well does it run?


Sorry I'm derailing my own thread :(
Though lets say I go ahead with that, where would I get the code or hooks? From RSBot code?

i luffs yeww

2010-08-11 17:04:41

You're fine..

DeSnob

2010-08-12 07:08:17

Rsbot can be safely used if you don't abuse it. Same goes for Simba color scripts, it's just that you can run them a bit longer because well coded color scripts such as IceFire's Rc'er are nearly undetectable. :)

BobboHobbo

2010-08-12 08:57:12

From: DeSnob
Rsbot can be safely used if you don't abuse it. Same goes for Simba color scripts, it's just that you can run them a bit longer because well coded color scripts such as IceFire's Rc'er are nearly undetectable. :)


Nearly undetectable? no script is detectable (If coded correctly with SRL). The main reason why people get banned is due to reporting which causes jagex to "review" your account, which im guessing just checks your actions over time and if its repetitive you'll be banned because face it your repeating a script that does the same things each time such as moving the compass when you begin walking or finishing. My guess though. repetition = ban :). over time though. You wouldnt be banned if you macroed for lets say 1 hour (Unless you were stuck in a random or something and you were clicking the same thing continiously.. etc)

TRiLeZ

2010-08-12 10:36:25

From: cstrike
I read that reflection reflects the hooks (mind my lack of knowledge on java), whereas RSBot modifies the client, which is detectable, and that is a bannable offense. Though if you have personal experience and never got banned (and not lying :)) then that's a bonus. How well does it run?


Sorry I'm derailing my own thread :(
Though lets say I go ahead with that, where would I get the code or hooks? From RSBot code?


I'm quite sure that Jagex doesn't detect RSBot, as a bot, yet…
There's always TRiBot you could use. :p It uses reflection.

As for hooks, you don't need to get any. Reflection handles the hooks.

Cstrike

2010-08-12 12:21:08

From: TRiLeZ
As for hooks, you don't need to get any. Reflection handles the hooks.


Based on this, where could I find the ID's for certain objects? If I can find the bank booth ID of some obscure bank for example, that would help me greatly. [To everyone:] Is this possible? If so, how? Thanks :)