goider
2007-11-05 18:49:15
i was wondering if it was possible to exclude somthing from being used if i didn't want it used.
so that makes no sense, allright, IE
i have a powerchopper i made,
it's fully functioning, but i only want to chop one type of tree, 'tree' and i want it to ignore a tree from then on if it finds a yew, or even just not try to chop it, then walk 'random direction' for random time to a different area.
so currently my script looks like this.
if it doesnt make sense still (the problem is highlighted with comment text) then write and i will try to explain it differently:duh: :(
so that makes no sense, allright, IE
i have a powerchopper i made,
it's fully functioning, but i only want to chop one type of tree, 'tree' and i want it to ignore a tree from then on if it finds a yew, or even just not try to chop it, then walk 'random direction' for random time to a different area.
so currently my script looks like this.
program TrunkSmasher;
{.include SRL/SRL.scar}
/////////////////////////////////SETUP\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
const
LoadsPerPlayer=100; //How Many Loads You Want Chopped Per Player Before Switching.
TreeColor=3506803; //Color Of Tree Leaves.
AxeEquipped=true; //Is Your Axe Equipped?
WaitPerTree=8500; //How Long To Spend Smashing A Tree.
//////////////////////////////DON'T TOUCH\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
procedure SmashTrunk;
var
x, y, MyMark : integer;
begin
if not LoggedIn then Exit;
repeat
if FindObj(x, y, 'hop', TreeColor, 25) then
begin
Mouse(x, y, 1, 1, False);
if ChooseOption('ew') then
//line(s) that makes it ignore yEW and move on
if ChooseOption('ak')
//line(s) that makes it ignore oAK and move on
//line(s) that make it walk random direction for random time.
if ChooseOption('hop') then
begin
Wait(WaitPerTree);
Exit;
end;
end;
if TimeFromMark(MyMark) >(4 * 30 * 1000) then
begin
Logout;
Exit;
end;
until false
end;
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
// Players[1].Name := '';
// Players[1].Pass := '';
// Players[1].Nick := '';
// Players[1].Active := True;
// Players[2].Name := '';
// Players[2].Pass := '';
// Players[2].Nick := '';
// Players[2].Active := True;
// Players[3].Name := '';
// Players[3].Pass := '';
// Players[3].Nick := '';
// Players[3].Active := True;
// Players[4].Name := '';
// Players[4].Pass := '';
// Players[4].Nick := '';
// Players[4].Active := True;
// Players[5].Name := '';
// Players[5].Pass := '';
// Players[5].Nick := '';
// Players[5].Active := True;
CurrentPlayer := 0;
end;
begin
SetupSRL;
DeclarePlayers;
if LoggedIn then Logout;
LoginPlayer;
repeat
SmashTrunk;
if InvFull then
begin
DropToPosition(2, 28);
if AxeEquipped then DropAll;
Inc(Players[CurrentPlayer].Banked);
if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 10 then
begin
NextPlayer(True);
end;
end;
if not LoggedIn then NextPlayer(False);
until false
end.if it doesnt make sense still (the problem is highlighted with comment text) then write and i will try to explain it differently:duh: :(