Paste #2814: Untitled Paste

Date: 2014/03/23 15:55:16 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


World Setup:
    type: world

    events:
        on 0:00 in Azeroth:
            - narrate targets:p@NLS667 "00:00"

        on 6:00 in Azeroth:
            - narrate targets:p@NLS667 "6:00"
            - if <server.has_flag[defaultSleepNpcList]> {
                - foreach <global.flag[defaultSleepNpcList].as_list> {
                    - run npcid:%value% wakeUp
                    }
                }

        on 8:00 in Azeroth:
            - narrate targets:p@NLS667 "08:00"
            - if <server.has_flag[CountryWorker]> {
                - foreach <global.flag[CountryWorker].as_list> {
                    - run npcid:%value% workTime
                    }
                }

        on 12:00 in Azeroth:
            - narrate targets:p@NLS667 "12:00"
            - if <server.has_flag[CountryWorker]> {
                - foreach <global.flag[CountryWorker].as_list> {
                    - run npcid:%value% freeTime
                    }
                }

        on 14:00 in Azeroth:
            - narrate targets:p@NLS667 "14:00"
            - if <server.has_flag[CountryWorker]> {
                - foreach <global.flag[CountryWorker].as_list> {
                    - run npcid:%value% workTime
                    }
                }            

        on 18:00 in Azeroth:
            - narrate targets:p@NLS667 "18:00"
            - if <server.has_flag[CountryWorker]> {
                - foreach <global.flag[CountryWorker].as_list> {
                    - run npcid:%value% freeTime
                    }
                }

        on 22:00 in Azeroth:
            - narrate targets:p@NLS667 "22:00"
            - if <server.has_flag[defaultSleepNpcList]> {
                - foreach <global.flag[defaultSleepNpcList].as_list> {
                    - run npcid:%value% goToSleep
                    }
                }