Q func time of day

Play Now

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
can some1 correct this to make it work please.

thanks in advance


[on1pm]
#ACT
RUNSOUND 171

[on2pm]
#ACT
RUNSOUND 172

[on3pm]
#ACT
RUNSOUND 173


ect ect
 

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
im going to impliment the churchbells so like 2 rings for 2pm 3 rings for 3 pm ect

or i mite just ad a wav sound saying "the time now is now 2pm"


gona have to wait until 19:00 till i can test it



would it be

[@ONHOUR]
#IF
HOUR = 13
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 14
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 15
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 16
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 17
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 18
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 19
#ACT
RUNSOUND 171

[@ONHOUR]
#IF
HOUR = 20
#ACT
RUNSOUND 171





OR




[@ONHOUR]
#IF
HOUR = 13
GOTO @HOUR13
HOUR = 14
GOTO @HOUR14
HOUR = 15
GOTO @HOUR15


ect ect
#ACT
RUNSOUND 171
 
Last edited:
Upvote 0

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
Why not try:

In Envir > Robot_def > RobotManage.txt .....

[@1pm]
#ACT
RUNSOUND 171
#ELSEACT
BREAK

Then in In Envir > Robot_def > AutoRunRobot.txt....

#AutoRun NPC RUNONMIN 59 @1pm

I think the above might just run the same script every hour.


Or maybe

#AutoRun NPC RUNONHOUR 13 @1pm


Something like this must work, i`m to busy to try atm.
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
im not good at all in scripting but shouldnt it be something like

[@ONHOUR]
#IF
HOUR = 1
#ACT
RUNSOUND 1
#ELSEIF
HOUR = 2
#ELSEACT
RUNSOUND 2
#ELSEIF
HOUR = 3
#ELSEACT
RUNSOUND 3
and so on?

ovviously in qfunction
 
Upvote 0

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
im not good at all in scripting but shouldnt it be something like

[@ONHOUR]
#IF
HOUR = 1
#ACT
RUNSOUND 1
#ELSEIF
HOUR = 2
#ELSEACT
RUNSOUND 2
#ELSEIF
HOUR = 3
#ELSEACT
RUNSOUND 3
and so on?

ovviously in qfunction


I don`t think [@ONHOUR] is the correct command

Maybe [@RUNONHOUR]

I`d try this


In Envir > Robot_def > RobotManage.txt .....

[@1pm]
#ACT
RUNSOUND 171
#ELSEACT
BREAK

Then in In Envir > Robot_def > AutoRunRobot.txt....

#AutoRun NPC RUNONHOUR 13 @1pm
 
Upvote 0