SRL Archive - OSR Help

[RuneScape][SIMBA][SRL] Teleporting with Games Necklace


Zorgatone

2013-01-31 10:33:21

Hello there,

I was having problems clicking the "2. Barbarian Outpost" Option after rubbing the Games Necklace with my simba script.
In fact when the pop up windows opens in the RuneScape Main Screen (MSx1, MSy1, MSx2, MSy2): http://img543.imageshack.us/img543/9932/ocr.png

I've tried both
FindTextTpaEx(16777215, 11, MSx1, MSy1, MSx2, MSy2, X, Y, 'Barbarian Outpost', UpChars, Nothing);
and
FindTextTpaEx(16777215, 11, MSx1, MSy1, MSx2, MSy2, X, Y, '2. Barbarian Outpost', UpChars, Nothing);
before clicking with Mouse_Left at(X, Y) but it doesn't find the text at all..

What am I doing wrong? How can I fix that?

The full script is at: http://pastebin.com/DzTcMGiP

Thanks in advance for the help :)
Zorgatone.

Zorgatone

2013-01-31 10:41:52

I realized I can use
SendKeys('2', 50, 25);
but I'm Wondering how to make the
FindTextTpaEx()
function working… if someones know it will be very helpful for me since I need to use that function for other purpouses too.

One more question for all of you: How can I be sure about the font, and what are the differences about those? Where can I find all the font types available and how to actually find the correct one to use? Thanks guys!

DannyRS

2013-01-31 10:41:55

Just click somewhere inside the box?

MMouse(RandomRange(GreenBoxX1,GreenBoxX2),RandomRange(GreenBoxY1,GreenBoxY2),0,0);
ClickMouse2(mouse_left); - I think thats it?

If the Font used here is not in simbas font's text will not work, and you need to define a smaller area for it to produce a reliable result

Zorgatone

2013-01-31 10:53:42

From: DannyRS
Just click somewhere inside the box?

MMouse(RandomRange(GreenBoxX1,GreenBoxX2),RandomRange(GreenBoxY1,GreenBoxY2),0,0);
ClickMouse2(mouse_left); - I think thats it?

If the Font used here is not in simbas font's text will not work, and you need to define a smaller area for it to produce a reliable result



Thank you.. I was thinking about that.. But when I pick the (X, Y) Coordinates using the SMART client with the Color Picker, the Y coordinate is shifted of some pixels and it's not accurate… I will try to do that too, because I'm learning Simba and I've made just a couple complete scripts for now.

I think I picked the correct font because I've tried to open the fonts in the C:/Simba directory to compare with the Screenshot I've posted above.. I'm just wondering why FindText and also ClickText don't work.

Is there a way to search for the coordinates of a green box like that?

Thanks again

DannyRS

2013-01-31 11:08:48

From: Zorgatone
Thank you.. I was thinking about that.. But when I pick the (X, Y) Coordinates using the SMART client with the Color Picker, the Y coordinate is shifted of some pixels and it's not accurate… I will try to do that too, because I'm learning Simba and I've made just a couple complete scripts for now.

I think I picked the correct font because I've tried to open the fonts in the C:/Simba directory to compare with the Screenshot I've posted above.. I'm just wondering why FindText and also ClickText don't work.

Is there a way to search for the coordinates of a green box like that?

Thanks again


You need to drag the green target on simba's toolbar onto smart, then subtract 50 from the Y values, the NavBar issue :p

There's ways to get the box, but I dont think you would understand the ways yet :p, Your overcomplicating the tast using text I think, just click the box or press a key ;)

You can equip the Games necklace then right click it in equipment tab, and use the choseoption include, that's how I normally do it :p

Zorgatone

2013-01-31 11:13:49

From: DannyRS
You need to drag the green target on simba's toolbar onto smart, then subtract 50 from the Y values, the NavBar issue :p

There's ways to get the box, but I dont think you would understand the ways yet :p, Your overcomplicating the tast using text I think, just click the box or press a key ;)


I'm using the sendKey now.. I was just curious to learn how to find/click a text on Simba and yes: I've targeted the SMART window with that green target, I know it (I'm not that noob) :P

DannyRS

2013-01-31 11:23:54

From: Zorgatone
I'm using the sendKey now.. I was just curious to learn how to find/click a text on Simba and yes: I've targeted the SMART window with that green target, I know it (I'm not that noob) :P


GetUpTextAtEx

Is the prefered function for text I believe, but you would need to have something like, If getuptextatex(position color and stuff); = 'text' Then click somewhere

Sjoe

2013-01-31 11:48:22

What about making a bitmap of the text?

Zorgatone

2013-01-31 11:52:08

From: Sjoekeloe
What about making a bitmap of the text?


I did that too and it worked.