hello i am working on a simple power cutter and i want to know how do i make it so that it logs out after X number of loads. now to do this i would have to make a const and have the user add how many loads but then how would i make a procedure/function to tell how many loads it has done then to logout.
Note: i have only used const not vars.
thanks in advanced here is my script.
SCAR Code:
{.Script Info:
# ScriptName = TREEKILLER V1.4
# Author = havoc928
# Description = Chops trees until full inventory then drops
# Version = v1.4
# Date =
# Comments = Start anywhere where there are trees, with an axe weilded
# Autocolor = no
# Release Comments
// version 1.0 = very simple woodcutter\\
// version 1.2 = added log droping\\
program simplewc;
{.include SRL/SRL.scar}
{.include SRL\SRL\skill\WoodCutting.scar}
// THE SETUP\\
const tree=472109; // SET THE TREE COLOR\\
// END SETUP\\
procedure treekiller;
begin
if (findcolortolerance(x,y,tree,3,3,245, 99,5))then //PUT IN LAST 2 CORDINATES FROM THE COLOR PICKER\\
begin
writeln('FOUND COLOR');
end;
// DO NOT TOUCH BELOW\\
mouse(x,y,0,0,true)
wait(5000+random(5000))
end;
procedure drop;
begin
DropAll;
end;
begin
writeln('CREDIT GOES TO ME HAVOC928 ...FEEL FREE TO DISTRIBUTE')
repeat
repeat
treekiller;
until(InvCount = 28);
drop;
until(false)
end.