I've been having trouble getting logout; to work.
Example:
The logout does nothing. I've put test text before it like writeln ('1')... and '2'.//{.Include SRL\SRL\Misc\Smart.Scar}
{.Include SRL\SRL.Scar}
{.include srl/srl/skill/magic.scar}
// Load DTMs and stuff here + free DTMs
procedure MyScriptActionHere;
begin
if not LoggedIn then exit;
if FindDTM(ASD, x, y, 545, 208, 718, 429) then
begin
writeln ('You lack what you need to do xyz');
logout; // THIS DOESNT WORK
end;
if FindDTM(ASD2, x, y, 545, 208, 718, 429) then
begin
writeln ('Found ');
end;
end;
begin
SetUpSRL;
LoadDTMs;
MyScriptActionHere;
FreeDTMs;
end.
1 and 2 will be output on the scar module but no logout occurs. What am I doing wrong, or is it out of date?
tl;dr: I've debugged it and it goes over the logout; code but doesn't trigger it