Paste #6310: Untitled Paste

Date: 2014/07/04 15:17:24 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"KlassenFaehigkeitenScript": 
  type: world 
  events:  
    on player stops sneaking: 
    - invisible player state:false 
    on player starts sneaking: 
    - if <player.flag[InvisibleActive]> == Ein if <player.flag[Klasse]> == Schleicher { 
      - if <player.has_flag[CDBool]> { 
        - narrate "<red>Dein Skill ist noch nicht Bereit!" 
        - invisible player state:false 
        - queue clear }  
      - run script:SchleicherSkillCooldown } 
    on player damages entity:  
    - invisible player state:false 
    on player damaged: 
    - invisible player state:false 
    on player right clicks with i@UnsichtbarkeitsSkill: 
    - if <player.flag[InvisibleActive]> == Ein run "script:InvisibleToggleOff" - queue clear  
    - if <player.flag[InvisibleActive]> == Aus run "script:InvisibleToggleOn" 
"Invisible": 
  type: task 
  script: 
  - invisible player state:true 
  - playeffect <player.location> effect:LARGE_SMOKE visibility:20 qty:20 offset:1 
  - wait 7 
  - invisible player state:false 
"SchleicherSkillCooldown": 
  type: task 
  script: 
    - ^if <player.has_flag[CDBool]> { 
      - queue clear 
      } 
    - ^run "script:Invisible"  
    - flag player CDBool duration:10 
"InvisibleToggleOff": 
  type: task 
  script: 
  - define InvisibleSlot <player.inventory.find[UnsichtbarkeitsSkill]> 
  - take UnsichtbarkeitsSkill 
  - flag player InvisibleActive:Aus 
  - inventory add origin:UnsichtbarkeitsSkill slot:%InvisibleSlot%
"InvisibleToggleOn": 
  type: task 
  script: 
  - define InvisibleSlot <player.inventory.find[UnsichtbarkeitsSkill]> 
  - take UnsichtbarkeitsSkill 
  - flag player InvisibleActive:Ein 
  - inventory add origin:UnsichtbarkeitsSkill slot:%InvisibleSlot%