SRL Archive - OSR Help

Timing


Bobzilla69

2010-11-30 11:35:51

Hi,

i am trying to make a script change characters every x amount of minutes to do this i though that
if (TimeFromMark(Time)>=(Players[CurrentPlayer].Integers[2]*60000)) then 
would be good

Time will be started when player is logged in and Integers[2] will be how many minutes to run for.

is this correct or have i messed it up?

as my script is running for longer than its suppose to and not switching (according to TimeRunning in SRLProgressReport)

HyperSecret

2010-11-30 11:48:00

You are doing 'MarkTime(Time)', right? And have it in the correct spot in your loop, so that is doesn't get reset during every iteration of the loop…

I don't see anything wrong with it.

Bobzilla69

2010-11-30 11:52:53

yes i do, but it seems to take longer to increase than TimeRunning in SRLProgressReport, so in my report it will say the scripts been running for 15 minutes but its suppose to change every 5 minutes

edit: script here