Advertisement
Guest User

[Dk] VagtMenu

a guest
May 29th, 2016
1,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.79 KB | None | 0 0
  1. #------------------------
  2. #Indstillinger i skriptet
  3. #------------------------
  4.  
  5. options:
  6.  
  7. prefix: &4[&cVagtMenu&4]&8
  8. permission: menu
  9.  
  10. #--------------------------------
  11. #Ikke lav om på tingene nedenfor
  12. #Det foregår på eget ansvar!
  13. #--------------------------------
  14. #Alle rettigheder forbeholdt!
  15. #--------------------------------
  16. command /menu:
  17. permission: {@permission}
  18. trigger:
  19. message "&8&l||&4&l VAGTMENU&8&l || &cTjekker databasen!"
  20. wait 30 tick
  21. open chest with 3 rows named "&4&lVAGT MENU" to player
  22. format slot 11 of player with Potion of Healing named "&6» Buffs «" with lore "&cKlik her" to run [make player execute command "/buffs"]
  23. format slot 13 of player with diamond sword named "&6» Stats «" with lore "&4Død ➳ %{deaths.%player%}% ||&aDræbt ➳ %{kills.%player%}%" to close
  24. format slot 15 of player with Stick named "&c» Vagt Stav «" with lore "&c➳ Tag Din Stav" to run [make player execute command "/stick"]
  25.  
  26. on death of player:
  27. victim is a player:
  28. attacker is a player:
  29. add 1 to {kills.%player%}
  30. on death:
  31. victim is a player:
  32. attacker is a player:
  33. add 1 to {deaths.%player%}
  34.  
  35. command /buffs:
  36. permission: {@permission}
  37. trigger:
  38. open chest with 3 rows named "&b&lBUFFS" to player
  39. wait 0.1 seconds
  40. set {_p} to "%player%" parsed as player
  41. format slot 11 of player with Potion of Swiftness named "&b» Speed «" with lore "&4Speed Buff" to run [execute player command "/hurtig"]
  42. format slot 15 of player with Potion of Regeneration named "&6» Absorption «" with lore "&4Ekstra liv buff" to run [execute player command "/ekstraliv"]
  43. format slot 13 of player with Potion of Healing named "&c» Strenght «" with lore "&4Slå hårdere" to run [execute player command "/slaahardere"]
  44. format slot 22 of player with sugar named "&3Tilbage" with lore "&8<&m----" to run [execute player command "/menu"]
  45.  
  46. command /hurtig:
  47. permission: {@permission}
  48. trigger:
  49. apply speed 2 to player for 100000 seconds
  50.  
  51. command /slaahardere:
  52. permission: {@permission}
  53. trigger:
  54. apply strength 2 to player for 100000 seconds
  55. message "{@prefix} Du har fået strenght buff!"
  56.  
  57. command /ekstraliv:
  58. permission: {@permission}
  59. trigger:
  60. apply absorption 2 to player for 100000 seconds
  61. message "{@prefix} du har fået absorption buff!"
  62. command /stick:
  63. trigger:
  64. if player has permission "{@permission}":
  65. give player a stick of knockback 5 named "4&lVAGTSTAV"
  66. else:
  67. message "Du har ikke adgang til den magiske pind!"
  68. on damage:
  69. if victim is a player:
  70. if attacker is a player:
  71. attacker is holding a stick named "4&lVAGTSTAV":
  72. if attacker has permission "{@permission}":
  73. send victim title "&cADVARSEL" with subtitle "&cGå venligtst væk fra %attacker%!" for 3 seconds
  74. apply potion of blindness of tier 1 to the victim for 3 seconds
  75. on sign change:
  76. line 1 is "vs"
  77. line 2 is "c"
  78. if player has permission "*":
  79. message "&3Du har lavet vagtshop skilt!"
  80. set 1st line to "&3VagtShop"
  81. set 2nd line to "&6I C"
  82. else:
  83. delete event-block
  84. give player a sign
  85. message "&3Du har ikke adgang til at lave en vagtshop!"
  86.  
  87. on rightclick on sign:
  88. 1st line of clicked block is "&3VagtShop"
  89. 2nd line of clicked block is "&6I C"
  90. if player has permission "{@permission}":
  91. if player is holding air:
  92. open chest with 3 rows named "&3Upgrade dit gear" to player
  93. wait 1 tick
  94. format slot 10 of player with gold helmet named "&6Køb en guld hjelm" with lore "&3Pris:&b 1000" to run [make player execute command "/armor helmet"]
  95. format slot 12 of player with iron chestplate named "&6Køb en chestplate" with lore "&3Pris:&b 1000" to run [make player execute command "/armor chestplate"]
  96. format slot 14 of player with iron leggings named "&6Køb en legging" with lore "&3Pris:&b 1000" to run [make player execute command "/armor leggings"]
  97. format slot 16 of player with iron boots named "&6Køb en boot" with lore "&3Pris:&b 1000" to run [make player execute command "/armor boots"]
  98. format slot 21 of player with iron sword named "&6Køb et sword" with lore "&3Pris: &b1000" to run [make player execute command "/armor sword"]
  99. format slot 23 of player with bow named "&6Køb en bow" with lore "&3Pris: 1000" to run [make player execute command "/armor bow"]
  100. if player is holding a gold helmet:
  101. open chest with 3 rows named "&3Upgrade din Guld Hjelm" to player
  102. wait 1 tick
  103. format slot 13 of player with gold helmet named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 0"]
  104. if player is holding a gold helmet of protection 1:
  105. open chest with 3 rows named "&3Upgrade din Guld Hjelm" to player
  106. wait 1 tick
  107. format slot 13 of player with gold helmet named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 1"]
  108. if player is holding a gold helmet of protection 2:
  109. open chest with 3 rows named "&3Upgrade din Guld Hjem" to player
  110. wait 1 tick
  111. format slot 13 of player with gold helmet named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 2"]
  112. if player is holding a gold helmet of protection 3:
  113. open chest with 3 rows named "&3Upgrade din Guld Hjelm" to player
  114. wait 1 tick
  115. format slot 13 of player with gold helmet named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop hjelm 3"]
  116. if player is holding a iron chestplate:
  117. open chest with 3 rows named "&3Upgrade din iron chestplate" to player
  118. wait 1 tick
  119. format slot 13 of player with iron chestplate named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 0"]
  120. if player is holding a iron chestplate of protection 1:
  121. open chest with 3 rows named "&3Upgrade din iron chestplate" to player
  122. wait 1 tick
  123. format slot 13 of player with iron chestplate named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 1"]
  124. if player is holding a iron chestplate of protection 2:
  125. open chest with 3 rows named "&3Upgrade din iron chestplate" to player
  126. wait 1 tick
  127. format slot 13 of player with iron chestplate named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 2"]
  128. if player is holding a iron chestplate of protection 3:
  129. open chest with 3 rows named "&3Upgrade din iron chestplate" to player
  130. wait 1 tick
  131. format slot 13 of player with iron chestplate named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop chestplate 3"]
  132. if player is holding a iron leggings:
  133. open chest with 3 rows named "&3Upgrade din iron leggings" to player
  134. wait 1 tick
  135. format slot 13 of player with iron leggings named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 0"]
  136. if player is holding a iron leggings of protection 1:
  137. open chest with 3 rows named "&3Upgrade din iron leggings" to player
  138. wait 1 tick
  139. format slot 13 of player with iron leggings named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 1"]
  140. if player is holding a iron leggings of protection 2:
  141. open chest with 3 rows named "&3Upgrade din iron leggings" to player
  142. wait 1 tick
  143. format slot 13 of player with iron leggings named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 2"]
  144. if player is holding a iron leggings of protection 3:
  145. open chest with 3 rows named "&3Upgrade din iron leggings" to player
  146. wait 1 tick
  147. format slot 13 of player with iron leggings named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop leggings 3"]
  148. if player is holding a iron boots:
  149. open chest with 3 rows named "&3Upgrade din iron boots" to player
  150. wait 1 tick
  151. format slot 13 of player with iron boots named "&3Protection 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 0"]
  152. if player is holding a iron boots of protection 1:
  153. open chest with 3 rows named "&3Upgrade din iron boots" to player
  154. wait 1 tick
  155. format slot 13 of player with iron boots named "&3Protection 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 1"]
  156. if player is holding a iron boots of protection 2:
  157. open chest with 3 rows named "&3Upgrade din iron boots" to player
  158. wait 1 tick
  159. format slot 13 of player with iron boots named "&3Protection 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 2"]
  160. if player is holding a iron boots of protection 3:
  161. open chest with 3 rows named "&3Upgrade din iron boots" to player
  162. wait 1 tick
  163. format slot 13 of player with iron boots named "&3Protection 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop boots 3"]
  164. if player is holding a iron sword:
  165. open chest with 3 rows named "&3Upgrade din iron sword" to player
  166. wait 1 tick
  167. format slot 13 of player with iron sword named "&3Sharpness 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 0"]
  168. if player is holding a iron sword of sharpness 1:
  169. open chest with 3 rows named "&3Upgrade din iron sword" to player
  170. wait 1 tick
  171. format slot 13 of player with iron sword named "&3Sharpness 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 1"]
  172. if player is holding a iron sword of sharpness 2:
  173. open chest with 3 rows named "&3Upgrade din iron sword" to player
  174. wait 1 tick
  175. format slot 13 of player with iron sword named "&3Sharpness 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 2"]
  176. if player is holding a iron sword of sharpness 3:
  177. open chest with 3 rows named "&3Upgrade din iron sword" to player
  178. wait 1 tick
  179. format slot 13 of player with iron sword named "&3Sharpness 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop sword 3"]
  180. if player is holding a bow:
  181. open chest with 3 rows named "&3Upgrade din bow" to player
  182. wait 1 tick
  183. format slot 13 of player with bow named "&3Power 1" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 0"]
  184. if player is holding a bow of power 1:
  185. open chest with 3 rows named "&3Upgrade din bow" to player
  186. wait 1 tick
  187. format slot 13 of player with bow named "&3Power 2" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 1"]
  188. if player is holding a bow of power 2:
  189. open chest with 3 rows named "&3Upgrade din bow" to player
  190. wait 1 tick
  191. format slot 13 of player with bow named "&3Power 3" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 2"]
  192. if player is holding a bow of power 3:
  193. open chest with 3 rows named "&3Upgrade din bow" to player
  194. wait 1 tick
  195. format slot 13 of player with bow named "&3Power 4" with lore "&bDet koster 1k!" to close then run [make player execute command "/vagtshop bow 3"]
  196. else:
  197. message "{@prefix} &3Du har ikke adgang til vagt shoppen!"
  198. command /armor [<text>]:
  199. permission: {@permission}
  200. trigger:
  201. if arg 1 is "helmet":
  202. if player's balance >= 1000:
  203. give player gold helmet named "&3VagtGear"
  204. remove 1000 from player's balance
  205. stop
  206. else:
  207. message "{@prefix} &3Du har ikke nok penge!"
  208. if arg 1 is "chestplate":
  209. if player's balance >= 1000:
  210. give player iron chestplate named "&3VagtGear"
  211. remove 1000 from player's balance
  212. stop
  213. else:
  214. message "{@prefix} &3Du har ikke nok penge!"
  215. if arg 1 is "leggings":
  216. if player's balance >= 1000:
  217. give player iron leggings named "&3VagtGear"
  218. remove 1000 from player's balance
  219. stop
  220. else:
  221. message "{@prefix} &3Du har ikke nok penge!"
  222. if arg 1 is "boots":
  223. if player's balance >= 1000:
  224. give player iron boots named "&3VagtGear"
  225. remove 1000 from player's balance
  226. stop
  227. else:
  228. message "{@prefix} &3Du har ikke nok penge!"
  229. if arg 1 is "sword":
  230. if player's balance >= 1000:
  231. give player iron sword named "&3VagtGear"
  232. remove 1000 from player's balance
  233. stop
  234. else:
  235. message "{@prefix} &3Du har ikke nok penge!"
  236. if arg 1 is "bow":
  237. if player's balance >= 1000:
  238. give player bow named "&3VagtGear"
  239. remove 1000 from player's balance
  240. stop
  241. else:
  242. message "{@prefix} &3Du har ikke nok penge!"
  243. command /vagtshop [<text>] [<text>]:
  244. permission: {@permission}
  245. trigger:
  246. if arg 1 is "hjelm":
  247. if arg 2 is "0":
  248. if player's balance >= 1000:
  249. remove gold helmet named "&3VagtGear" from player's inventory
  250. give player gold helmet of protection 1 named "&3VagtGear"
  251. remove 1000 from player's balance
  252. else:
  253. message "{@prefix} &3Du har ikke nok penge!"
  254. if arg 2 is "1":
  255. if player's balance >= 1000:
  256. remove gold helmet named "&3VagtGear" from player's inventory
  257. give player gold helmet of protection 2 named "&3VagtGear"
  258. remove 1000 from player's balance
  259. else:
  260. message "{@prefix} &3Du har ikke nok penge!"
  261. if arg 2 is "2":
  262. if player's balance >= 1000:
  263. remove gold helmet named "&3VagtGear" from player's inventory
  264. give player gold helmet of protection 3 named "&3VagtGear"
  265. remove 1000 from player's balance
  266. else:
  267. message "{@prefix} &3Du har ikke nok penge!"
  268. if arg 2 is "3":
  269. if player's balance >= 1000:
  270. remove gold helmet named "&3VagtGear" from player's inventory
  271. give player gold helmet of protection 4 named "&3VagtGear"
  272. remove 1000 from player's balance
  273. else:
  274. message "{@prefix} &3Du har ikke nok penge!"
  275. if arg 1 is "chestplate":
  276. if arg 2 is "0":
  277. if player's balance >= 1000:
  278. remove iron chestplate named "&3VagtGear" from player's inventory
  279. give player iron chestplate of protection 1 named "&3VagtGear"
  280. remove 1000 from player's balance
  281. else:
  282. message "{@prefix} &3Du har ikke nok penge!"
  283. if arg 2 is "1":
  284. if player's balance >= 1000:
  285. remove iron chestplate named "&3VagtGear" from player's inventory
  286. give player iron chestplate of protection 2 named "&3VagtGear"
  287. remove 1000 from player's balance
  288. else:
  289. message "{@prefix} &3Du har ikke nok penge!"
  290. if arg 2 is "2":
  291. if player's balance >= 1000:
  292. remove iron chestplate named "&3VagtGear" from player's inventory
  293. give player iron chestplate of protection 3 named "&3VagtGear"
  294. remove 1000 from player's balance
  295. else:
  296. message "{@prefix} &3Du har ikke nok penge!"
  297. if arg 2 is "3":
  298. if player's balance >= 1000:
  299. remove iron chestplate named "&3VagtGear" from player's inventory
  300. give player iron chestplate of protection 4 named "&3VagtGear"
  301. remove 1000 from player's balance
  302. else:
  303. message "{@prefix} &3Du har ikke nok penge!"
  304. if arg 1 is "leggings":
  305. if arg 2 is "0":
  306. if player's balance >= 1000:
  307. remove iron leggings named "&3VagtGear" from player's inventory
  308. give player iron leggings of protection 1 named "&3VagtGear"
  309. remove 1000 from player's balance
  310. else:
  311. message "{@prefix} &3Du har ikke nok penge!"
  312. if arg 2 is "1":
  313. if player's balance >= 1000:
  314. remove iron leggings named "&3VagtGear" from player's inventory
  315. give player iron leggings of protection 2 named "&3VagtGear"
  316. remove 1000 from player's balance
  317. else:
  318. message "{@prefix} &3Du har ikke nok penge!"
  319. if arg 2 is "2":
  320. if player's balance >= 1000:
  321. remove iron leggings named "&3VagtGear" from player's inventory
  322. give player iron leggings of protection 3 named "&3VagtGear"
  323. remove 1000 from player's balance
  324. else:
  325. message "{@prefix} &3Du har ikke nok penge!"
  326. if arg 2 is "3":
  327. if player's balance >= 1000:
  328. remove iron leggings named "&3VagtGear" from player's inventory
  329. give player iron leggings of protection 4 named "&3VagtGear"
  330. remove 1000 from player's balance
  331. else:
  332. message "{@prefix} &3Du har ikke nok penge!"
  333. if arg 1 is "boots":
  334. if arg 2 is "0":
  335. if player's balance >= 1000:
  336. remove iron boots named "&3VagtGear" from player's inventory
  337. give player iron boots of protection 1 named "&3VagtGear"
  338. remove 1000 from player's balance
  339. else:
  340. message "{@prefix} &3Du har ikke nok penge!"
  341. if arg 2 is "1":
  342. if player's balance >= 1000:
  343. remove iron boots named "&3VagtGear" from player's inventory
  344. give player iron boots of protection 2 named "&3VagtGear"
  345. remove 1000 from player's balance
  346. else:
  347. message "{@prefix} &3Du har ikke nok penge!"
  348. if arg 2 is "2":
  349. if player's balance >= 1000:
  350. remove iron boots named "&3VagtGear" from player's inventory
  351. give player iron boots of protection 3 named "&3VagtGear"
  352. remove 1000 from player's balance
  353. else:
  354. message "{@prefix} &3Du har ikke nok penge!"
  355. if arg 2 is "3":
  356. if player's balance >= 1000:
  357. remove iron boots named "&3VagtGear" from player's inventory
  358. give player iron boots of protection 4 named "&3VagtGear"
  359. remove 1000 from player's balance
  360. else:
  361. message "{@prefix} &3Du har ikke nok penge!"
  362. if arg 1 is "sword":
  363. if arg 2 is "0":
  364. if player's balance >= 1000:
  365. remove iron sword named "&3VagtGear" from player's inventory
  366. give player iron sword of sharpness 1 named "&3VagtGear"
  367. remove 1000 from player's balance
  368. else:
  369. message "{@prefix} &3Du har ikke nok penge!"
  370. if arg 2 is "1":
  371. if player's balance >= 1000:
  372. remove iron sword named "&3VagtGear" from player's inventory
  373. give player iron sword of sharpness 2 named "&3VagtGear"
  374. remove 1000 from player's balance
  375. else:
  376. message "{@prefix} &3Du har ikke nok penge!"
  377. if arg 2 is "2":
  378. if player's balance >= 1000:
  379. remove iron sword named "&3VagtGear" from player's inventory
  380. give player iron sword of sharpness 3 named "&3VagtGear"
  381. remove 1000 from player's balance
  382. else:
  383. message "{@prefix} &3Du har ikke nok penge!"
  384. if arg 2 is "3":
  385. if player's balance >= 1000:
  386. remove iron sword named "&3VagtGear" from player's inventory
  387. give player iron sword of sharpness 4 named "&3VagtGear"
  388. remove 1000 from player's balance
  389. else:
  390. message "{@prefix} &3Du har ikke nok penge!"
  391. if arg 1 is "bow":
  392. if arg 2 is "0":
  393. if player's balance >= 1000:
  394. remove bow named "&3VagtGear" from player's inventory
  395. give player bow of power 1 named "&3VagtGear"
  396. remove 1000 from player's balance
  397. else:
  398. message "{@prefix} &3Du har ikke nok penge!"
  399. if arg 2 is "1":
  400. if player's balance >= 1000:
  401. remove bow named "&3VagtGear" from player's inventory
  402. give player bow of power 2 named "&3VagtGear"
  403. remove 1000 from player's balance
  404. else:
  405. message "{@prefix} &3Du har ikke nok penge!"
  406. if arg 2 is "2":
  407. if player's balance >= 1000:
  408. remove bow named "&3VagtGear" from player's inventory
  409. give player bow of power 3 named "&3VagtGear"
  410. remove 1000 from player's balance
  411. else:
  412. message "{@prefix} &3Du har ikke nok penge!"
  413. if arg 2 is "3":
  414. if player's balance >= 1000:
  415. remove bow named "&3VagtGear" from player's inventory
  416. give player bow of power 4 named "&3VagtGear"
  417. remove 1000 from player's balance
  418. else:
  419. message "{@prefix} &3Du har ikke nok penge!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement