Date: 2014/08/05 10:45:58 UTC-07:00
Type: Denizen Script
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]>
}
}