Code:
program monsterkiller;
{.include SRL/SRL.scar}
{.include SRL/SRL/Skill/Fighting.scar}
var
Tol, MonsterColor1, MonsterColor2, MonsterColor3 : Integer;//Integer;
MonsterName : String;
procedure Setup;
begin
MonsterColor1:=1188253;//monster color
MonsterColor2:=1188250;//monster color
MonsterColor3:=3033954;//monster color
tol:=10;//tolarence for finding monster
MonsterName:='Guard';
end;
procedure FindRandoms;
begin
FindNormalRandoms;
end;
procedure OwnMonster;
begin
wait(2000)random(200)
KAttackMonster(monsterColor1, MonsterColor2, MonsterColor3, Tol, MonsterName);//!!Not 'MonsterName' but MonsterName
end;
begin
setupsrl;
Findrandoms
repeat
ownMonster;
until false
end.
The main reason was because you put it to look for 'MonsterName', which means it tries to find that in the top left hand corner. It's Monstername. So it's just the string variable not the string. Btw, your doing good.