Paste #6356: Untitled Paste

Date: 2014/07/05 03:11:48 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"speedsword": 
  type: world 
  debug: true 
  events: 
    on player right clicks with i@rog: 
          - if !<player.has_flag[buff]> { 
            - flag buff duration:100s 
            - foreach <player.location.find.players.within[30]> { 
              - if !<%value%.has_effect[INCREASE_DAMAGE]> && !<%value%.has_effect[SPEED]> cast speed power:3 %value% 
              } 
            - cast INCREASE_DAMAGE power:1 duration:5 
            - execute as_server 'potion effect regen 5 3 <player.name>' 
            - announce '<&e><&lb><&6><&l>!<&e><&rb> <&b><player.name> <&e>U USED BUF' 
            - determine fulfilled 
            } else { 
            - narrate "<&e>SORRY U CAN USE NEXT BUFF IN: <&c><&l><player.flag[buff].expiration.formatted>" 
            - determine fulfilled 
            } 
    on rog command:  
      - if !<player.flag[rog]> {  
        - if <player.has_permission[denizen.rog]> {  
          - give <player> i@rog 
          - flag rog duration:800s  
          - narrate "YOU GET BOSKI ROG!"  
          - determine fulfilled  
          } else {  
          - narrate "SORRY U DONT HAVE PERMISSION"
          - determine fulfilled  
          }  
        }