Paste #14212: Haste

Date: 2015/03/04 06:43:16 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#    - if <player.has_flag[loop_running]> queue clear 
#    - flag player loop_running
rustung: 
  type: world 
  events: 
    on player equips armor: 
    - announce "World Script startet" 
    - if <context.armor.scriptname||null> == eisenschuhe { 
      - announce 'Starting Loop' 
      - run s@armortask
      }
    - if <context.armor.scriptname||null> == eisenhose { 
      - announce 'Starting Loop2' 
      - run s@armortask
      } 
    - if <context.armor.scriptname||null> == eisenbrust { 
      - announce 'Starting Loop3' 
      - run s@armortask
      }
    - if <context.armor.scriptname||null> == eisenhelm { 
      - announce 'Starting Loop4' 
      - run s@armortask
      }
    - queue clear

eisenschuhe: 
    type: item 
    debug: true 
    material: iron_boots 
    display name: Neue schuhe 
    lore: 
    - Zauber 1 
    - Zauber 2 
    - <red>Legend<รค>re Schuhe 

eisenhose: 
    type: item 
    debug: true 
    material: iron_leggings 
    display name: Eine neue Hose 
    lore: 
    - Lore 1 
    - Lore 2 
    - <blue>Eine blaue Lore 

eisenhelm: 
    type: item 
    debug: true 
    material: iron_helmet 
    display name: Ein Helm 
    lore: 
    - Lore 1 
    - Lore 2 

eisenbrust:
    type: item
    debug: false
    material: iron_chestplate
    display name: Eine Brustplatte
    lore:
    - Lore 1
    - Lore2

armortask: 
  type: task 
  script: 
  - announce " Armortask startet hier. "
  - if <player.has_flag[loop_running]> queue clear
  - flag player loop_running
  - announce " Komme durch den FLag engage. "
  - if <player.equipment.boots.scriptname||null> == eisenschuhe { 
    - announce " Subscript 1 running by <player.name>. " 
    - cast JUMP duration:6s power:3 
    - wait 3s
    - run s@armortask
    } 
  - if <player.equipment.leggings.scriptname||null> == eisenhose { 
    - announce " Subscript 2 running by <player.name> " 
    - cast CONFUSION duration:6s power:3 
    - wait 3s 
    - run s@armortask
    } 
  - if <player.equipment.chestplate.scriptname||null> == eisenbrust { 
    - announce " Subscript 3 running by <player.name> "
    - cast INVISIBILITY duration:6s power:3
    - wait 3s 
    - run s@armortask
    } 
  - if <player.equipment.helmet.scriptname||null> == eisenhelm { 
    - announce " Subscript 4 running by <player.name>. " 
    - cast SPEED duration:6s power:3 
    - wait 3s
    - run s@armortask
    } 
  - announce " Am Ende angekommen. "
  - flag player loop_running:!
  - queue clear