SHARE
TWEET

Untitled

a guest Sep 21st, 2019 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /quest:
  2.     aliases: quests
  3.     trigger:
  4.         open chest inventory with 3 rows named "&8            - &6&lQuests &8-" to player
  5.         format a gui slot 0 and 8 and 9 and 17 and 18 and 26 of player with gray glass pane named "" to do nothing
  6.  
  7.         if {quest.coalore.tier1.stop::%player's uuid%} is true:
  8.             format a gui slot 1 of player with lime glass pane named  "&6&lQUEST &8&l➡ &e&lCoal Miner" lored "||&7   &6&l* &a&lCompleted||&7" to run:
  9.                 send "&6&lQUEST &8&l➡ &7You've already completed this quest, Try moving onto Tier 2!"
  10.             format a gui slot 2 of player with coal ore named  "&6&lQUEST &8&l➡ &e&lCoal Miner" lored "||&7 Mine &e100 &7coal ore||&7||   &6&l* &7Tier: &e2&7||   &6&l* &7Progress: &e%{quest.coalore.tier2::%player's uuid%}%/100&7||   &6&l* &7Reward: &a$2500||   &6&l* &7Status: &e%{quest.coalore.tier2.start::%player's uuid%}%||&7||&7&o Left-Click to start this quest"
  11.             format a gui slot 3 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7second level to be completed.||&7"
  12.             format a gui slot 4 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7third level to be completed.||&7"
  13.             format a gui slot 5 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7fourth level to be completed.||&7"
  14.             format a gui slot 6 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7fith level to be completed.||&7"
  15.             format a gui slot 7 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7sixth level to be completed.||&7"
  16.  
  17.         else:
  18.             format a gui slot 1 of player with coal ore named  "&6&lQUEST &8&l➡ &e&lCoal Miner" lored "||&7 Mine &e25 &7coal ore||&7||   &6&l* &7Tier: &e1&7||   &6&l* &7Progress: &e%{quest.coalore.tier1::%player's uuid%}%/25&7||   &6&l* &7Reward: &a$250||   &6&l* &7Status: &e%{quest.coalore.tier1.start::%player's uuid%}%||&7||&7&o Left-Click to start this quest" to run:
  19.                 if {quest.coalore.tier1.start::%player's uuid%} is true:
  20.                     send "&6&lQUEST &8&l➡ &7This quest is already started!"
  21.                 else if {quest.coalore.tier1.start::%player's uuid%} is false:
  22.                     set {quest.coalore.tier1.start::%player's uuid%} to true
  23.                     send "&6&lQUEST &8&l➡ &7You just started the &6&lCoal Miner &e[TIER 1] &7quest!"
  24.  
  25.             format a gui slot 2 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7first level to be completed.||&7"
  26.             format a gui slot 3 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7second level to be completed.||&7"
  27.             format a gui slot 4 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7third level to be completed.||&7"
  28.             format a gui slot 5 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7fourth level to be completed.||&7"
  29.             format a gui slot 6 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7fith level to be completed.||&7"
  30.             format a gui slot 7 of player with red glass pane named "&c&lLocked" lored "&7||&7This quest level requires the||&7sixth level to be completed.||&7"
  31.  
  32. #----------------------------------------------------------------------------
  33.  
  34. command /test:
  35.     trigger:
  36.         set {quest.coalore.tier1.start::%player's uuid%} to false
  37.         set {quest.coalore.tier1.stop::%player's uuid%} to false
  38.         set {quest.coalore.tier1::%player's uuid%} to 0
  39.         set {quest.coalore.tier2.start::%player's uuid%} to false
  40.         set {quest.coalore.tier2.stop::%player's uuid%} to false
  41.         set {quest.coalore.tier2::%player's uuid%} to 0
  42.  
  43. on join:
  44.     if {quest.coalore::%player's uuid%} is not set:
  45.         set {quest.coalore.tier1.start::%player's uuid%} to false
  46.         set {quest.coalore.tier1.stop::%player's uuid%} to false
  47.         set {quest.coalore.tier1::%player's uuid%} to 0
  48.         set {quest.coalore.tier2.start::%player's uuid%} to false
  49.         set {quest.coalore.tier2.stop::%player's uuid%} to false
  50.         set {quest.coalore.tier2::%player's uuid%} to 0
  51.  
  52. on first join:
  53.     set {quest.coalore.tier1.start::%player's uuid%} to false
  54.     set {quest.coalore.tier1.stop::%player's uuid%} to false
  55.     set {quest.coalore.tier1::%player's uuid%} to 0
  56.     set {quest.coalore.tier2.start::%player's uuid%} to false
  57.     set {quest.coalore.tier2.stop::%player's uuid%} to false
  58.     set {quest.coalore.tier2::%player's uuid%} to 0
  59.  
  60. on mine of coal ore:
  61.     if {quest.coalore.tier1.start::%player's uuid%} is true:
  62.         add 1 to {quest.coalore.tier1::%player's uuid%}
  63.         if {quest.coalore.tier1::%player's uuid%} is more than or equal to 25:
  64.             send ""
  65.             send " &6&lQUEST &8&l➡ &7You just &eCOMPLETED &7the &6&lCoal Miner &e[TIER 1] &7quest!"
  66.             send ""
  67.             send "                          &6&l* &7Reward(s) &8&l➡ &a$250 &6&l*"
  68.             send ""
  69.             set {quest.coalore.tier1.stop::%player's uuid%} to true
  70.             set {quest.coalore.tier1::%player's uuid%} to 0
  71.             set {quest.coalore.tier2::%player's uuid%} to 0
  72.  
  73.  
  74. command /reeQuest:
  75.     trigger:
  76.         open virtual chest inventory with size 3 named "&8            - &6&lQuests &8-" to player
  77.         make gui slot 0 and 8 and 9 and 17 and 18 and 26 of player with gray glass pane named "" to do nothing
  78.         loop integers between 1 and 7:
  79.             make gui slot loop-integer of player with red stained glass pane named "&c&lLocked" lored "||&7This quest level requires the||&7previous level to be completed|| "
  80.         set {_coalSlot} to 1
  81.         loop {quest::coalCompleted::times} times:
  82.             make gui slot {_coalSlot} of player with lime glass pane named  "&6&lQUEST &8&l➡ &e&lCoal Miner" lored "||&7   &6&l* &a&lCompleted||&7" to run:
  83.                 send "&6&lQUEST &8&l➡ &7You've already completed this quest, Try moving onto the next quest!"
  84.             add 1 to {_coalSlot}
  85.  
  86.  
  87.  
  88. function coalQuest(p: player):
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top