Paste #15072: Script peformance

Date: 2015/04/14 14:18:58 UTC-07: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" 
    - define item <context.armor.scriptname||false> 
    - if %item% == false queue clear 
    - if li@AST1_1|AST1_2|AST1_3|AST1_4|AST2_1|AST2_2|AST2_3|AST2_4|VX_1|VX_2|VX_3|VX_4|VX2_1|VX2_2|VX2_3|VX2_4|BA_1|BA_2|BA_3|BA_4|BA2_1|BA2_2|BA2_3|BA2_4 contains %item% {   
      - if !<player.has_flag[L_%item%]> 
      - announce 'Starting Loop' 
      - flag player L_%item% 
      - run s@T_%item% 
      }  
    - queue clear

#Assasinenset T-0_1
AST1_1:
    type: item  
    debug: true  
    material: diamond_helmet  
    display name: Diamand Helm
    lore:  
    - Name 1
    enchantments:
    - DURABILITY:2
    - PROTECTION_FIRE:1
    - OXYGEN:2

AST1_2:
    type: item  
    debug: true  
    material: diamond_chestplate
    display name: Diamant Brustplatte  
    lore:  
    - Name 2
    enchantments:
    - DURABILITY:2

AST1_3:
    type: item  
    debug: true  
    material: diamond_leggings
    display name: Diamant Hose
    lore:  
    - Name 3
    enchantments:
    - DURABILITY:2
    - PROTECTION_PROJECTILE:5

AST1_4:
    type: item 
    debug: true
    material: diamond_boots
    display name: Diamant Schuhe 
    lore: 
    - Name 4
    enchantments:
    - DURABILITY:2
    - PROTECTION_FALL:2