Is there a way in SRL to tell whether or not you are mining? I need something like FindFight, only for mining instead of fighting. If there is no procedure to do this, is there an easy way to make one?
Is there a way in SRL to tell whether or not you are mining? I need something like FindFight, only for mining instead of fighting. If there is no procedure to do this, is there an easy way to make one?
there isn't a way to do this with srl. sorry.
but you can look for the text in de chat box. to look if the ore is mined.
SCAR Code:function Oremined: boolean;
begin
if InvFull then Result := True;
if FindBlackChatMessage('anage') or FindBlackChatMessage('vailable') then result := True;
end;
You can use the textbox as one guide.
At least it will tell you reliably when you BEGIN mining.
If you mine the rock, it will also tell you that, so you know you have stopped.
Or you can count ores in your inventory and watch to see if that number changes.
The only real problem is when you start mining a rock, but someone else actually gets the ore, so it never gives you the 'you manage to mine some ore' message, and your inventory doesn't increase.
There are a couple of different strategies people use for that, but they are pretty complicated.
Like you could follow the ore color, and exit the wait loop when it disappears. Or you could look for movement (mining animation) over the space your character is occupying. Or you could look for the pick color in the space your character is occupying (only works if you aren't wielding it).
You could carry around a fire staff everywhere you go, and anytime the red fire orb shows up on the screen you know you're not mining. (There was a yew chopper that used that strategy).
Or you can just sit and wait for a set period of time and then just assume the ore got mined and proceed.
There are probably other strategies, but those are some off the top of my head. Definitely use the textbox as part of it, since that's really reliable and easy. And then pick something for the other situation and try it out.
Thanks for the answers. The method of just waiting a certain amount of time was what I used on my first script, a chicken autofighter, but I didn't want to do that again. I'll probably just use some combination of watching the color and waiting for the text in the chat box.
There is a failsafe way of doing this, but you have to go outside SRL.
There is a system out called KYAB, that can be found here. Using the KYAB plugin, it can find the animation your character is currently doing, thus, perfect detection for stopped mining. Make a account on the site and get started.
KYAB is not for everyone. For one thing, it has to be updated whenever RS is, so you are dependent on someone else for you ability to macro. Bast that, KYAB is a dream come true.
These are my principles. If you don't like them, well... I have others.
Since brevity is the soul of wit, I will be brief. Auto Correctly.
He can't post any KYAB scripts here though![]()
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
There are currently 1 users browsing this thread. (0 members and 1 guests)