From: Starblaster100
EDIT: No offense dude, but you have a while to climb yet ;)
none taken, i can barely remember most of the handy procedures…
new update:
as you can see, because i made my procedures carefully during the beggining, i can adapt them over and over again during the script, instead of having to make a new procedure for every person.
next day edit:
been scripting for 2 hours straight, and ive hit the half way mark in the script(the little bar for tutorial island is about half full)
note: this doesnt mean the script will be done in about the same amount of time it has taken me to get here, coz after i finish the initial run through, i have to go back with another account and start fixing all the errors… fun fun.
so far: gets up to the rats, i may need some help making a script to attack the rats if anyone is interested in helping me
ALSO: if at all possible can some friendly forum members please make new chars, and test out the script, noting where it fails(which it will inevitably)
thanks, i posted a link to this thread in general news to attract testers.
program New;
var sparkle,lulx,luly,lulbmp,mini:integer;
ggg:boolean;
textin:string;
{.include SRL/SRL.scar}
procedure lulsetup;
begin
mousespeed:= 30;
lulbmp := BitmapFromString2(False, 'a67FF878DAC5CC310E00210' +
'804C02F712802A5A2FCFF490716575B5C6233D9B01B0000B40420' +
'3D68B8D2BA3349885243224BBDED4DCE19F3C2465F6E920597997' +
'26E1ECECFD8CCA79B8E8B76BEA779A7F5BFD58E1CAE454F7C0100' +
'2');
mini := BitmapFromString2(False, 'a3201478DA6DCB310E80300C4' +
'3D12B59A5A4614C9AFAFE476A03A8626079FA830D00A60B9C3DA1' +
'A43E9682BABBE8DD9F8D943CB523B27965D7B11B62299583E1E53' +
'568CD7FECB4CAC7099EE');
ggg:=false;
textin:='tutorial';
sparkle:=15000000;
end;
procedure findguy;
var clll:integer;
heheheheh:boolean;
begin
heheheheh:=false;
repeat
findbitmapin(lulbmp,lulx,luly,15,16,500,297);
wait(25);
luly:=luly+10;
lulx:=lulx-5;
mmouse(lulx,luly,20,15);
until(IsUpTextMulti('talk', 'to', 'lk to')) or (isuptextmulti('open', 'pen', 'ope')) or (isuptextmulti('use', 'read', 'ange')) or (isuptextmulti('cli','imb','dow')) or (isuptextmulti('net', 'et', 'ne'));
getmousepos(lulx,luly);
mouse(lulx,luly,1,1,true);
repeat
wait(300);
clll:=clll+1;
if(findnpcchattext('tinue')) or (findnpcchattext('cook'))then heheheheh:=true;
until(heheheheh=true) or (clll=10);
if(heheheheh=false)
then
begin
wait(500);
findguy;
end;
end;
procedure talkguy;
begin
repeat;
if(findnpcchattext('tinue'))
then
begin
writeln('chatted to npc');
ClickNpcChatText('k here to',true);
wait(100);
mmouse(150,150,120,120);
repeat
wait(10);
until(findnpcchattext('ait')=false);
end;
until(findnpcchattext('inue')=false);
if(findnpcchattext('flashin')) and (not(findnpcchattext('shrimp')))then
begin
mouse(675,485,1,1,true);
wait(50);
if(findnpcchattext('flashin'))then
begin
mouse(640,186,1,1,true);
wait(50);
end;
if(findnpcchattext('flashin'))then
begin
mouse(577,187,1,1,true);
wait(50);
end;
if(findnpcchattext('flashin'))then
begin
mouse(609,187,1,1,true);
wait(50);
end;
if(findnpcchattext('flashin'))then
begin
mouse(679,187,1,1,true);
wait(50);
end;
end;
if(findnpcchattext('st loaf'))then mouse(741,485,1,1,true);
end;
procedure findnoarrow;
var gude:integer;
begin
gude:=397187
repeat
if(FindColorTolerance(lulx,luly,397187,30,30,512,295,15))then
begin
luly:=luly+15;
MMouse(lulx,luly,3,3);
end;
until(IsUpTextMulti('talk', 'to', 'alk'));
mouse(lulx,luly,1,1,true);
repeat
wait(200);
until(findnpcchattext('here to'));
end;
procedure miniwalk;
var fund:boolean;
begin
fund:=false;
repeat
if(findbitmapin(mini,lulx,luly,539,6,729,148))then
begin
mouse(lulx,luly+10,1,1,true);
fund:=true;
end else
wait(5);
until(fund=true);
flag;
wait(500);
end;
procedure genericclickheretocontinue;
begin
repeat
wait(100);
until(findnpcchattext('here to'));
clicknpcchattext('here to', true);
end;
procedure makefire;
var joke:integer;
begin
joke:=0;
mouse(645,185,1,1,true);
wait(10);
mouse(622,230,2,2,true);
wait(100);
if(joke=0)then
begin
mouse(661,229,2,2,true);
joke:=joke+1;
end else
mouse(577, 266,1,1,true);
repeat
wait(100);
until(findnpcchattext('gained so')) or (findnpcchattext('just lit')) or (findnpcchattext('burnt'));
wait(1000);
end;
procedure findtrees;
begin
if(FindColorspiralTolerance(lulx,luly,1581877,30,30,512,295,5))then
wait(10);
mmouse(lulx,luly,1,1);
if(isuptextmulti('chop', 'op d', 'hop')) and (not(isuptextmulti('oa', 'ak', 'oak')))then mouse(lulx,luly,1,1,true);
repeat;
wait(200);
until(findnpcchattext('here to'));
end;
procedure cookshrimp;
begin
repeat
wait(20);
until(findcolorspiraltolerance(lulx,luly,3650275,206,117,317,228,10));
wait(10);
mouse(705,229,1,1,true);
wait(50);
mouse(lulx,luly,1,1,true);
end;
function burnshrimp:boolean;
begin
wait(100);
if(findnpcchattext('burnt'))then result:=true;
result:=true;
end;
procedure findfish;
var count:integer;
begin
repeat
wait(10);
count:=count+1;
until(findcolorspiraltolerance(lulx,luly,sparkle,0,193,336,336,8)) or (count=10);
if(count=10)
then
begin
mouse(278,250,5,5,true);
flag;
wait(10);
findfish;
end else
begin
luly:=174+luly/2;
mouse(lulx,luly,1,1,true);
end;
flag;
wait(500);
end;
procedure fishh;
begin
repeat
wait(10);
until(findcolorspiraltolerance(lulx,luly,sparkle,0,193,336,336,8));
mmouse(lulx,luly,1,1);
wait(10);
if(isuptextmulti('Net', 'et f', 'fish'))then
begin
mouse(lulx,luly,1,1,true);
repeat
wait(200);
until(findnpcchattext('ease wa'));
repeat
wait(100);
until(not(findnpcchattext('should on')));
mmouse(1,1,1,1);
end else fishh;
end;
procedure walkbank;
begin
if(findcolortolerance(lulx,luly,243,567,10,631,65,15))then
begin
lulx:=lulx+5;
luly:=luly+15;
mouse(lulx,luly,1,1,true);
flag;
end;
end;
procedure dough;
begin
mouse(577,268,1,1,true);
wait(10);
mouse(621,268,1,1,true);
repeat
wait(50);
until(not(findnpcchattext('base')));
end;
procedure selectdough;
begin
mouse(664,267,1,1,true);
wait(10);
end;
procedure emo;
begin
mouse(709,480,1,1,true);
wait(50);
mouse(614,280,1,1,true);
wait(50);
end;
procedure walkup;
begin
mouse(675,483,1,1,true);
wait(10);
mouse(640,432,2,2,true);
wait(50);
mouse(641,20,2,2,true);
flag;
mouse(661,25,2,2,true);
flag;
if FindSymbol(lulx, luly, 'quest')then
begin
Mouse(lulx,luly,4,4,true);
wait(150+random(250));
Flag;
end;
end;
procedure prospect;
var clll:integer;
heheheheh:boolean;
begin
heheheheh:=false;
repeat
findbitmapin(lulbmp,lulx,luly,15,16,500,297);
wait(25);
luly:=luly+10;
mmouse(lulx,luly,15,15);
until(isuptextmulti('mi', 'min', 'ine'));
getmousepos(lulx,luly);
mouse(lulx,luly,1,1,false);
chooseoption('Prospect');
wait(3000);
end;
procedure minedd;
var clll,gr:integer;
heheheheh:boolean;
begin
heheheheh:=false;
repeat
findbitmapin(lulbmp,lulx,luly,15,16,500,297);
wait(25);
luly:=luly+10;
mmouse(lulx,luly,15,15);
gr:=getcolor(580,301);
until(IsUpTextMulti('Mi', 'Min', 'Mine')) or (isuptextmulti('Fur', 'urn', 'ace'));
getmousepos(lulx,luly);
mouse(lulx,luly,1,1,true);
repeat
wait(300);
clll:=clll+1;
if(findnpcchattext('tinue')) or (findnpcchattext('cook'))then heheheheh:=true;
until(heheheheh=true) or (clll=10);
if(gr<>getcolor(580,301))then heheheheh:=true;
if(heheheheh=false)
then
begin
wait(500);
minedd;
end;
end;
procedure selectore;
begin
mouse(645,188,1,1,true);
wait(10);
mouse(580,301,1,1,true);
wait(10);
end;
procedure smithd;
var clll,gr:integer;
heheheheh:boolean;
begin
heheheheh:=false;
repeat
findbitmapin(lulbmp,lulx,luly,15,16,500,297);
wait(25);
luly:=luly+10;
mmouse(lulx,luly,15,15);
gr:=getcolor(580,301);
until(IsUpTextMulti('An', 'vil', 'Anv'));
getmousepos(lulx,luly);
mouse(lulx,luly,1,1,true);
repeat
wait(300);
clll:=clll+1;
if(findnpcchattext('tinue')) or (findnpcchattext('cook'))then heheheheh:=true;
until(heheheheh=true) or (clll=10);
if(gr<>getcolor(580,301))then heheheheh:=true;
if(heheheheh=false)
then
begin
wait(500);
minedd;
end;
end;
procedure daga;
begin
mouse(32,69,1,1,true);
wait(2500);
end;
procedure attk;
var kl,kll,kkl:integer;
begin
findobj(lulx,luly,'ttack',5397083,15);
mouse(lulx,luly,1,1,true);
repeat
wait(500);
until(findcolortolerance(kl,kkl,65280,227,133,277,186,5));
kll:=getcolor(kl,kkl);
repeat
wait(1000);
until(getcolor(kl,kkl)<>kll);
end;
begin
lulsetup;
findguy;
talkguy;
findnoarrow;
talkguy;
findguy;
miniwalk;
findguy;
talkguy;
findguy;
genericclickheretocontinue;
makefire;
talkguy;
findguy;
talkguy;
miniwalk;
findguy;
findtrees;
talkguy;
makefire;
cookshrimp;
if(burnshrimp=true)then
begin
findfish;
fishh;
findtrees;
makefire;
cookshrimp;
end;
wait(100);
miniwalk;
findguy;
miniwalk;
findguy;
findguy;
talkguy;
dough;
selectdough;
findguy;
repeat
wait(200);
until(isuptextmulti('el','l d','one'));
talkguy;
miniwalk;
findguy;
emo;
makecompass('N');
walkup;
makecompass('s');
findguy;
wait(500);
miniwalk;
findguy;
talkguy;
makecompass('n');
findguy;
talkguy;
makecompass('s');
findguy;
wait(2500);
mouse(683,61,1,1,true);
flag;
miniwalk;
findguy;
talkguy;
miniwalk;
prospect;
miniwalk;
prospect;
miniwalk;
findguy;
talkguy;
miniwalk;
minedd;
talkguy;
miniwalk;
minedd;
talkguy;
miniwalk;
selectore;
minedd;
miniwalk;
findguy;
talkguy;
miniwalk;
selectore;
smithd;
daga;
miniwalk;
findguy;
flag;
miniwalk;
findguy;
talkguy;
mouse(604,432,1,1,true);
wait(100);
selectore;
miniwalk;
findguy;
talkguy;
selectore;
wait(10);
mouse(664,302,1,1,true);
wait(10);
mouse(542,185,1,1,true);
wait(5);
miniwalk;
findguy;
attk;
end.