Paste #6480: Boss

Date: 2014/07/07 00:12:14 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


VillagerSlayer: 
  type: assignment 
  actions: 
    on spawn: 
    #- anchor id:home add l@275,64,141,World 
    - trigger name:proximity state:true 
    - health 150 state:true 
    - equip <hand:267> 
    - equip <head:306> 
    - equip <chest:307> 
    - equip <legs:308> 
    - equip <feet:309> 
    on death: 
    - give <context.killer> xp qty:1000 
    - give <context.killer> money qty:1000 
    on proximity move: 
    - ^if <npc.flag[wait]> == null { 
      - ^flag npc wait d:5s 
      - ^flag npc wait2 d:8.5s 
      - attack <npc> target:<npc.location.find.players.within[3]> 
      - chat "&4You don't stand a chance!" 
    - ^if <npc.flag[wait2]> == null { 
      - playeffect <npc.location> e:lava qty:20 
      - playeffect <npc.location> e:Blaze_shoot qty:20 
      - foreach <npc.location.find.players.within[5]> { 
        - potion harm %value% p:1 d:0.5 
        } 
                        } 
      - ^if <npc.flag[mobspawn]> == null{ 
        - ^flag npc mobspawn d:60s 
        - chat "Aid me my soldiers!" 
        - run newzombietask def:<npc.location> 
                                        } 
newzombietask: 
  type: task 
  script: 
  - create zombie namehere %1% 
  - assignment set script:Warrior