SRL Archive - Reflection Help

Help w/ Interfaces


Cstrike

2010-10-09 13:42:55

I go on IRC so if anyone wants to find me [hopefully not AFK] you can do so there… or post a quickie here so others than I can understand ;)
BTW I will be adding what I learn to my tutorial in the other thread.
Also someone is currently trying to assist me (though our times of meeting each other keep getting screwed up, mainly my fault), though any input in this thread would be appreciated.

I understand that interfaces are [something here] that returns an ID number. Like the bank seems to be something like 621. I don't know what a child interface is. I don't know what to do with interfaces. I don't know how to do interface option –> mouse for example.

If someone can write a quick example even (remember I know code pretty solid, you don't need to write a huge essay for me, succinct is key) on these subjects:
  • What is an interface?
  • What is a child interface?
  • How do you get child interface numbers?
  • What can I do with interfaces?
  • How can I move the mouse to certain interface options or locations?

That'd be a good start :)

Shuttleu

2010-10-09 13:50:07

What is an interface? - Something that is on the screen (bank screen, msg box, friend list, trade screen etc.)
What is a child interface? - something on the interface (on the bank screen there are tabs, the items, borders, close button etc.)
How do you get child interface numbers? - i use RSBot
What can I do with interfaces? - you can detect if the correct screen is up and you can get information from it - (for the trading screen you can get who you are trading with, what you will recieve, what the buttons say, how many slots free you or the other person has, what your/their trade limit is etc.)
How can I move the mouse to certain interface options or locations? - im not too sure if you can

~shut

Cstrike

2010-10-09 13:58:37

Thank you :)
BTW can you use it for the chat box at the bottom to see what options there are (Like "Click to continue") when interacting with something like an NPC?

Shuttleu

2010-10-09 13:58:59

From: cstrike
Thank you :)
BTW can you use it for the chat box at the bottom to see what options there are (Like "Click to continue")?


yes

~shut