Advertisement
Kukky

BetterQuest

Aug 6th, 2016
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #BetterQuest###
  2.  
  3. aliases:
  4.     mall disk = 2261
  5.     written book = 387
  6.  
  7. #Finding NPC Numbers###
  8.  
  9. on npc right click:
  10.     name of player's tool contains "&5NPC Checker"
  11.     message "&8[&3Quest&8] &7This NPC is numbered &a%event-number%&7."
  12.  
  13. command /checknpc:
  14.     trigger:
  15.         give 1 paper named "&5NPC Checker" to player
  16.  
  17. #Quest List###
  18.  
  19. #Int = A Fine Introduction#       #Quest 1#
  20. #Wood = The Whispering Woods#     #Quest 2#
  21. #Ice = The Frostmane#             #Quest 3#
  22. #Inn = An Innkeeper's Story#      #Quest 4#
  23. #Debt1 = A Goblin's Demise#       #Quest 5#
  24. #Whis = Where's My Whiskey?#      #Quest 6#
  25.  
  26. #Isl = An Island of Fire#         #Quest 7.1#
  27. #Etc = Entering the City#         #Quest 7.2#
  28.  
  29. #Quest Command###
  30.  
  31. command /quest [<text>] [<player>] [<text>]:
  32.     trigger:
  33.         if arg 1 is not set:
  34.             send "&8[&3Quest&8] &c/quest list [player]: &7Shows the Quest List for the specified player."
  35.             send "&8[&3Quest&8] &c/quest reset [player] [quest]: &7Resets the specified quest for the specified player."
  36.         if arg 1 is "list":
  37.             player arg is not set:
  38.                 send "&8[&3Quest&8] &cYou must specify the player!"
  39.                 stop
  40.             send "&8[&3Quest&8] &7Showing Quest Progress for &6%player arg%&7."
  41.             wait 10 ticks
  42.             send "&8[&3Quest&8] &7Completed Quests:"
  43.             {questInt.%player arg%} is true:
  44.                 send "&8[&3Quest&8] &aA Fine Introduction"
  45.             {questWood.%player arg%} is true:
  46.                 send "&8[&3Quest&8] &aThe Whispering Woods"
  47.             {questIce.%player arg%} is true:
  48.                 send "&8[&3Quest&8] &aThe Frostmane"
  49.             {questInn.%player arg%} is true:
  50.                 send "&8[&3Quest&8] &aAn Innkeeper's Story"
  51.             {questDebt1.%player arg%} is true:
  52.                 send "&8[&3Quest&8] &aA Goblin's Demise"
  53.             {questWhis.%player arg%} is true:
  54.                 send "&8[&3Quest&8] &aWhere's My Whiskey?"
  55.             send ""
  56.             send "&8[&3Quest&8] &7Started Quests:"
  57.             {questInt.%player arg%} is "Started":
  58.                 send "&8[&3Quest&8] &aA Fine Introduction"
  59.             {questWood.%player arg%} is "started":
  60.                 send "&8[&3Quest&8] &aThe Whispering Woods"
  61.             {questIce.%player arg%} is "started":
  62.                 send "&8[&3Quest&8] &aThe Frostmane"
  63.             {questInn.%player arg%} is "started":
  64.                 send "&8[&3Quest&8] &aAn Innkeeper's Story"
  65.             {questDebt1.%player arg%} is "started":
  66.                 send "&8[&3Quest&8] &aA Goblin's Demise"
  67.             {questWhis.%player arg%} is "started":
  68.                 send "&8[&3Quest&8] &aWhere's My Whiskey?"
  69.             send ""
  70.             send "&8[&3Quest&8] &7Unstarted Quests:"
  71.             {questInt.%player arg%} is not set:
  72.                 send "&8[&3Quest&8] &aA Fine Introduction"
  73.             {questWood.%player arg%} is not set:
  74.                 send "&8[&3Quest&8] &aThe Whispering Woods"
  75.             {questWood.%player arg%} is false:
  76.                 send "&8[&3Quest&8] &aThe Whispering Woods"
  77.             {questIce.%player arg%} is false:
  78.                 send "&8[&3Quest&8] &aThe Frostmane"
  79.             {questInn.%player arg%} is false:
  80.                 send "&8[&3Quest&8] &aAn Innkeeper's Story"
  81.             {questDebt1.%player arg%} is false:
  82.                 send "&8[&3Quest&8] &aA Goblin's Demise"
  83.             {questWhis.%player arg%} is false:
  84.                 send "&8[&3Quest&8] &aWhere's My Whiskey?"
  85.         else if arg 1 is "reset":
  86.             player has permission "quest.kukky"
  87.             arg 3 is "wood":
  88.                 set {cultist.%player arg%} to 0
  89.                 set {culbook.%player arg%} to 0
  90.                 clear {questWood.%player arg%}
  91.                 message "&8[&3Quest&8] &7Reset '&aThe Whispering Woods&7' for &6%player arg%&7."
  92.             arg 3 is "debt1":
  93.                 set {questDebt1.%player arg%} to false
  94.                 set {debt1kill.%player arg%} to 0
  95.                 set {debt1head.%player arg%} to 0
  96.                 set {debt1killer.%player%} to 0
  97.                 message "&8[&3Quest&8] &7Reset '&aA Goblin's Demise&7' for &6%player arg%&7."
  98.             arg 3 is "ice":
  99.                 set {frostgrunt.%player arg%} to 0
  100.                 set {frostalpha.%player arg%} to 0
  101.                 set {questIce.%player arg%} to false
  102.                 message "&8[&3Quest&8] &7Reset '&aThe Frostmane&7' for &6%player arg%&7."
  103.             arg 3 is "inn":
  104.                 set {questInn.%player arg%} to false
  105.                 set {innkill.%player arg%} to 0
  106.                 set {horusSpawn.%player arg%} to false
  107.                 message "&8[&3Quest&8] &7Reset '&aAn Innkeeper's Story&7' for &6%player arg%&7."
  108.             arg 3 is "intro":
  109.                 delete {questInt.%player arg%}
  110.                 message "&8[&3Quest&8] &7Reset '&aA Fine Introduction&7' for &6%player arg%&7."
  111.  
  112. #A Fine Introduction###
  113.  
  114. on npc right click:
  115.     event-number is 1215
  116.     {questInt.%player%} is true:
  117.         message "&8[&6Ed Clark&8] &7You already helped me out!"
  118.         stop
  119.     {questInt.%player%} is "Started":
  120.         player has 10 cobblestone:
  121.             play raw sound "mob.villager.idle" at player with pitch 0.1 volume 0.3
  122.             message "&8[&6Ed Clark&8] &7Oh, thank you &a%player's display name%&7!"
  123.             wait 2 seconds
  124.             play raw sound "mob.villager.idle" at player with pitch 0.1 volume 0.3
  125.             message "&8[&6Ed Clark&8] &7Here is your reward."
  126.             remove 10 cobblestone from the player
  127.             wait 1 seconds
  128.             play raw sound "random.levelup" at player with pitch 0.1 volume 0.3
  129.             message "&8[&aA Fine Introduction&8] &3Quest Complete&7: &aA Fine Introduction"
  130.             wait 10 ticks
  131.             message "&8[&aA Fine Introduction&8] &3Quest Rewards&7: &a1x Gold Block"
  132.             give 1 gold block to the player
  133.             set {questInt.%player%} to true
  134.             stop
  135.         message "&8[&aA Fine Introduction&8] &6Objective: &7Find &410 Cobblestone &7and hand it to &6Ed Clark&7."
  136.         stop
  137.     set {questInt.%player%} to "Started"
  138.     play raw sound "mob.villager.idle" at player with pitch 0.1 volume 0.3
  139.     message "&8[&6Ed Clark&8] &7Hello there, traveler! I might require some assistance."
  140.     wait 2 seconds
  141.     play raw sound "mob.villager.idle" at player with pitch 0.1 volume 0.3
  142.     message "&8[&6Ed Clark&8] &7I am building a great port here at Spawn Island, and I need a bit of cobblestone. Mind getting me some?"
  143.     wait 2 seconds
  144.     play raw sound "random.orb" at player with pitch 0.1 volume 0.3
  145.     message "&8[&aA Fine Introduction&8] &6Objective: &7Find &410 Cobblestone &7and hand it to &6Ed Clark&7."
  146.  
  147. #The Whispering Woods###
  148.  
  149. #Whispering Wood####
  150.  
  151. on npc right click:
  152.     event-number is 1216
  153.     {questWood.%player%} is true:
  154.         send "&8[&6Julian Cegone&8] &7Come back soon, I might have another task for you!"
  155.         stop
  156.     {questWood.%player%} is "Started":
  157.         {cultist.%player%} is greater than or equal to 15:
  158.             {culbook.%player%} is greater than or equal to 30
  159.             set {questWood.%player%} to true
  160.             play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  161.             message "&8[&6Julian&8]: &7My oh my, you collected 30 Spell Tomes and killed 15 Cultists! Nice job!"
  162.             wait 3 seconds
  163.             play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  164.             message "&8[&6Julian&8]: &7Now, let me tell you a story. There is a ring that was found by the Sunriders."
  165.             wait 3 seconds
  166.             play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  167.             message "&8[&6Julian&8]: &7This ring was very powerful; It sped up the healing process of the wearer of the ring."
  168.             wait 3 seconds
  169.             play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  170.             message "&8[&6Julian&8]: &7One day, this ring was stolen by a smuggler. This Smuggler's name was Julian Cegone."
  171.             wait 3 seconds
  172.             play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  173.             message "&8[&6Julian&8]: &7I want you to have this ring; you will need it for the battles to come. Good Luck."
  174.             give 1 mall disk named "&3Ring of Regeneration" with lore "&6This ring was found by pirates, the Sunriders,||&6long ago, only to be stolen by Julian Cegone.||&6He has given the ring to you as a reward for helping.||&6Automatically &7gives you Regeneration 1.||&6Right Click &7to toggle the Regeneration 1.||&7Ring Owner: &6%player%&9||&7Rarity: &9Rare" to player
  175.             wait 1 second
  176.             play raw sound "random.levelup" at player with pitch 0.1 volume 0.3
  177.             message "&8[&aThe Whispering Woods&8] &3Quest Complete&7: &aThe Whispering Woods"
  178.             wait 10 ticks
  179.             message "&8[&aThe Whispering Woods&8] &3Quest Rewards&7: &a1x Regeneration Ring"
  180.             stop
  181.         send "&8[&aThe Whispering Woods&8] &7Current Progress: &4%{cultist.%player%}%&7/&415 &7Cultists Killed."
  182.         send "&8[&aThe Whispering Woods&8] &7Current Progress: &4%{culbook.%player%}%&7/&430 &7Spell Tomes Recovered."
  183.         stop
  184.     set {questWood.%player%} to "Started"
  185.     set {cultist.%player%} to 0
  186.     set {culbook.%player%} to 0
  187.     play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  188.     message "&8[&6Julian&8]: &7Ah, glad you are here, &6%player's display name%!"
  189.     wait 3 seconds
  190.     play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  191.     message "&8[&6Julian&8]: &7It seems that we have a problem with the forest being... infested with whispers."
  192.     wait 3 seconds
  193.     play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  194.     message "&8[&6Julian&8]: &7Now, you may be thinking, 'Isn't this forest called the Whispering Woods? Whispers are normal, right?'."
  195.     wait 3 seconds
  196.     play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  197.     message "&8[&6Julian&8]: &7Well, &6%player's display name%&7, they are not normal and need to be dealt with. I have reason to believe the whispers are being caused by a ritual to summon Doombringer the Unworthy."
  198.     wait 3 seconds
  199.     play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  200.     message "&8[&6Julian&8]: &7Mind going into the forest and stopping the ritual? The Doombringer Cultists are returning to summon their Lord. Those foul creatures..."
  201.     wait 3 seconds
  202.     play raw sound "mob.villager.idle" at player with pitch 0.4 volume 0.3
  203.     message "&8[&6Julian&8]: &7Go kill 15 of those cultists and bring me their Spell Tomes! I can probably study them and figure out a more permanent way to stop the summoning of Doombringer."
  204.     wait 3 seconds
  205.     play raw sound "random.orb" at player with pitch 0.4 volume 0.3
  206.     message "&8[&aThe Whispering Woods&8] &6Objective: &7Kill &415 &7Doombringer Cultists found in the Woods."
  207.     wait 10 ticks
  208.     message "&8[&aThe Whispering Woods&8] &6Objective: &7Collect &430 Spell Tomes&7, Dropped by the Cultists."
  209.  
  210. on death:
  211.     boots of victim are diamond boots named "Cultist"
  212.     {questWood.%attacker%} is "Started"
  213.     {cultist.%attacker%} is less than 15:
  214.         add 1 to {cultist.%attacker%}
  215.         message "&8[&aThe Whispering Woods&8] &7Cultist Kills: &4%{cultist.%attacker%}%&7/&415" to attacker
  216.         wait 1 tick
  217.         {cultist.%attacker%} is greater than or equal to 15:
  218.             play raw sound "random.levelup" at attacker with pitch 0.4 volume 0.3
  219.             message "&8[&aThe Whispering Woods&8] &6Objective Completed&7: Kill &415 &7Doombringer Cultists found in the Woods." to attacker
  220.  
  221. on pick up:
  222.     wait 1 tick
  223.     loop all items in the player's inventory:
  224.         name of loop-item contains "Spell Tome"
  225.         remove 1 book named "Spell Tome" with lore "Used to summon Doombringer." from the player
  226.         wait 1 tick
  227.         {questWood.%player%} is "Started"
  228.         {culbook.%player%} is 30:
  229.             stop
  230.         add 1 to {culbook.%player%}
  231.         send "&8[&aThe Whispering Woods&8] &7Spell Tomes Recovered: &4%{culbook.%player%}%&7/&430" to player
  232.         wait 1 tick
  233.         {culbook.%player%} is greater than or equal to 30:
  234.             play raw sound "random.levelup" at player with pitch 0.4 volume 0.3
  235.             send "&8[&aThe Whispering Woods&8] &6Objective Completed&7: &7Collect &430 Spell Tomes&7, dropped by the Cultists." to player
  236.             send "&8[&aThe Whispering Woods&8] &7Go back to &6Julian Cegone &7to turn in the quest!" to player
  237.  
  238. #Quest Log###
  239.  
  240. on left click:
  241.     player has permission "kukky.perms":
  242.         player's tool is a written book
  243.         set player's tool to a written book
  244.         set author of player's tool to "&cJohn Smith"
  245.         set title of player's tool to "&6Quest Log"
  246.         set page 1 of player's tool to "&bQuest - &cAn Island of Fire||"
  247.         set all pages of player's tool to "Once upon a time"
  248.  
  249. command /makelog:
  250.     permission: kukky.perms
  251.     trigger:
  252.         send "Set the page."
  253.         set page 1 of player's tool to "Whatever"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement