How can I make the player rest?
I can check if they are resting with this (API):
Simba Code:function TRSMinimap.isResting(): boolean;
Is there something like this code below?Simba Code:TRSMinimap.rest();
How can I make the player rest?
I can check if they are resting with this (API):
Simba Code:function TRSMinimap.isResting(): boolean;
Is there something like this code below?Simba Code:TRSMinimap.rest();
u have to create a variable of that type 1st:
object-oriented programmingSimba Code:var
minimap: TRSMinimap;
begin
minimap.rest();
end;
Because rest isn't currently a function in SRL6. There should actually be a TRSMinimap.rest but it was never written. You could just paste this into your script:
Simba Code:procedure TRSMinimap.rest();
var
p: TPoint;
begin
p := self.button[MM_BUTTON_RUN].center;
if (not self.isResting()) then
begin
mouseCircle(p.x, p.y, self.button[MM_BUTTON_RUN].radius, MOUSE_RIGHT);
chooseOption.select(['Rest']);
print('minimap.rest(): Enabled rest', TDebug.SUB);
end;
end;
and then you can go:
Simba Code:minimap.rest()
There are currently 1 users browsing this thread. (0 members and 1 guests)