SRL Archive - OSR Help

Let bot reset xp counter at the beginning?


Skillery

2013-05-07 06:17:58

Hi there, I have to manually reset the skill counter every time I use a script (I use like 4 scripts now), but then I thought it would be much handier if the bot does this the first time on startup.
So, is there a handy code to do that? I could not find it here on the web..

Skillery

Chris!

2013-05-07 06:22:46

You can try the ResetXPTotal function, here's the documentation found in gametab.simba:

(*
ResetXPTotal
~~~~~~~~~~~~

.. code-block:: pascal

function ResetXPTotal: Boolean;

Resets the XP Bar.

.. note ::

by Narcle & IceFire908

*)
function ResetXPTotal: Boolean;
var
TPA: TPointArray;
P: TPoint;
begin
TPA := TPAFromBox(IntToBox(521, 51, 546, 75));
FilterPointsPie(TPA, 0, 360, 0, 12, 534, 63);
P := TPA[Random(Length(TPA))];
Mouse(P.X, P.Y, 0, 0, mouse_right);
Result := WaitOptionMulti(['Res', 'ese', 'set'], 1000);
end;

Skillery

2013-05-07 07:04:02

Thanks , I will try this out