Making a rune buyer + jason2gs, but I seem to be having a problem with my start button?
It must be a problem with my if statement because when I comment out the if bit and just start the procedure, it actaully starts it.
Some-one tell me what im doing wrong? 
SCAR Code:
procedure BuyFireRunes;
begin
repeat
Wait(500 + Random(500));
MouseBox(85, 80, 100, 90, 2);
Wait(500 + Random(100));
ChooseOption(x, y, '10');
Wait(500 + Random(500));
MouseBox(85, 80, 100, 90, 1);
Wait(500 + Random(100));
RunesBought := RunesBought +10;
until(RunesBought = RunesToBuy) or (RunesBought > RunesToBuy) or
(InChat('out of stock.')) or
(InChat('have enough coins.'));
end;
procedure StartScript(sender: TObject);
begin
//To test if click works
Writeln('StartingScript');
if(RuneType = 'Fire')then
begin
BuyFireRunes;
end;
end;
This is a pretty big project so far and I'd really appreciate the help.