well i need some help for my auto rester
im not new here,ive been here in the ancient website,
well i think it is it,
i want to know what to use to make the script recognise when there is 0 endurance left
well i need some help for my auto rester
im not new here,ive been here in the ancient website,
well i think it is it,
i want to know what to use to make the script recognise when there is 0 endurance left
im not for sure, but i think theres an include to find out how much you have, like getrunpercentage.
i cant look atm, sorry =[
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
Well,
SCAR Code:function NoEnergy : boolean;
var
s : string;
begin
result := GetMMLevels('run', s) = 0;
end;
oh damn thanks kyle
always there to help =P
ill need more help dont worry
Function GetMMLevels(LevelType : String;var ColorSign : String): integer;
For LevelType, use 'run' or 'energy' (case doesn't matter).
For ColorSign, you need a string variable - it doesn't need anything assigned to it as the function assigns red, orange, yellow or green. It then returns the percentage, so if it returns 0, then that would mean that endurance/energy is at 0. You may want it to be a bit less specific than that though - maybe under 5% - just to make sure you don't miss it
When done, it should look something like
strVar being a variable declared as string - name doesn't matterSCAR Code:if GetMMLevels('run', strVar) = 0 then
// Start resting here
edit: My want for quality posts seems to have caused my downfall, oh no!
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
uhhh
That..?SCAR Code:{*******************************************************************************
function RunEnergy(Min: Integer): Boolean;
By: lordsaturn
Description: Toggles run if energy is greater or equal to MinEnergy. Results
true if energy is greater or equal to minimum.
*******************************************************************************}
function RunEnergy(Min: Integer): Boolean;
var
t: String;
begin
Result := (GetMMLevels('run', t) >= Min);
if (Result) then SetRun(True);
end;
Would be used like:
SCAR Code:if RunEnergy > 15 then
SetRun(True);
That checks to see if you have more than 15% Run Energy, and if so, turn's on running.
I believe that's what your looking for.
You can find that along with all the other SRL includes if you just go to(on XP) My Computer --> Local Disk [C:]--> ProgramFiles --> Scar3.20 --> Includes --> SRL --> SRL and there you have it![]()
Last edited by NCDS; 07-16-2009 at 06:35 AM.
Err, I've already solved it..
He wants to rest anyways.
There are currently 1 users browsing this thread. (0 members and 1 guests)