xDreamMaster

[Skrypt] Dodatki RPG

Dec 10th, 2015
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.95 KB | None | 0 0
  1. #-----------------------|
  2. # Zmienne |
  3. #-----------------------|
  4.  
  5. Variables:
  6. {perla.%player%} = 0
  7. {a.%player%} = 0
  8. {z.%player%} = 0
  9. {w.%player%} = 0
  10. {s.%player%} = 0
  11. {o.%player%} = 0
  12.  
  13. #-----------------------|
  14. # Komenda |
  15. #-----------------------|
  16.  
  17. command /zbroja [<text>] [<text>]:
  18. permission: zbroja.sk
  19. aliases: pd, d, dodatki, p
  20. trigger:
  21. if arg 1 is not set:
  22. execute player command "miecz"
  23. execute player command "luk 3"
  24. execute player command "czapka"
  25. execute player command "czolg"
  26. execute player command "spodnie"
  27. execute player command "buty"
  28. if arg 1 is "miecz":
  29. execute player command "excalibur"
  30. if arg 1 is "luk":
  31. execute player command "luk"
  32. if arg 1 is "czapka":
  33. execute player command "czapka"
  34. if arg 1 is "czolg" or "zbroja":
  35. execute player command "czolg"
  36. if arg 1 is "spodnie":
  37. execute player command "spodnie"
  38. if arg 1 is "buty" or "cloudboots":
  39. execute player command "sk reload cloudboots"
  40. if arg 1 is "reload":
  41. if arg 2 is "all":
  42. execute player command "sk reload excalibur"
  43. execute player command "sk reload luk"
  44. execute player command "sk reload czapka"
  45. execute player command "sk reload czolg"
  46. execute player command "sk reload spodnie"
  47. execute player command "sk reload cloudboots"
  48. execute player command "sk reload skok"
  49. send "&8[&aPeterson&cDodatki&8] &aPoprawnie Przeladowano"
  50. if arg 2 is "miecz":
  51. execute player command "sk reload excalibur"
  52. if arg 2 is "luk":
  53. execute player command "sk reload luk"
  54. if arg 2 is "czapka":
  55. execute player command "sk reload czapka"
  56. if arg 2 is "czolg" or "zbroja":
  57. execute player command "sk reload czolg"
  58. if arg 2 is "spodnie":
  59. execute player command "sk reload spodnie"
  60. if arg 2 is "buty" or "cloudboots":
  61. execute player command "sk reload cloudboots"
  62.  
  63.  
  64. #---------------|
  65. #Czapka Niewidka|
  66. #---------------|
  67.  
  68.  
  69.  
  70. every 1 second:
  71. loop all players:
  72. if helmet of loop-player is diamond helmet named "&a&lCzapka Niewidka":
  73. apply invisibility 10 to the loop-player for 1 seconds
  74. set {w.%loop-player%} to "1"
  75.  
  76. on script load:
  77. register new shaped recipe for 310 named "&a&lCzapka Niewidka" using diamond block, diamond block, diamond block, diamond block, 0, diamond block, 0, 0, 0
  78.  
  79. command /czapka:
  80. permission: set.sk
  81. trigger:
  82. execute console command "give %player% 310 1 name:&a&lCzapka_Niewidka"
  83. send "&8[&aPeterson&cDodatki&8] &aDostales &a&lCzapke Niewidke"
  84.  
  85.  
  86. #---------------|
  87. # Cloud Boots |
  88. #---------------|
  89.  
  90. every 1 second:
  91. loop all players:
  92. if boots of loop-player is diamond boots named "&9Cloud boots!":
  93. apply jump boost 5 to the loop-player for 1 seconds
  94.  
  95.  
  96. command /buty:
  97. permission: op
  98. trigger:
  99. give diamond boots of protection 8 named "&9Cloud boots!" to player
  100.  
  101. on damage:
  102. if boots of victim is diamond boots of protection 8 named "&9Cloud boots!":
  103. damage cause is fall
  104. set {_a} to location of victim
  105. spawn 20 of particle fireworks Spark offset by 1, 1, 1 at {_a}
  106. spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
  107. spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
  108. cancel event
  109.  
  110. on jump:
  111. if boots of player is diamond boots of protection 8 named "&9Cloud boots!":
  112. set {_a} to location of player
  113. spawn 20 of particle fireworks Spark offset by 1, 1, 1 at {_a}
  114. spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
  115. spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
  116.  
  117. on script load:
  118. register new shaped recipe for diamond boots of protection 8 named "&9Cloud boots!" using feather, air, feather, diamond block, air, diamond block, diamond block, air, diamond block
  119.  
  120.  
  121.  
  122. command /perla:
  123. permission: zbroja.sk
  124. trigger:
  125. execute console command "give %player% enderpearl 1 name:&aNieskonczona_&5&lPerla"
  126. send "&8[&aPeterson&cDodatki&8] &aDostales &5&lPerle" to player
  127. set {perla.%player%} to "1"
  128.  
  129. every second:
  130. loop all players:
  131. if tool of loop-player is ender pearl named "&aNieskonczona &5&lPerla":
  132. set {perla.%loop-player%} to "1"
  133.  
  134. on tool change:
  135. if {perla.%player%} is "1":
  136. set {perla.%player%} to "0"
  137.  
  138.  
  139.  
  140.  
  141. #-----------------------|
  142. # Slady |
  143. #-----------------------|
  144.  
  145. On shoot:
  146. trail projectile with particle red dust
  147.  
  148. on projectile hit:
  149. if projectile is enderpearl:
  150. spawn 150 of particle portal offset by 1, 1, 1 at location of shooter
  151. play raw sound "mob.endermen.death" at projectile with pitch 1 volume 10
  152.  
  153. #-----------------------|
  154. # Dzialanie |
  155. #-----------------------|
  156.  
  157.  
  158. on right click:
  159. if tool of player is bow named "&a&lLuk Szybkosci &6&lI":
  160. if player has arrow:
  161. shoot arrow
  162. remove 1 arrow from player
  163. damage tool of player by 1
  164. else:
  165. send "&8[&aPeterson&cDodatki&8] &cNie masz strzal"
  166. stop
  167. if tool of player is bow named "&a&lLuk Szybkosci &6&lII":
  168. shoot arrow
  169. delete event-arrow
  170. set {us.%player%} to true
  171. if tool of player is bow named "&a&lLuk Szybkosci &6&lIII":
  172. shoot arrow
  173. create an explosion of force 2 at location of projectile
  174. delete event-arrow
  175. set {luk.%player%} to true
  176. if tool of player is bow named "&a&lLuk Szybkosci &6&lIV":
  177. shoot arrow at speed 4
  178. create an explosion of force 3 at location of projectile
  179. delete event-arrow
  180. set {luk.%player%} to true
  181. if tool of player is bow named "&a&lLuk Szybkosci &6&lV":
  182. set {luk.%player%} to true
  183. set {o.%player%} to true
  184. shoot arrow at speed 5
  185. create an explosion of force 4 at location of projectile
  186. delete event-arrow
  187.  
  188. On left click:
  189. if tool of player is bow named "&a&lLuk Szybkosci &6&lIII":
  190. if {z.%player%} is "0":
  191. apply slowness 50 to player for 60 second
  192. set {z.%player%} to "1"
  193.  
  194. On right click:
  195. if tool of player is bow named "&a&lLuk Szybkosci &6&lIII":
  196. if {z.%player%} is "1":
  197. wait second
  198. remove slowness from the player
  199. set {z.%player%} to "0"
  200.  
  201.  
  202.  
  203. #-----------------------|
  204. # Komendy |
  205. #-----------------------|
  206.  
  207. command /u:
  208. permission: luk.sk
  209. trigger:
  210. give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" to player
  211. give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lII" to player
  212. give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIII" to player
  213. give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lV" to player
  214.  
  215. command /luk [<text>]:
  216. permission: luk.sk
  217. trigger:
  218. if arg 1 is not set:
  219. execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lI"
  220. if arg 1 is "1":
  221. execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lI"
  222. if arg 1 is "2":
  223. execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lII"
  224. if arg 1 is "3":
  225. execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lIII"
  226. if arg 1 is "4":
  227. execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lIV"
  228. if arg 1 is "5":
  229. execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lV"
  230.  
  231. command /zoom:
  232. trigger:
  233. set {z.%player%} to "0"
  234.  
  235.  
  236.  
  237. #-----------------------|
  238. # Efekty |
  239. #-----------------------|
  240.  
  241. on projectile hit:
  242. if {luk.%shooter%} is true:
  243. if projectile is arrow:
  244. delete event-arrow
  245.  
  246. on projectile hit:
  247. if {us.%shooter%} is true:
  248. if projectile is arrow:
  249. delete event-arrow
  250.  
  251. on damage:
  252. if damage cause is projectile:
  253. if {o.%shooter%} is true:
  254. if projectile is arrow:
  255. apply poison 2 to victim for 5 second
  256. delete event-arrow
  257.  
  258.  
  259. #-----------------------|
  260. # Zmienne |
  261. #-----------------------|
  262.  
  263.  
  264. on tool change:
  265. set {luk} to false
  266. set {us} to false
  267.  
  268.  
  269.  
  270. #-----------------------|
  271. # Craftingi |
  272. #-----------------------|
  273.  
  274. on script load:
  275. register new shaped recipe for bow named "&a&lLuk Szybkosci &6&lI" using diamond block, diamond block, diamond block, diamond block, bow, diamond block, diamond block, diamond block, diamond block
  276.  
  277. on script load:
  278. register new shaped recipe for book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" using emerald block, emerald block, emerald block, emerald block, bow, emerald block, emerald block, emerald block, emerald block
  279.  
  280. #-----------------------|
  281. # Ulepszenia |
  282. #-----------------------|
  283.  
  284. #Poziom 1 - 2
  285.  
  286. on right click:
  287. if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI":
  288. if player has bow named "&a&lLuk Szybkosci &6&lI":
  289. remove bow named "&a&lLuk Szybkosci &6&lI" from player
  290. give player bow named "&a&lLuk Szybkosci &6&lII"
  291. remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" from player
  292.  
  293. #Poziom 2 - 3
  294.  
  295. on right click:
  296. if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lII":
  297. if player has bow named "&a&lLuk Szybkosci &6&lII":
  298. remove bow named "&a&lLuk Szybkosci &6&lII" from player
  299. give player bow named "&a&lLuk Szybkosci &6&lIII"
  300. remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lII" from player
  301. else:
  302. send "&8[&aPeterson&cDodatki&8] &cNie Masz &a&lLuku Szybkosci &6&lII"
  303.  
  304. #Poziom 3 - 4
  305.  
  306. on right click:
  307. if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIII":
  308. if player has bow named "&a&lLuk Szybkosci &6&lIII":
  309. remove bow named "&a&lLuk Szybkosci &6&lIII" from player
  310. give player bow named "&a&lLuk Szybkosci &6&lIV"
  311. remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIII" from player
  312.  
  313. #Poziom 4 - 5
  314.  
  315. on right click:
  316. if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIV":
  317. if player has bow named "&a&lLuk Szybkosci &6&lIV":
  318. remove bow named "&a&lLuk Szybkosci &6&lIV" from player
  319. give player bow named "&a&lLuk Szybkosci &6&lV"
  320. remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIV" from player
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328. on right click:
  329. if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI":
  330. if player has bow named "&a&lLuk Szybkosci &6&lI":
  331. remove bow named "&a&lLuk Szybkosci &6&lI" from player
  332. give player bow named "&a&lLuk Szybkosci &6&lII"
  333. remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" from player
  334.  
  335. command /goblin:
  336. permission: goblin.sk
  337. trigger:
  338. give player diamond helmet named "&a&lKaptor Goblina"
  339. give player diamond chestplate named "&a&lKlata Goblina"
  340. give player diamond boots named "&a&lButy Goblina"
  341.  
  342.  
  343. On Damage:
  344. if chestplate of victim is diamond chestplate named "&a&lKlata Goblina":
  345. push attacker horizontally backwards at speed 10
  346. apply poison 1 to attacker for 5 second
  347.  
  348.  
  349. #--------------------
  350. # Buty Goblina |
  351. #--------------------
  352.  
  353. On Damage:
  354. if boots of victim is diamond boots named "&a&lButy Goblina":
  355. if damage cause is fall:
  356. set {w.%victim%} to "1"
  357. cancel event
  358. create an explosion of force 2 at location of victim
  359. push victim downwards at speed 1
  360. spawn 15 of particle smoke offset by 1, 1, 1 at location of victim
  361. wait 3 second
  362. set {w.%victim%} to "0"
  363.  
  364.  
  365. On Damage:
  366. if {w.%victim%} is "1":
  367. if damage type is block explosion or entity explosion:
  368. cancel event
  369.  
  370.  
  371. On script load:
  372. loop all players:
  373. set {s.%loop-player%} to "0"
  374. set {w.%loop-player%} to "0"
  375.  
  376. on script load:
  377. register new shaped recipe for diamond helmet named "&a&lKaptor Goblina" using 57, 57, 57, 57, 367, 57, 0, 0, 0
  378.  
  379. on script load:
  380. register new shaped recipe for diamond chestplate named "&a&lKlata Goblina" using 57, 367, 57, 57, 57, 57, 57, 57, 57
  381.  
  382. on script load:
  383. register new shaped recipe for diamond leggings named "&a&lSpodnie Goblina" using 57, 57, 57, 57, 367, 57, 57, 0, 57
  384.  
  385. on script load:
  386. register new shaped recipe for diamond boots named "&a&lButy Goblina" using 368, 368, 368, 368, 368, 368, 368, 368, 368
  387.  
  388. on script load:
  389. register new shaped recipe for ender pearl named "&a&lMiecz &8&lStrachu" using 368, 368, 368, 368, 368, 368, 368, 368, 368
  390.  
  391. #--------------------
  392. # Miecz Strachu |
  393. #--------------------
  394.  
  395. On Damage:
  396. if tool of attacker is diamond sword named "&a&lMiecz &8&lStrachu":
  397. apply nausea 1 to the victim for 1 seconds
  398. apply blindness 3 to the victim for 1 seconds
  399.  
  400. command /ms:
  401. permission: miecz2.sk
  402. trigger:
  403. give diamond sword named "&a&lMiecz &8&lStrachu" to player
  404.  
  405. Every second:
  406. loop all players:
  407. if helmet of loop-player is diamond helmet named "&a&lKaptor Goblina":
  408. apply water breathing
  409.  
  410.  
  411. every 1 second:
  412. loop all players:
  413. if leggings of loop-player is diamond leggings named "&a&lSpodnie Szybkosci &6&lI":
  414. apply speed 2 to the loop-player for 1 seconds
  415.  
  416.  
  417. on script load:
  418. register new shaped recipe for 312 named "&a&lSpodnie Szybkosci &6&lI" using 57, 57, 57, 57, 0, 57, 57, 0, 57
  419.  
  420. command /spodnie:
  421. permission: set.sk
  422. trigger:
  423. execute console command "give %player% 312 1 name:&a&lSpodnie_Szybkosci_&6&lI"
  424. send "&8[&aPeterson&cDodatki&8] &aDostales &a&lSpodnie Szybkosci"
Advertisement
Add Comment
Please, Sign In to add comment