For a script I'm updating (DummyCurser by neG), I have this statement to check if there are enough runes. zx1, zy1, zx2, and zy2 are all declared and that part isn't the problem. The problem occurs when it tries to find this color (which never changes) and it always says it cant be found, if I take it out it works perfectly. But it just cant seem to find the color. (its the purple color in the curse spells and crumble undead)
SCAR Code:if FindColorSpiral(x,y,15533737,zx1,zy1,zx2,zy2) then
begin
case Lowercase(Spell) of
'confuse': Cast('Confuse');
'weaken': Cast('Weaken');
'curse': Cast('Curse');
'crumble undead': Cast('Crumble Undead');
else
begin
WriteLn('Didnt enter a correct spell... Logging Out.');
Logout;
wait(2000)
NextPlayer(False);
Exit;
end;
end;
end
else
begin
WriteLn('Not enough runes for cast.');
Wait(500);
WriteLn('Logging out.');
Logout;
wait(2000)
NextPlayer(False);
Exit;
end;




Reply With Quote
and I fixed my problem, for some reason if I had it in the if statement it would always be false, so I just added a boolean and it works now. Makes no sense that it wouldn't work before, but at least its working now hehe. Heres how it looks now 

