solemn wishes
2006-04-14 12:07:53
hey,
well my latest script involves woodcutting and it was kinda getting on my nerves that the user is restricted to having an axe in the first inventory slot for woodcutting so i added to it.
well my latest script involves woodcutting and it was kinda getting on my nerves that the user is restricted to having an axe in the first inventory slot for woodcutting so i added to it.
Function FindAxeHeadColor:Boolean;
begin
GameTab(4);
wait(100 + random(200));
Mmouse(587, 219, 0, 0)
wait(500 + random(500));
if(Isuptext('Wield'))then
begin
Head := GetColor(590, 220);
Head2 := GetColor(587, 219);
Head3 := GetColor(588, 218);
writeln('Axe head colors: ' +inttostr(Head)+ ' '+inttostr(Head2)+ ' ' +inttostr(Head3));
Result:= true;
end else
begin
gametab(5);
Mmouse(599, 296, 0, 0)
wait(500)
if(Isuptext('axe'))then
begin
getmousepos(x,y)
Head := GetColor(x, y);
Head2 := GetColor(x, y+1);
Head3 := GetColor(x-1,y-1);
writeln('Axe head colors: ' +inttostr(Head)+ ' '+inttostr(Head2)+ ' ' +inttostr(Head3));
Result:= true;
end;
if not result then
begin
writeln('Head not found')
Terminatescript;
end;
end;
end;