Paste #4978: Untitled Paste

Date: 2014/05/31 13:43:29 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


on death:
    - ^if <npc.flag[deathran]> queue clear
    - ^flag npc deathran
    - ^define npc <npc>
    - ^trigger name:damage state:false
    - ^queue queue:<npc.flag[queueid]> clear
    - announce <npc>
    - announce <npc.health>
    - if <npc.is_spawned> {
      - hurt <npc.health> <npc>
      }
    - ^run RemoveNPC def:%npc%
    - if <server.flag[Trainee1_lost]> queue clear
    - if <server.flag[Trainee1_winnable]> run Trainee1_win
    - ^narrate "<&a>+5<&6> <&chr[026c2]>"
    - ^flag player gold:+:5
    - ^flag server Trainee1_mobs:<-:%npc%