Guest User

Strelec

a guest
Feb 15th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. variables:
  2. {strzelec.kasa} = true
  3. options:
  4. # Ogolne
  5. tag: &4[ &6Strzelec&4 ]
  6. msg.noperm: &cBrak Uprawnien
  7.  
  8. # Nazwy strzal
  9.  
  10. podpalajaca: &6Podpalajaca
  11. wybuchajaca: &fWybuchajaca
  12. normalna: &9Normalna
  13. trujaca: &5Trujaca
  14. piorun: &1Piorun
  15. spowalniajaca: &7Spowalniajaca
  16. oszalamiajaca: &aOszalamiajaca
  17.  
  18. # Czas efektow
  19.  
  20. czas.trutki: 10
  21. czas.oszolomienia: 10
  22. czas.spowlonienia: 10
  23. czas.podpalania: 10
  24.  
  25. # Kasa za uzycie
  26.  
  27. koszt.podpalajaca: 10
  28. koszt.oszalamiajaca: 10
  29. koszt.trujaca: 10
  30. koszt.wybuchajaca: 10
  31. koszt.spowalniajaca: 10
  32.  
  33. # Czas po urzuciu strzaly
  34. czas: 2
  35.  
  36.  
  37. command /strzelec [<text>] [<text>]:
  38. trigger:
  39. if arg 1 isn't set:
  40. if player doesn't have permission "strzelec.lista":
  41. stop
  42. send "&4--------------------------------------------"
  43. send " &2&LLista strzal:"
  44. send " ---------------"
  45. send "&6Podpalajaca&f, &fWybuchajaca&f, &9Normalna&f, &5Trujaca&f,"
  46. send "&7Spowalniajaca&f, &aOszalamiajaca"
  47. send "&4--------------------------------------------"
  48. if arg 1 is "reload":
  49. if player doesn't have permission "strzelec.reload":
  50. send "{@msg.noperm}"
  51. stop
  52. execute player command "sk reload %script%"
  53. send "{@tag} &cPrzeladowano"
  54. if arg 1 is "kasa":
  55. if arg 2 is "on":
  56. if player has permission "strzelec.kasa":
  57. set {strzelec.kasa} to true
  58. send "{@tag} &7Kasa za strzaly &awlaczona"
  59. stop
  60. if arg 2 is "off":
  61. if player has permission "checkblock":
  62. set {strzelec.kasa} to false
  63. send "{@tag} &7Kasa za strzaly &cwylaczony"
  64. stop
  65. else:
  66. send "{@msg.noperm}"
  67. stop
  68. else:
  69. send "{@tag} &c/strzelec <&fon/off&c>"
  70. stop
  71.  
  72.  
  73. on leftclick with bow:
  74. {podpalajaca.%player%} is not set:
  75. set {podpalajaca.%player%} to 1
  76. {wybuchajaca.%player%} is not set:
  77. set {wybuchajaca.%player%} to 1
  78. {teleportujaca.%player%} is not set:
  79. set {trujaca.%player%} to 1
  80. {spowalniajaca.%player%} is not set:
  81. set {spowalniajaca.%player%} to 1
  82. {oszalamiajaca.%player%} is not set:
  83. set {oszalamiajaca.%player%} to 1
  84. {piorun.%player%} is not set:
  85. set {piorun.%player%} to 1
  86. {thearcher.%player%.strzala::typ} is not set:
  87. set {thearcher.%player%.strzala::typ} to 0
  88. add 1 to {thearcher.%player%.strzala::typ}
  89. {thearcher.%player%.strzala::typ} is 0:
  90. add 1 to {thearcher.%player%.strzala::typ}
  91. {thearcher.%player%.strzala::typ} is 1:
  92. if player doesn't have permission "strzelec.podpalajaca":
  93. stop
  94. set {thearcher.%player%.strzala::typ} to 6
  95. if {podpalajaca.%player%} is 1:
  96. send "{@tag} &f- &aWybrales strzale: &1< {@podpalajaca} &1>"
  97. enchant the player's tool with flame
  98. stop
  99. add 1 to {thearcher.%player%.strzala::typ}
  100. {thearcher.%player%.strzala::typ} is 2:
  101. if player doesn't have permission "strzelec.wybuchajaca":
  102. set {thearcher.%player%.strzala::typ} to 6
  103. stop
  104. if {wybuchajaca.%player%} is 1:
  105. send "{@tag} &f- &aWybrales strzale: &1< {@wybuchajaca} &1>"
  106. disenchant the player's tool
  107. stop
  108. add 1 to {thearcher.%player%.strzala::typ}
  109. {thearcher.%player%.strzala::typ} is 3:
  110. if player doesn't have permission "strzelec.trujaca":
  111. set {thearcher.%player%.strzala::typ} to 6
  112. stop
  113. if {trujaca.%player%} is 1:
  114. send "{@tag} &f- &aWybrales strzale: &1< {@trujaca} &1>"
  115. disenchant the player's tool
  116. stop
  117. add 1 to {thearcher.%player%.strzala::typ}
  118. {thearcher.%player%.strzala::typ} is 4:
  119. if player doesn't have permission "thearcher.piorun":
  120. set {thearcher.%player%.strzala::typ} to 6
  121. stop
  122. if {piorun.%player%} is 1:
  123. send "{@tag} &f- &aWybrales strzale: &1< {@piorun} &1>"
  124. disenchant the player's tool
  125. stop
  126. add 1 to {thearcher.%player%.strzala::typ}
  127. {thearcher.%player%.strzala::typ} is 5:
  128. if player doesn't have permission "strzelec.spowalniajaca":
  129. set {thearcher.%player%.strzala::typ} to 6
  130. stop
  131. if {spowalniajaca.%player%} is 1:
  132. send "{@tag} &f- &aWybrales strzale: &1< {@spowalniajaca} &1>"
  133. disenchant the player's tool
  134. stop
  135. add 1 to {thearcher.%player%.strzala::typ}
  136. {thearcher.%player%.strzala::typ} is 6:
  137. if player doesn't have permission "strzelec.oszalamiajaca":
  138. set {thearcher.%player%.strzala::typ} to 6
  139. stop
  140. if {oszalamiajaca.%player%} is 1:
  141. send "{@tag} &f- &aWybrales strzale: &1< {@oszalamiajaca} &1>"
  142. disenchant the player's tool
  143. stop
  144. add 1 to {thearcher.%player%.strzala::typ}
  145. else:
  146. send "{@tag} &f- &aWybrales strzale: &1< {@normalna} &1>"
  147. set {thearcher.%player%.strzala::typ} to 0
  148. on damage:
  149. projectile is arrow
  150. {thearcher.%victim%.strzala::typ} is 5:
  151. if {spowalniajaca.%victim%} is 1:
  152. ignite the victim for {@czas.podpalania} seconds
  153. stop
  154. {thearcher.%victim%.strzala::typ} is 1:
  155. if {spowalniajaca.%victim%} is 1:
  156. apply slowness 3 to the victim for {@czas.spowlonienia} seconds
  157. stop
  158. {thearcher.%victim%.strzala::typ} is 6:
  159. if {oszalamiajaca.%victim%} is 1:
  160. apply Nausea of tier 10 to the victim for {@czas.oszolomienia} seconds
  161. apply Blindness 1 to the victim for {@czas.oszolomienia} seconds
  162. stop
  163. {thearcher.%victim%.strzala::typ} is 3:
  164. if {trujaca.%victim%} is 1:
  165. poison the victim for {@czas.trutki} seconds
  166. stop
  167. {thearcher.%victim%.strzala::typ} is 2:
  168. if {wybuchajaca.%victim%} is 1:
  169. create an explosion of force 1 at victim
  170. stop
  171. on projectile hit:
  172. projectile is arrow
  173. {thearcher.%shooter%.strzala::typ} is 4:
  174. if {piorun.%shooter%} is 1:
  175. strike lightning at projectile
  176. stop
  177.  
  178.  
  179. on rightclick with bow:
  180. if {strzelec.kasa} is true:
  181. if {podpalajaca.%player%} is 1:
  182. if player's balance is smaller than {@koszt.podpalajaca}:
  183. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.podpalajaca} $"
  184. cancel event
  185. stop
  186. remove {@koszt.podpalajaca} from the player's balance
  187. if {trujaca.%player%} is 1:
  188. if player's balance is smaller than {@koszt.trujaca}:
  189. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.trujaca} $"
  190. cancel event
  191. stop
  192. remove {@koszt.podpalajaca} from the player's balance
  193. if {wybuchajaca.%player%} is 1:
  194. if player's balance is smaller than {@koszt.wybuchajaca}:
  195. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.wybuchajaca} $"
  196. cancel event
  197. stop
  198. remove {@koszt.podpalajaca} from the player's balance
  199. if {spowalniajaca.%player%} is 1:
  200. if player's balance is smaller than {@koszt.spowalniajaca}:
  201. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.spowalniajaca} $"
  202. cancel event
  203. stop
  204. remove {@koszt.podpalajaca} from the player's balance
  205. if {oszalamiajaca.%player%} is 1:
  206. if player's balance is smaller than {@koszt.oszalamiajaca}:
  207. send "{@tag} &cZeby uzyc tej strzaly musisz posiadac &6{@koszt.oszalamiajaca} $"
  208. cancel event
  209. stop
  210. remove {@koszt.oszalamiajaca} from the player's balance
Advertisement
Add Comment
Please, Sign In to add comment