Paste #14954: Edit of P#14952 - Untitled Paste

Date: 2015/04/06 14:13:25 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


TulakWaypointScript:
    type: task
    debug: false
    script:
    - if <n@15.has_flag[walking]> queue stop
    - flag <n@15> walking
    - while <server.flag[TulakWalk].is[==].to[1]> {
        - define wpts '<yaml[npc].list_keys[npc.Tulak.waypoints].alphanumeric>'
        - foreach %wpts% { 
          - ~walk <n@15> <yaml[npc].read[npc.Tulak.waypoints.%value%.location]>
          - wait <yaml[npc].read[npc.Tulak.waypoints.%value%.delay]>
        }
      }

npccleanup:
  type: world
  events:
    on server start:
    - flag <n@15> walking:!