SRL Archive - Help

Trying to make script rest


illuminatiswag

2012-02-14 11:13:50

Im trying to add to this script so it can rest at bank at x amount of run left but with no success lol tryed adding flights method from his nature script but didnt work can anyone please help me

lilcmp1

2012-02-14 11:16:30

Try calling this. It looks for the color of an empty run counter.

Function EnergyChecker: Boolean;
Begin
If FindColorSpiralTolerance(X, Y, 255, 736, 104, 761, 121, 10)then
Begin
Wait(Randomrange(200, 320));
RestUntil(RandomRange(80,90));
End;
End;

illuminatiswag

2012-02-14 11:22:06

Will try now or after this damn update

illuminatiswag

2012-02-14 12:27:48

No didn't work :(

drawboy11

2012-02-14 12:44:06

From: lilcmp1
Try calling this. It looks for the color of an empty run counter.

Function EnergyChecker: Boolean;
Begin
If RunEnergy(0)then
Begin
Wait(Randomrange(200, 320));
RestUntil(RandomRange(80,90));
End;
End;


This should work, I don't have simba open, so hit CTL+Space when you type RunEnergy and it will show it, there is a built in function for this. Hope it Helps(:

x[Warrior]x3500

2012-02-14 12:45:15

helpful function:

runEnergy(30); // Toggles run if energy is greater or equal to 30 (or whatever number u choose). Results true if energy is greater or equal to 30.

RestUntil(100); //Rests until your Run energy is above 100 (or whatever number u choose). Results True if successful.

EDIT: the post above mine will be wrong because:

you need to change If RunEnergy(0)then to if(not(RunEnergy(1)))then

illuminatiswag

2012-02-14 12:47:55

From: drawboy11
This should work, I don't have simba open, so hit CTL+Space when you type RunEnergy and it will show it, there is a built in function for this. Hope it Helps(:


Where in the script should i put this though don't want it to just randomly stop in middle of nowhere lol would get killed by NPC lmao

illuminatiswag

2012-02-14 12:49:27

From: x[Warrior]x3500
helpful function:

runEnergy(30); // Toggles run if energy is greater or equal to 30 (or whatever number u choose). Results true if energy is greater or equal to 30.

RestUntil(100); //Rests until your Run energy is above 100 (or whatever number u choose). Results True if successful.

EDIT: the post above mine will be wrong because:

you need to change If RunEnergy(0)then to if(not(RunEnergy(1)))then


Where would i put this in the script if i want this to do it at the bank before opening and withdrawing more pure ess ? no scripting knowledge at all

x[Warrior]x3500

2012-02-14 12:51:51

u would put this in front of your "openbankfast" (etc) procedure is.

no scripting knowledge at all

if you have no scripting knowledge, how did u create a script?

illuminatiswag

2012-02-14 13:29:25

From: x[Warrior]x3500
u would put this in front of your "openbankfast" (etc) procedure is.

if you have no scripting knowledge, how did u create a script?


I never said i made it ?

Chris

2012-02-14 13:32:16

This is what I'm using:
   if GetMMLevels('run', s) < 20 then
begin
RestUntil(90);
end;