Advertisement
VacrosDK

Untitled

Dec 18th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. variables:
  2. {quest.%player%} = 0
  3. {sten.%player%} = 0
  4. {kills.%player%} = 0
  5. {deaths.%player%} = 0
  6.  
  7.  
  8. command /npcmission:
  9. trigger:
  10. execute player command "/npc create &6&lMissioner"
  11. execute player command "/npc look"
  12. execute player command "/npc skin VacrosDK"
  13.  
  14. on rightclick on entity:
  15. if name of entity is "&6&lMissioner":
  16. if {quest.%player%} is 0:
  17. send "&7" to player
  18. send "&aDu aktiverede nu mission menuen!" to player
  19. send "&cHøjreklik for at se mission menuen!" to player
  20. send "&7" to player
  21. set {quest.%player%} to 1
  22.  
  23. stop
  24.  
  25. if {quest.%player%} is 1:
  26. wait 3 tick
  27. open chest with 1 rows named "&6&lMission-Menu" to player
  28. wait 3 tick
  29. format slot 0 of player with cobblestone named "&7&lMine-Quest" with lore "&aDette skal du bruge for at klare denne mission:|| ||&7-------------[&8&lMine-Mission&7]---------------|| ||&71. &4&l320 &cstykker cobblestone &4(5 Stacks)||&72. &4&l128 &cstykker smeltet sten &4(2 stacks)|| ||&7-------------[&8&lMine-Mission&7]---------------" to close then run [execute player command "/missionstenkjlhsdlnhjkkshnjdkhjds"]
  30. format slot 1 of player with seeds named "&e&lNarko-Mission" with lore "&aDette skal du bruge for at klare denne mission:|| ||&7-------------[&e&lNarko-Mission&7]---------------|| ||&72. &4&l64 &cstykker wheat &4(1 Stack)||&72. &4&l320 &cseeds &4(5 stacks)||&73. &4&l1 &cDiamond Hoe || ||&7-------------[&e&lNarko-Mission&7]---------------" to close then run [execute player command "/missionnarkofucntion92389"]
  31. format slot 2 of player with book named "&4Kill-Mission" with lore "&aDette skal du bruge for at klare denne mission:|| ||&7-------------[&4&lMislykket Morder-&c&lMission&7]---------------|| ||&71. &4&l100&c Kills!||&72. &4&l100 &cDeaths!|| ||&7-------------[&4&lMislykket Morder-&c&lMission&7]---------------" to close then run [execute player command "/missionkillpoikpghopuopihnds"]
  32.  
  33. command /missionstenkjlhsdlnhjkkshnjdkhjds:
  34. trigger:
  35. MissionMine(player)
  36.  
  37.  
  38.  
  39. function MissionMine(p:player):
  40. set {_uuid} to uuid of {_p}
  41. {MissionMine::%{_uuid}%} = true:
  42. send "&6&lMissioner &8» &eDu har allerede klaret denne mission!" to {_p}
  43. stop
  44. amount of stone in {_p}'s inventory > 127:
  45. amount of cobblestone in {_p}'s inventory > 319:
  46. wait 5 ticks
  47. remove 320 of cobblestone from the inventory of {_p}
  48. wait 3 ticks
  49. remove 128 of stone from inventory of {_p}
  50. send "&7" to {_p}
  51. send "&7--------[&8lMine-Mission&7]--------" to {_p}
  52. send "&7" to {_p}
  53. send "&a&lDu har nu klaret din &8&lMine&a&l mission!" to {_p}
  54. send "&7" to {_p}
  55. send "&7--------[&8lMine-Mission&7]--------" to {_p}
  56. send "&7" to {_p}
  57. set {MissionMine::%{_uuid}%} to true
  58. stop
  59. send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
  60. send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
  61.  
  62. command /missionnarkofucntion92389:
  63. trigger:
  64. MissionNarko(player)
  65.  
  66.  
  67. function MissionNarko(p:player):
  68. set {_uuid} to uuid of {_p}
  69. {MissionNarko::%{_uuid}%} = true:
  70. send "&6&lMissioner &8» &eDu har allerede klaret denne mission!" to {_p}
  71. stop
  72. amount of seeds in {_p}'s inventory > 319:
  73. amount of wheat in {_p}'s inventory > 63:
  74. amount of diamond hoe in {_p}'s inventory > 0:
  75. wait 5 ticks
  76. remove 320 of seeds from the inventory of {_p}
  77. remove 64 of wheat from inventory of {_p}
  78. remove 1 of diamond hoe from inventory of {_p}
  79. send "&7" to {_p}
  80. send "&7--------[&e&lNarko-Mission&7]--------" to {_p}
  81. send "&7" to {_p}
  82. send "&a&lDu har nu klaret din &e&lNarko&a&l mission!" to {_p}
  83. send "&7" to {_p}
  84. send "&7--------[&e&lNarko-Mission&7]--------" to {_p}
  85. send "&7" to {_p}
  86. set {MissionNarko::%{_uuid}%} to true
  87. stop
  88. send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
  89. send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
  90. send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
  91.  
  92.  
  93. on death of a player:
  94. the attacker = a player
  95. wait a tick
  96. add 1 to {kills::%uuid of the attacker%}
  97. add 1 to {deaths::%uuid of the victim%}
  98. command /missionkillpoikpghopuopihnds:
  99. trigger:
  100. wait 3 tick
  101. {kills::%uuid of the player%} > 99:
  102. {klaret.missionkills::%uuid of the player%} isn't set:
  103. send "&7" to player
  104. send "&7--------[&4&lKill-Mission&7]--------" to player
  105. send "&7" to player
  106. send "&a&lDu har nu klaret din &4&lKill Mission!" to player
  107. send "&7" to player
  108. send "&7--------[&4&lKill-Mission&7]--------" to player
  109. send "&7" to player
  110. add 3000 to the player's balance
  111. set {klaret.missionkills::%uuid of the player%} to true
  112. stop trigger
  113. send "&6&lMissioner &8» &eDu har allerede klaret denne mission!" to the command sender
  114. stop
  115. send "&6&lMissioner &8» &eDu har ikke &6&l100&e kills endnu!" to the command sender
  116.  
  117.  
  118. command /missionreset [<offline player>]:
  119. permission: Mission.reset
  120. trigger:
  121. if arg-1 is not set:
  122. set {quest.%player%} to 0
  123. set {sten.%player%} to 0
  124. set {kills.%player%} to 0
  125. set {deaths.%player%} to 0
  126. set {MissionNarko::%{_uuid}%} to false
  127. set {klaret.missionkills::%uuid of the player%} to false
  128. send "&c&lDu har reset alle dine missioner!"
  129. else:
  130. set {quest.%arg-1%} to 0
  131. set {sten.%arg-1%} to 0
  132. set {kills.%arg-1%} to 0
  133. set {deaths.%arg-1%} to 0
  134. set {MissionNarko::%{_uuid}%} to false
  135. set {klaret.missionkills::%uuid of the player%} to false
  136. send "&c&lDu har reset %arg-1%'s Missioner!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement