Change Profile Option in Onload help needed
Posted: Fri Oct 19, 2012 4:16 am
Trying to add a logout timer to my eoj script.. so i can tell it to log out after 3 hours.
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.
Error message
C:/rombot/micromacro/scripts/rom/classes/player.lua:3006: attempt to compare number with string
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