Paste #451: Untitled Paste

Date: 2013/11/29 23:43:23 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#TO GIVE MCMMO XP IN A SKILL THE PLAYER DOES NOT HAVE, DO - run mcmmoxpstoring as:<player> def:<perm group for the skill>|<skill name for mcmmo>|<amount of xp>

"mcmmoxpstoring":
    type: task
    script:
    - if <player.in_group[%1%] == false {
      - flag mcmmo%2%xp:+:%3%
      - narrate "<&a>You are awarded %3% experience points in %2%. However, since you will only recieve these experience points once you have the %1% class."
      } else {
      - execute as_server 'addxp <player> %2% %3%'
      }

# delivering mcmmo xp: - run mcmmoxpdelivering def:<skill name for mcmmo to store xp in>

"mcmmoxpdelivering":
    type: task
    script:
    - if <player.flag[mcmmo%1%xp]> > 0 {
      - execute as_server 'addxp <player> %1% <player.flag[mcmmo%1%xp]>'
      - narrate '<&a>These experience points are from quests you completed while not having the %1% skill.'
      - flag mcmmo%1%xp:!
      }