Paste #38222: Untitled Paste

Date: 2016/12/10 00:24:39 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


stats_sys:  
  type: task
  script:
  - if <server.flag[mmo_player].is[OR_MORE].to[1]||true> {
    - adjust <player> fake_health:<global.flag[Healthbar].div[64].mul[20].round_up.max[1]||1>|<global.flag[manabar].div[64].mul[20].round_up>
    - if <global.flag[Healthbar].is[OR_MORE].to[64]||true> {
      - flag global Healthbar:--
        }
    - if <global.flag[Healthbar].is[OR_MORE].to[2]||true> {
      -if <global.flag[hot_cd].is[==].to[1]||true> {
        - wait 5
        - flag global hot_cd:0
        }
      - if <global.flag[hot_cd].is[==].to[0]||true> {
        - flag global Healthbar:--
        - flag global hot_cd:1
        }
    }
    - if <global.flag[Healthbar].is[OR_LESS].to[1]||ture> {
      - narrate "You Die"
      }
    - if <global.flag[manabar].is[OR_LESS].to[0]||true> {
      - narrate "out of mana!"
      }
    }
    - queue complete