SRL Archive - OSR Help

Need some (mostlikely)easy help.


Runescape Pro

2010-11-06 03:40:56

Hey! I'm trying to make an assistance script that will turn on prayers and other things. I'm going to set a constant of a key that will ultimately turn on the prayer. So I need help on how to store the box for the prayer(x1, y1, x2, y2).
I set a variable named PI1Box which will activate the Protect Item PRAYER when the user presses the specified key. I just need to know what I would set the variable type to.

Like:
var
PI1Box: "Variable type here. Tell me what it is please.";

Or should I just set the boxes as constants like this:
const
PI1Box = (000, 000, 000, 000);

Last question: If I were to set the boxes as constants, Would I then be able to use mousebox like this(?):
if BlahBlahBlah then
begin
MouseBox(PI1Box, 1);
end;

Sandstorm

2010-11-06 05:34:28

TBox;

Edit: At least, TBox in scar.

program New;
var
blargh : tbox;
begin
blargh.x1 := 50;
blargh.y1 := 52;
blargh.x2 := 52;
blargh.y2 := 54;
Writeln(inttostr(blargh.x1))
end.

Runescape Pro

2010-11-06 05:59:15

Thanks. Yea, I'm pretty sure it works in simba because it's compiling.

Runescape Pro

2010-11-06 18:59:35

Double post(I figured it would be better than a new thread): What would I set the variable type to if I wanted the variable to have an x and a y value?

i luffs yeww

2010-11-06 19:48:30

TPoint.

Runescape Pro

2010-11-07 08:56:59

Yea, thanks. Literally half an hour after I posted it I remembered… It's been a while.