SRL Archive - RS3 Script Requests

Simpl Script?


Zackeri

2012-06-27 20:13:17

Can someon make me a script tha turns on soulsplit when at a certain hp level? and have it shut it off at max hp?

CephaXz

2012-06-27 20:17:30

if HPPercent < HP then
begin
TurnOnSoulSplit;
end;

While HPPercent < 99 do wait(1000);

TurnOffSoulSplit;

:DDDD

Runaway

2012-06-27 20:28:38

building on what CephaXz has mentioned:


procedure HandleSS(Percent: Integer);
var
Box: TBox;
begin
if (HPPercent <= Percent) then
begin
Box := IntToBox({x1}, {y1}, {x2}, {y2});
MouseTBox(Box, mouse_left);
while (HPPercent < 95) do
Wait(500);
MouseTBox(Box, mouse_left);
end;
end;

Just set the x1, y1, x2 and y2 to the box coordinates of the quick-prayer icon (set your SS to quick-prayer) and call:


HandleSS(50);

Whenever you want to check your HPPercent and turn on SS if it's lower than the specified percent (50% in this case).

Zackeri

2012-06-27 20:31:36

thanks guys!
so helpful!

wait, how do io the box thing fo the quick prayers?

Runaway

2012-06-27 20:36:31

From: Zackeri
thanks guys!
so helpful!

wait, how do io the box thing fo the quick prayers?


I edited the first post so make sure you take a look at it again.

To make the box, you should to set the client to rs and then use the color picker tool to find the top-left and bottom-right corners of the box you want to click in to activate your quick prayers. So if this is the area:


You should make the box about this size:


So that every point in the box is going to activate the button when you click it.

Zackeri

2012-06-27 20:47:05

From: Runaway
I edited the first post so make sure you take a look at it again.

To make the box, you should to set the client to rs and then use the color picker tool to find the top-left and bottom-right corners of the box you want to click in to activate your quick prayers. So if this is the area:


You should make the box about this size:


So that every point in the box is going to activate the button when you click it.


ok, so just run it with regular rs client? then select the box? Will i eventually be able to use it with smart if i do:
Program ArmouredZombies;
{$Define Smart}
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}

Procedure DeclarePlayers;

it also says :
[Error] (21:29): Identifier expected at line 20
Compiling failed.

which i where i have:
procedure HandleSS(50);

Runaway

2012-06-27 20:54:54

Look at my first post to see how I've used it. Also, you can drag the crosshair to the smart client, I've only suggested this because the coordinates chosen by the color-picker will be those of whatever client you currently have selected.

Zackeri

2012-06-27 21:02:35

Sorry if i am a hastle :/

but.. I ran it again I got syntax error:

Box := IntToBox({715}, {60}, {731}, {79});

on that line, those were the x and y coordinates of box

CephaXz

2012-06-27 21:24:25

Ahahahaha!! I like how you follow what RunAway posted :D
You need to remove the { and }

Box := IntToBox(715, 60, 731, 79);