Paste #7889: Untitled Paste

Date: 2014/08/05 10:45:58 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


BodyGuardQuitAssignment:
    type: world
    debug: false
    events:
        on player quits:
        - run s@EraseBodyGuard
        on entity teleports:
        - if <context.entity.is_player> {
          - if <player.in_group[Legend]> {
            - run s@BodyguardMountonTeleport as:<player.name>
            - teleport <player.flag[BodyGuard]> <<player.flag[BodyGuardMount]>.location>
            - mount <player.flag[BodyGuard]>|<player.flag[BodyGuardMount]>
            }
            else if <player.in_group[DawnGuard]> {
            - run s@BodyguardMountonTeleport as:<player.name>
            - teleport <player.flag[BodyGuard]> <<player.flag[BodyGuardMount]>.location>
            - mount <player.flag[BodyGuard]>|<player.flag[BodyGuardMount]>
            }
            }