It will change the profile option but then it errors. My first time trying to add profile changes to my onlaod so dont know if im doing it right.
Code: Select all
<onload>
changeProfileOption("LOGOUT_TIME" , "182");
YourTargetScore = 6000
function waitForEventStart()
repeat
yrest(1000) -- check every second
local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
if Count == 2 and YourTargetScore > ScorePE then break end
until false
end
function isEventFinished()
local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
if Count ~= 2 or ScorePE >= YourTargetScore then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
end
end
</onload>
C:/rombot/micromacro/scripts/rom/classes/player.lua:3006: attempt to compare number with string