Advertisement
Guest User

KitKaydetme

a guest
Oct 28th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.08 KB | None | 0 0
  1. options:
  2. prefix: &8[&3SERVER&8]&r
  3. noperm: &cUzgunum, Yetkiniz yok!
  4. # Kit Ayarlama Yeri Ayarlari Ayarlamalari Yukaridan ve Bu Kisimdan Yapabilirsin Diger Yerlere Bilgin Yoksa Dokunmani Onermem.
  5. jointogive: true
  6. deathtogive: true
  7. sword.slot: 0
  8. fns.slot: 1
  9. fishingrod.slot: 2
  10. bow.slot: 3
  11. helmet.mat: chain
  12. chestplate.mat: iron
  13. leggings.mat: iron
  14. boots.mat: iron
  15. sword.mat: iron
  16. sword.name: &7Katil Kilici
  17. sword.lorename: &6Git ve birilerini oldur!
  18. fns.name: &cYa&6ni&eci
  19. fns.lorename: &6Lutfen kendini yakma
  20. fishingrod.name: &9Dusman kovucu
  21. fishingrod.lorename: &6Kendini itmeye calis
  22. bow.name: &4AWP | Dragon Lore
  23. bow.lorename: &6360 no scope
  24. arrow.number: 15
  25. arrow.number.save: 16
  26. arrow.slot: 8
  27. arrow.name: &2Green Arrow
  28. arrow.lorename: &6Hacker yok edici
  29.  
  30. on rightclick on sign:
  31. line 3 of the clicked block is "&8[&eKit Ayarla&8]":
  32. make player execute command "/starterkit save"
  33. stop
  34. line 3 of the clicked block is "&8[&eKit Sıfırla&8]":
  35. make player execute command "/starterkit unsave"
  36. stop
  37. line 3 of the clicked block is "&8[&eKit Al&8]":
  38. execute console command "/strtdsjfsdfs %player%"
  39. stop
  40.  
  41. on join:
  42. if {@jointogive} is true:
  43. wait 1 seconds
  44. if {starterkit.saved.%player%} is not set:
  45. set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  46. set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  47. set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  48. set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
  49. set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  50. equip player with {@helmet.mat} helmet
  51. equip player with {@chestplate.mat} chestplate
  52. equip player with {@leggings.mat} leggings
  53. equip player with {@boots.mat} boots
  54. stop
  55. else if {starterkit.saved.%player%} is true:
  56. equip player with {@helmet.mat} helmet
  57. equip player with {@chestplate.mat} chestplate
  58. equip player with {@leggings.mat} leggings
  59. equip player with {@boots.mat} boots
  60. set {_slot} to 0
  61. loop 36 times:
  62. set slot {_slot} of player to {kitinv.%{_slot}%.%player%}
  63. add 1 to {_slot}
  64. set slot 0 of player to {kitinv.slotzero.%player%}
  65. stop
  66. else:
  67. wait 5 tick
  68. clear the player's inventory
  69. heal the player
  70. stop
  71.  
  72. on death of player:
  73. if {@deathtogive} is true:
  74. clear the victim's inventory
  75. wait 5 tick seconds
  76. heal the victim
  77. if {starterkit.saved.%victim%} is not set:
  78. set slot {@sword.slot} of victim to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  79. set slot {@fns.slot} of victim to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  80. set slot {@fishingrod.slot} of victim to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  81. set slot {@bow.slot} of victim to bow named "{@bow.name}" with lore "{@bow.lorename}"
  82. set slot {@arrow.slot} of victim to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  83. equip victim with {@helmet.mat} helmet
  84. equip victim with {@chestplate.mat} chestplate
  85. equip victim with {@leggings.mat} leggings
  86. equip victim with {@boots.mat} boots
  87. stop
  88. else if {starterkit.saved.%victim%} is set:
  89. equip victim with {@helmet.mat} helmet
  90. equip victim with {@chestplate.mat} chestplate
  91. equip victim with {@leggings.mat} leggings
  92. equip victim with {@boots.mat} boots
  93. set {_slot} to 0
  94. loop 36 times:
  95. set slot {_slot} of player to {kitinv.%{_slot}%.%victim%}
  96. add 1 to {_slot}
  97. set slot 0 of victim to {kitinv.slotzero.%victim%}
  98. stop
  99. else if {@deathtogive} is false:
  100. wait 5 tick
  101. clear the victim's inventory
  102. heal the victim
  103. stop
  104.  
  105. command /starterkit [<text>] [<player>]:
  106. trigger:
  107. if arg 1 is not "load" or "save" or "unsave" or "unsaveall":
  108. send "{@prefix} &cYou did something wrong&8."
  109. stop
  110. if arg 1 is not set:
  111. send "{@prefix} &6Starterkit Commands"
  112. if player has the permission "starterkit.give":
  113. send "{@prefix} &7/starterkit load &8(&7<player>&8)"
  114. send "{@prefix} &7/starterkit unsaveall"
  115. send "{@prefix} &7/starterkit save"
  116. send "{@prefix} &7/starterkit unsave"
  117. stop
  118. if arg 1 is "load":
  119. if player has the permission "starterkit.give":
  120. if arg 2 is not set:
  121. if {kitinv.saved.%player%} is not set:
  122. clear the player's inventory
  123. message "{@prefix} &2Your starter kit succesfully loaded&8." to player
  124. set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  125. set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  126. set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  127. set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
  128. set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  129. equip player with {@helmet.mat} helmet
  130. equip player with {@chestplate.mat} chestplate
  131. equip player with {@leggings.mat} leggings
  132. equip player with {@boots.mat} boots
  133. stop
  134. else if {kitinv.saved.%player%} is set:
  135. message "{@prefix} &2Your starter kit succesfully loaded&8." to player
  136. clear the player's inventory
  137. equip player with {@helmet.mat} helmet
  138. equip player with {@chestplate.mat} chestplate
  139. equip player with {@leggings.mat} leggings
  140. equip player with {@boots.mat} boots
  141. set {_slot} to 0
  142. loop 36 times:
  143. set slot {_slot} of player to {kitinv.%{_slot}%.%player%}
  144. add 1 to {_slot}
  145. set slot 0 of player to {kitinv.slotzero.%player%}
  146. stop
  147. if arg 2 is set:
  148. if {kitinv.saved.%arg 2%} is not set:
  149. clear the arg 2's inventory
  150. message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
  151. message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
  152. set slot {@sword.slot} of arg 2 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  153. set slot {@fns.slot} of arg 2 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  154. set slot {@fishingrod.slot} of arg 2 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  155. set slot {@bow.slot} of arg 2 to bow named "{@bow.name}" with lore "{@bow.lorename}"
  156. set slot {@arrow.slot} of arg 2 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  157. equip arg 2 with {@helmet.mat} helmet
  158. equip arg 2 with {@chestplate.mat} chestplate
  159. equip arg 2 with {@leggings.mat} leggings
  160. equip arg 2 with {@boots.mat} boots
  161. stop
  162. else if {kitinv.saved.%arg 2%} is true:
  163. message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
  164. message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
  165. clear the arg 2's inventory
  166. equip arg 2 with {@helmet.mat} helmet
  167. equip arg 2 with {@chestplate.mat} chestplate
  168. equip arg 2 with {@leggings.mat} leggings
  169. equip arg 2 with {@boots.mat} boots
  170. set {_slot} to 0
  171. loop 36 times:
  172. set slot {_slot} of arg 2 to {kitinv.%{_slot}%.%arg 2%}
  173. add 1 to {_slot}
  174. set slot 0 of arg 2 to {kitinv.slotzero.%arg 2%}
  175. stop
  176. else:
  177. send "{@prefix} {@noperm}"
  178. if arg 1 is "save":
  179. if arg 2 is not set:
  180. if {save.available.%player%} is true:
  181. if player has 1 {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}":
  182. if player has 1 flint and steel named "{@fns.name}" with lore "{@fns.lorename}":
  183. if player has 1 bow named "{@bow.name}" with lore "{@bow.lorename}":
  184. if player has {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}":
  185. set {_kitinvslot} to 0
  186. loop 36 times:
  187. set {kitinv.%{_slot}%.%player%} to slot {_slot} of player
  188. add 1 to {_slot}
  189. set {kitinv.saved.%player%} to true
  190. set {kitinv.slotzero.%player%} to slot 0 of player
  191. wait 5 ticks
  192. send "{@prefix} &cLoading..."
  193. wait 10 ticks
  194. send "{@prefix} &eYou've successfully saved your inventory!"
  195. stop
  196. else:
  197. send "{@prefix} &cYou cannot save your inventory with unlisted items!"
  198. else:
  199. send "{@prefix} &cYou cannot save your inventory with unlisted items!"
  200. else:
  201. send "{@prefix} &cYou cannot save your inventory with unlisted items!"
  202. else:
  203. send "{@prefix} &cYou cannot save your inventory with unlisted items!"
  204. else:
  205. send "{@prefix} &cYou cannot save your inventory in unavailable!"
  206. if arg 1 is "unsave":
  207. delete {kitinv.saved.%player%}
  208. wait 5 ticks
  209. send "{@prefix} &cLoading..."
  210. wait 10 ticks
  211. clear the player's inventory
  212. set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  213. set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  214. set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  215. set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
  216. set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  217. equip player with {@helmet.mat} helmet
  218. equip player with {@chestplate.mat} chestplate
  219. equip player with {@leggings.mat} leggings
  220. equip player with {@boots.mat} boots
  221. send "{@prefix} &eYou've successfully unsaved your inventory!"
  222. stop
  223. if arg 1 is "unsaveall":
  224. if player has the permission "strtrkt.give":
  225. loop all players:
  226. delete {kitinv.saved.%loop-player%}
  227. wait 5 ticks
  228. send "{@prefix} &cLoading..."
  229. wait 10 ticks
  230. loop all players:
  231. clear the loop-player's inventory
  232. set slot {@sword.slot} of loop-player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  233. set slot {@fns.slot} of loop-player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  234. set slot {@fishingrod.slot} of loop-player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  235. set slot {@bow.slot} of loop-player to bow named "{@bow.name}" with lore "{@bow.lorename}"
  236. set slot {@arrow.slot} of loop-player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  237. equip loop-player with {@helmet.mat} helmet
  238. equip loop-player with {@chestplate.mat} chestplate
  239. equip loop-player with {@leggings.mat} leggings
  240. equip loop-player with {@boots.mat} boots
  241. send "{@prefix} &eYou've successfully unsaved your inventory!"
  242. stop
  243. else:
  244. send "{@prefix} {@noperm}"
  245.  
  246. command /strtdsjfsdfs [<player>]:
  247. permission: console.yetki
  248. executable by: console
  249. trigger:
  250. if {kitinv.saved.%arg 1%} is not set:
  251. clear the arg 1's inventory
  252. message "{@prefix} &2%arg 1%'s starter kit succesfully loaded&8." to player
  253. message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
  254. set slot {@sword.slot} of arg 1 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
  255. set slot {@fns.slot} of arg 1 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
  256. set slot {@fishingrod.slot} of arg 1 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
  257. set slot {@bow.slot} of arg 1 to bow named "{@bow.name}" with lore "{@bow.lorename}"
  258. set slot {@arrow.slot} of arg 1 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
  259. equip arg 1 with {@helmet.mat} helmet
  260. equip arg 1 with {@chestplate.mat} chestplate
  261. equip arg 1 with {@leggings.mat} leggings
  262. equip arg 1 with {@boots.mat} boots
  263. stop
  264. else if {kitinv.saved.%arg 1%} is true:
  265. message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
  266. clear the arg 1's inventory
  267. equip arg 1 with {@helmet.mat} helmet
  268. equip arg 1 with {@chestplate.mat} chestplate
  269. equip arg 1 with {@leggings.mat} leggings
  270. equip arg 1 with {@boots.mat} boots
  271. set {_slot} to 0
  272. loop 36 times:
  273. set slot {_slot} of arg 1 to {kitinv.%{_slot}%.%arg 1%}
  274. add 1 to {_slot}
  275. set slot 0 of arg 1 to {kitinv.slotzero.%arg 1%}
  276. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement