Guest User

Strzelec

a guest
Feb 15th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.82 KB | None | 0 0
  1. variables:
  2. {strzelec.kasa} = true
  3. {strzelec.item} = true
  4. {mob::1} = zombie
  5. {mob::2} = creeper
  6. options:
  7. # Ogolne
  8. tag: &4[ &6Strzelec&4 ]
  9. msg.noperm: &cBrak Uprawnien
  10.  
  11. # Nazwy strzal
  12.  
  13. podpalajaca: &6Podpalajaca
  14. wybuchajaca: &fWybuchajaca
  15. normalna: &9Normalna
  16. trujaca: &5Trujaca
  17. piorun: &1Piorun
  18. spowalniajaca: &7Spowalniajaca
  19. oszalamiajaca: &aOszalamiajaca
  20. teleportujaca: &eTeleportujaca
  21. mob: &2Mob
  22. wyrzucajaca: &cWyrzucajaca
  23.  
  24. # Czas efektow
  25.  
  26. czas.trutki: 10
  27. czas.oszolomienia: 10
  28. czas.spowlonienia: 10
  29. czas.podpalania: 10
  30.  
  31. # Kasa za uzycie
  32.  
  33. koszt.podpalajaca: 10
  34. koszt.oszalamiajaca: 10
  35. koszt.trujaca: 10
  36. koszt.wybuchajaca: 10
  37. koszt.spowalniajaca: 10
  38. koszt.teleportujaca: 10
  39. koszt.mob: 10
  40. koszt.wzryucajaca: 10
  41.  
  42.  
  43. command /strzelec [<text>] [<text>]:
  44. trigger:
  45. if arg 1 isn't set:
  46. if player doesn't have permission "strzelec.lista":
  47. stop
  48. send "&4--------------------------------------------"
  49. send " &2&LLista strzal:"
  50. send " ---------------"
  51. send "&6Podpalajaca&f, &fWybuchajaca&f, &9Normalna&f, &5Trujaca&f,"
  52. send "&7Spowalniajaca&f, &aOszalamiajaca&f, &eTeleportujaca"
  53. send "&2Mob&f, &eWyrzucajaca"
  54. send "&4--------------------------------------------"
  55. if arg 1 is "reload":
  56. if player doesn't have permission "strzelec.reload":
  57. send "{@msg.noperm}"
  58. stop
  59. execute player command "sk reload %script%"
  60. send "{@tag} &cPrzeladowano"
  61. if arg 1 is "kasa":
  62. if arg 2 is "on":
  63. if player has permission "strzelec.kasa":
  64. set {strzelec.kasa} to true
  65. send "{@tag} &7Kasa za strzaly &awlaczona"
  66. stop
  67. if arg 2 is "off":
  68. if player has permission "checkblock":
  69. set {strzelec.kasa} to false
  70. send "{@tag} &7Kasa za strzaly &cwylaczony"
  71. stop
  72. else:
  73. send "{@msg.noperm}"
  74. stop
  75. else:
  76. send "{@tag} &c/strzelec <&fon/off&c>"
  77. stop
  78.  
  79.  
  80. on leftclick with bow:
  81. {podpalajaca.%name of player%} is not set:
  82. set {podpalajaca.%name of player%} to 1
  83. {mob.%name of player%} is not set:
  84. set {mob.%name of player%} to 1
  85. {wybuchajaca.%name of player%} is not set:
  86. set {wybuchajaca.%player%} to 1
  87. {teleportujaca.%name of player%} is not set:
  88. set {trujaca.%name of player%} to 1
  89. {spowalniajaca.%name of player%} is not set:
  90. set {spowalniajaca.%name of player%} to 1
  91. {oszalamiajaca.%name of player%} is not set:
  92. set {oszalamiajaca.%name of player%} to 1
  93. {piorun.%name of player%} is not set:
  94. set {piorun.%name of player%} to 1
  95. {teleportujaca.%name of player%} is not set:
  96. set {teleportujaca.%name of player%} to 1
  97. {wyrzucajaca.%name of player%} is not set:
  98. set {wyrzucajaca.%name of player%} to 1
  99. {thearcher.%name of player%.strzala::typ} is not set:
  100. set {thearcher.%name of player%.strzala::typ} to 0
  101. add 1 to {thearcher.%name of player%.strzala::typ}
  102. {thearcher.%name of player%.strzala::typ} is 0:
  103. add 1 to {thearcher.%name of player%.strzala::typ}
  104. {thearcher.%name of player%.strzala::typ} is 1:
  105. if player doesn't have permission "strzelec.podpalajaca":
  106. stop
  107. set {thearcher.%name of player%.strzala::typ} to 6
  108. if {podpalajaca.%name of player%} is 1:
  109. send "{@tag} &f- &aWybrales strzale: &1< {@podpalajaca} &1>"
  110. stop
  111. add 1 to {thearcher.%name of player%.strzala::typ}
  112. {thearcher.%name of player%.strzala::typ} is 2:
  113. if player doesn't have permission "strzelec.wybuchajaca":
  114. set {thearcher.%name of player%.strzala::typ} to 6
  115. stop
  116. if {wybuchajaca.%player%} is 1:
  117. send "{@tag} &f- &aWybrales strzale: &1< {@wybuchajaca} &1>"
  118. stop
  119. add 1 to {thearcher.%name of player%.strzala::typ}
  120. {thearcher.%name of player%.strzala::typ} is 3:
  121. if player doesn't have permission "strzelec.trujaca":
  122. set {thearcher.%name of player%.strzala::typ} to 6
  123. stop
  124. if {trujaca.%name of player%} is 1:
  125. send "{@tag} &f- &aWybrales strzale: &1< {@trujaca} &1>"
  126. stop
  127. add 1 to {thearcher.%name of player%.strzala::typ}
  128. {thearcher.%name of player%.strzala::typ} is 4:
  129. if player doesn't have permission "thearcher.piorun":
  130. set {thearcher.%name of player%.strzala::typ} to 6
  131. stop
  132. if {piorun.%name of player%} is 1:
  133. send "{@tag} &f- &aWybrales strzale: &1< {@piorun} &1>"
  134. stop
  135. add 1 to {thearcher.%name of player%.strzala::typ}
  136. {thearcher.%name of player%.strzala::typ} is 5:
  137. if player doesn't have permission "strzelec.spowalniajaca":
  138. set {thearcher.%name of player%.strzala::typ} to 6
  139. stop
  140. if {spowalniajaca.%name of player%} is 1:
  141. send "{@tag} &f- &aWybrales strzale: &1< {@spowalniajaca} &1>"
  142. stop
  143. add 1 to {thearcher.%name of player%.strzala::typ}
  144. {thearcher.%name of player%.strzala::typ} is 6:
  145. if player doesn't have permission "strzelec.oszalamiajaca":
  146. set {thearcher.%name of player%.strzala::typ} to 6
  147. stop
  148. if {oszalamiajaca.%name of player%} is 1:
  149. send "{@tag} &f- &aWybrales strzale: &1< {@oszalamiajaca} &1>"
  150. stop
  151. add 1 to {thearcher.%name of player%.strzala::typ}
  152. {thearcher.%name of player%.strzala::typ} is 7:
  153. if player doesn't have permission "strzelec.teleportujaca":
  154. set {thearcher.%name of player%.strzala::typ} to 6
  155. stop
  156. if {teleportujaca.%name of player%} is 1:
  157. send "{@tag} &f- &aWybrales strzale: &1< {@teleportujaca} &1>"
  158. stop
  159. {thearcher.%name of player%.strzala::typ} is 8:
  160. if player doesn't have permission "strzelec.mob":
  161. set {thearcher.%name of player%.strzala::typ} to 6
  162. stop
  163. if {mob.%name of player%} is 1:
  164. send "{@tag} &f- &aWybrales strzale: &1< {@mob} &1>"
  165. stop
  166. add 1 to {thearcher.%name of player%.strzala::typ}
  167. {thearcher.%name of player%.strzala::typ} is 9:
  168. if player doesn't have permission "strzelec.wyrzucajaca":
  169. set {thearcher.%name of player%.strzala::typ} to 6
  170. stop
  171. if {wyrzucajaca.%name of player%} is 1:
  172. send "{@tag} &f- &aWybrales strzale: &1< {@wyrzucajaca} &1>"
  173. stop
  174. add 1 to {thearcher.%name of player%.strzala::typ}
  175. else:
  176. send "{@tag} &f- &aWybrales strzale: &1< {@normalna} &1>"
  177. set {thearcher.%player%.strzala::typ} to 0
  178. on damage:
  179. projectile is arrow
  180. {thearcher.%victim%.strzala::typ} is 1:
  181. if {podpalajaca.%victim%} is 1:
  182. ignite the victim for {@czas.podpalania} seconds
  183. stop
  184. {thearcher.%victim%.strzala::typ} is 5:
  185. if {spowalniajaca.%victim%} is 1:
  186. apply slowness 3 to the victim for {@czas.spowlonienia} seconds
  187. stop
  188. {thearcher.%victim%.strzala::typ} is 6:
  189. if {oszalamiajaca.%victim%} is 1:
  190. apply Nausea of tier 10 to the victim for {@czas.oszolomienia} seconds
  191. apply Blindness 1 to the victim for {@czas.oszolomienia} seconds
  192. stop
  193. {thearcher.%victim%.strzala::typ} is 9:
  194. if {wyrzucajaca.%victim%} is 1:
  195. push the victim upwards at speed 0.9
  196. stop
  197. on projectile hit:
  198. projectile is arrow
  199. {thearcher.%shooter%.strzala::typ} is 4:
  200. if {piorun.%shooter%} is 1:
  201. strike lightning at projectile
  202. stop
  203. {thearcher.%shooter%.strzala::typ} is 2:
  204. if {wybuchajaca.%shooter%} is 1:
  205. create an explosion of force 2 at projectile
  206. stop
  207. {thearcher.%shooter%.strzala::typ} is 7:
  208. if {teleportujaca.%shooter%} is 1:
  209. teleport shooter to projectile
  210. stop
  211. {thearcher.%shooter%.strzala::typ} is 8:
  212. if {mob.%shooter%} is 1:
  213. spawn a zombie or creeper or skeleton or spider or silverfish or slime or ghast at projectile
  214. stop
  215.  
  216.  
  217. on rightclick with bow:
  218. if {strzelec.kasa} is true:
  219. if {podpalajaca.%name of player%} is 1:
  220. if player's balance is smaller than {@koszt.podpalajaca}:
  221. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.podpalajaca} $"
  222. toggle the block at the arrow
  223. cancel event
  224. stop
  225. remove {@koszt.podpalajaca} from the player's balance
  226. stop
  227. if {trujaca.%name of player%} is 1:
  228. if player's balance is smaller than {@koszt.trujaca}:
  229. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.trujaca} $"
  230. toggle the block at the arrow
  231. cancel event
  232. stop
  233. remove {@koszt.podpalajaca} from the player's balance
  234. stop
  235. if {wybuchajaca.%name of player%} is 1:
  236. if player's balance is smaller than {@koszt.wybuchajaca}:
  237. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.wybuchajaca} $"
  238. toggle the block at the arrow
  239. cancel event
  240. stop
  241. remove {@koszt.podpalajaca} from the player's balance
  242. stop
  243. if {spowalniajaca.%name of player%} is 1:
  244. if player's balance is smaller than {@koszt.spowalniajaca}:
  245. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.spowalniajaca} $"
  246. toggle the block at the arrow
  247. cancel event
  248. stop
  249. remove {@koszt.podpalajaca} from the player's balance
  250. stop
  251. if {oszalamiajaca.%name of player%} is 1:
  252. if player's balance is smaller than {@koszt.oszalamiajaca}:
  253. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.oszalamiajaca} $"
  254. toggle the block at the arrow
  255. cancel event
  256. stop
  257. remove {@koszt.oszalamiajaca} from the player's balance
  258. stop
  259. if {teleportujaca.%name of player%} is 1:
  260. if player's balance is smaller than {@koszt.teleportujaca}:
  261. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.teleportujaca} $"
  262. toggle the block at the arrow
  263. cancel event
  264. stop
  265. remove {@koszt.teleportujaca} from the player's balance
  266. stop
  267. if {wzryucajaca.%name of player%} is 1:
  268. if player's balance is smaller than {@koszt.mob}:
  269. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.mob} $"
  270. toggle the block at the arrow
  271. cancel event
  272. stop
  273. remove {@koszt.wzryucajaca} from the player's balance
  274. stop
  275. if {teleportujaca.%name of player%} is 1:
  276. if player's balance is smaller than {@koszt.wzryucajaca}:
  277. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.wzryucajaca} $"
  278. toggle the block at the arrow
  279. cancel event
  280. stop
  281. remove {@koszt.wzryucajaca} from the player's balance
  282. stop
Add Comment
Please, Sign In to add comment