Holy Book


Author: jstmemage
Created: 2014-01-02T10:55:00-0500
Edited: 2014-01-02T10:55:00-0500
Denizen Version: 0.9
Views: 11
Downloads: 739
Likes: 0


WGET
Description: This is a script for a powerful magic item which heals players and harms zombies. It can only be used by players in the permissions group "Monk"

holybook:
  type: item
  material: 403
  display name: HolyBook
  lore:
  - Monks have been known to
  - heal people with this tome.
  
'monk':
  type: world
  events:
    on player right clicks with i@holybook:
    - ^if <player.in_group[monk]> {
      - if <global.flag[myworldscript_cooldown]> == true queue clear
      - flag global myworldscript_cooldown:true duration:15
      - heal 5 <player.location.find.players.within[10].exclude[<player>]>
      - foreach <player.location.find.living_entities.within[10]> {
        - if <%value%.entity_type> == zombie hurt 5 %value%
        }
     - narrate "You have healed the people nearby." }




Comments
No one has posted a comment! Post one below: