Help! Im a total nub and I'm trying to use the CantLightCheck function for Firemaking, but I'm not sure how to set it up, or at least I've tried and it wont work
here's the function from SRL/Skills/Firemaking.scar:
and I'm trying to set it up asCode:{******************************************************************************* function CantLightCheck: Boolean; By: Dankness Description: Results True if able to light logs *******************************************************************************} function CantLightCheck: Boolean; begin Result := False; if InChatMulti('can', 'ere', 'here') then begin Wait(250 + Random(250)); Result := InChatMulti('can', 'ere', 'here'); end; end;
I want it to repeat the log burning process until CantLightCheck = false, and then I want it to terminate. If i haven't provided enough info please let me know. Be nice haha I'm new to all of this! Thanks!Code:if (CantLightCheck = true) then begin repeat LightALog; until WhenToFinish = true; end else begin Exit; end; end; end.



Reply With Quote

Just remove the "not" from there if it works the opposite way
.. And include the firemaking.scar too.



