SRL Archive - Jr. Member General Help and Discussion

Hello Guys, BACK and in ACTION, but need HELP!


CRASH_OVERRIDE

2014-06-23 03:51:28

Hello Guys,

I know it has been a while since i have been around, i have been pretty busy running game servers, along with work and spending weekends working on re-wiring my house with data cable has kind of stolen my online activity.

Anyways long story short, i am back, i am ready to start making some more scripts, finally up to RS3 as well i noticed :).

I have successfully installed newest version of Simba, and have updated everything, i can get other peoples scripts to run and what not. But since the scripting is now lape and all i was wondering if you guys could give some advice or point me in the right direction with some questions i have, here is one i am stuck on, theirs probably a simple solution but i can 110% confirm that "depositBox" does NOT work, and since other scripts have worked fine, and seeing as i am positive i have set all the RS3 settings right and every part of the script soo far works i can only call this as the fault.

1. How can i make a function that detects when a screen is up, for example the deposit box screen, i have a script that i am working on that seems to work really well, until i got to the point where i cannot actually detect the "depositBox" screen at all, I'm not sure exactly why, however i have tried a few different methods to detect it, such as DTM, can anyone think of a way to detect when the screen is up which would be reasonably quick, not too CPU hungry?

I was thinking about maybe using a bitmap converted to a string but this is going to take up space in the script and make it pages longer than needs to be, does anyone have any ideas and examples they can provide at all?

Frement

2014-06-23 03:54:07

There is the orange text that says "Deposit Box" or whatever, take the coordinates (box) of that, and use ColorCount, lets say it results in something like 230, then just make a function that gets the count, and checks if its over 200, if it is, then you have the screen open.

The Mayor

2014-06-23 06:43:42

From: CRASH_OVERRIDE
i can 110% confirm that "depositBox" does NOT work


Looks like the x coordinates of the text changed.

Change like 139 of depositbox.simba from

if (getColor(self.x1 +62, self.y1 +19) = TEXT_COLOR) then

to

if (getColor(self.x1 +60, self.y1 +19) = TEXT_COLOR) then

@Olly Can you update this in the latest SRL6? Or have you changed all static interfaces?

samerdl

2014-06-24 06:31:14

Welcome back dude!