SRL Archive - Reflection Help

Checking if an interface is up?


Sandstorm

2009-01-15 18:39:15

I know there's a way to do it, just not sure how.

Three areas I want to use it as:

A. The first section of a FRIENDLY duel arena duel.
B. The second section of a FRIENDLY duel arena duel.
C. The Sawmill Operators interface.

If there's a way to do this easily, let me know :).

~Sandstorm

mormonman

2009-01-15 19:50:16

try using the rsbot debug thingy…

Sandstorm

2009-01-15 20:06:13

/me coughs.

What?

~Sandstorm

mormonman

2009-01-15 20:07:59

you don't know about that?… well if you pm me the accounts that are by those places i will try to find the id's for those interfaces… of course if you don't trust me then try to figure out about rsbot's debugging

Sandstorm

2009-01-15 20:14:47

I know about rsbots debugging, I just didn't understand what you meant ^.^. Nor do I know how to find the interface ids :/.

Sorry.

~Sandstorm

mormonman

2009-01-15 20:23:23

change this file to .java then compile it in rsbot and run it…

lordsaturn

2009-01-15 21:43:12

If you want to verify that an interface exists, use the ValidInterface function. But if you're trying to find interface information like the parent and child, then you definitely want to use the Interface Explorer in RSBot.

Narcle

2009-01-15 21:47:51

There's a ezier way that's not reflection imo. FindTextTPA

mormonman

2009-01-15 21:50:45

he is going to use reflection… i helped him out(and learned some stuff myself)

Sandstorm

2009-01-15 21:57:09

Ok, got it working, SLIGHTLY.

Last question to fix the bugs:

How do I find the Child Interface ID?

@Narcle - I'm using this because I have a mix of color and reflection, but my script registers it's outside and finishes before the color area can catch up, so I want to make it all reflection so it works.

~Sandstorm

mormonman

2009-01-15 21:58:16

it should be the number that the text(that you used) was on…

Sandstorm

2009-01-15 21:59:05

I don't understand :/. Can you explain please?

~Sandstorm

mormonman

2009-01-15 22:05:15

when you open up the index folders, there are a bunch of "file" icons instead of folder ones, they each have their own number, and the one that has the text that you are using is the number you use.

Sandstorm

2009-01-15 22:06:00

Mine are blank :/.

~Sandstorm

mormonman

2009-01-15 22:14:22

let me try to find it…
ok… for the accept fight(second screen)
parent index 279
child index 12
text ACCEPT

Sandstorm

2009-01-15 22:46:01

Ok, so I modified the R_BankScreen function to use what you gave me, and as soon as the screen appeared, SCAR and SMART closed on me :/.

~Sandstorm

mormonman

2009-01-15 22:57:13

dope… looks like you will need more experience help than i can give… :(