Scripting Open & Close time

smoochy boys on tour

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
[KING FILES]
I have tried many different ways to do opening and closing times for 9am - 8pm...
I first tried
#IF
HOUR 9
#ACT
movenpc 0 193 250 "(GoldExchange)_Rich" Z012 7 14
#IF
HOUR 20
#ACT
movenpc Z012 7 14 "(GoldExchange)_Rich" 0 193 250
That wouldnt let me click the npc...
so i then tried making 2 new npc's
NPC1 - closed
#IF
Hour 23
#ACT
movenpc 0 193 250 "(GoldExchange)_Rich" Z012 7 14
NPC2-Open
#IF
HOUR 9
#ACT
movenpc Z012 7 14 "(GoldExchange)_Rich" 0 193 250
This seem to work but only if i clicked the npc during hours 9 and 23 and i want it to do it automatically.
i also tried stealing the script from the lair gate so it would hide/show but this would only happen again if i clicked the npc at hours 9 and 23. Any help please? ty

P.S. i want the npc's to move automatically at hours9 and 23. I'm not sure if the script is correct because i don't have it in front of me so please no negative feedback ty ;)