Guest User

iProMine by FejminTV

a guest
Feb 12th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.35 KB | None | 0 0
  1. variables:
  2. {minestats.status} = 1
  3. {chat.status} = 1
  4. options:
  5.  
  6. tag: &a[&2iProMine&a]
  7. permission: &4Nie masz uprawnien by uzywac tej komendy!
  8. chat-format: {LVL} {NICK}: {MESSAGE}
  9. chat-format2:{NICK}: {MESSAGE}
  10.  
  11.  
  12. lvl: 1
  13. # Ilosc ptk za wykopanie danej rudy
  14.  
  15. #Punkty za diament
  16. ptkd: 1
  17. #Punkty za stone
  18. ptks: 0.01
  19. #Punkty za zloto
  20. ptkg: 0.1
  21. #Punkty za lapis
  22. ptkl: 0.1
  23. #Punkty za zelazo
  24. ptki: 0.1
  25. #Punkty za wegiel
  26. ptkc: 0.05
  27. #Punkty za emerald
  28. ptke: 0.1
  29. #Punkty za redstone
  30. ptkr: 0.1
  31.  
  32.  
  33. # Nie zmieniaj nizej nic!!!
  34.  
  35. #Punkty za diament
  36. wykopaned: 1
  37. #Punkty za stone
  38. wykopanes: 1
  39. #Punkty za zloto
  40. wykopaneg: 1
  41. #Punkty za zelazo
  42. wykopanei: 1
  43. #Punkty za lapis
  44. wykopanel: 1
  45. #Punkty za emerald
  46. wykopanee: 1
  47. #Punkty za wegiel
  48. wykopanec: 1
  49. #Punkty za redstone
  50. wykopaner: 1
  51.  
  52. # Za ile wykopanej rudy/bloku ma daac 1 lvl!!!
  53. diax: 6
  54. stone: 500
  55. zloto: 14
  56. zelazo: 16
  57. lapis: 20
  58. emerald: 5
  59. wegiel: 30
  60. redstone: 22
  61.  
  62. on join:
  63. {wykopaned::%name of player%} is not set:
  64. set {wykopaned::%name of player%} to 0
  65. {wykopanei::%name of player%} is not set:
  66. set {wykopanei::%name of player%} to 0
  67. {wykopaneg::%name of player%} is not set:
  68. set {wykopaneg::%name of player%} to 0
  69. {wykopanee::%name of player%} is not set:
  70. set {wykopaner::%name of player%} to 0
  71. {wykopaner::%name of player%} is not set:
  72. set {wykopanec::%name of player%} to 0
  73. {wykopanec::%name of player%} is not set:
  74. set {wykopanee::%name of player%} to 0
  75. {wykopanel::%name of player%} is not set:
  76. set {wykopanel::%name of player%} to 0
  77. {wykopanes::%name of player%} is not set:
  78. set {wykopanes::%name of player%} to 0
  79. {mine.stats::%name of player%} is not set:
  80. set {mine.stats::%name of player%} to 0
  81. {lvl.stats::%name of player%} is not set:
  82. set {lvl.stats::%name of player%} to 0
  83.  
  84. on mine of diamond ore:
  85. {minestats.status} is 1:
  86. add {@ptkd} to {mine.stats::%player%}
  87. add {@wykopaned} to {wykopaned::%player%}
  88. send "&6* &7Dostajesz &c{@ptkd} ptk &7za wykopanie &bdiaxa"
  89. add 1 to {testd.%player%}
  90. if {testd.%player%} is {@diax}:
  91. set {testd.%player%} to 0
  92. add {@lvl} to {lvl.stats::%player%}
  93. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  94. play 100 of effect "fireworksSpark" with data 1 at player
  95. play 100 of effect "witchMagic" with data 1 at player
  96. play 100 of effect "flame" with data 1 at player
  97.  
  98. on mine of iron ore:
  99. {minestats.status} is 1:
  100. add {@ptki} to {mine.stats::%player%}
  101. add {@wykopanei} to {wykopanei::%player%}
  102. send "&6* &7Dostajesz &c{@ptki} ptk &7za wykopanie &8zelaza"
  103. add 1 to {testi.%player%}
  104. if {testi.%player%} is {@zelazo}:
  105. set {testi.%player%} to 0
  106. add {@lvl} to {lvl.stats::%player%}
  107. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  108. play 100 of effect "fireworksSpark" with data 1 at player
  109. play 100 of effect "witchMagic" with data 1 at player
  110. play 100 of effect "flame" with data 1 at player
  111. on mine of gold ore:
  112. {minestats.status} is 1:
  113. add {@ptkg} to {mine.stats::%player%}
  114. add {@wykopaneg} to {wykopaneg::%player%}
  115. send "&6* &7Dostajesz &c{@ptkg} ptk &7za wykopanie &6zlota"
  116. add 1 to {testg.%player%}
  117. if {testg.%player%} is {@zloto}:
  118. set {testg.%player%} to 0
  119. add {@lvl} to {lvl.stats::%player%}
  120. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  121. play 100 of effect "fireworksSpark" with data 1 at player
  122. play 100 of effect "witchMagic" with data 1 at player
  123. play 100 of effect "flame" with data 1 at player
  124. on mine of emerald ore:
  125. {minestats.status} is 1:
  126. add {@ptke} to {mine.stats::%player%}
  127. add {@wykopanee} to {wykopanee::%player%}
  128. add 1 to {teste.%player%}
  129. if {teste.%player%} is {@emerald}:
  130. set {teste.%player%} to 0
  131. add {@lvl} to {lvl.stats::%player%}
  132. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  133. play 100 of effect "fireworksSpark" with data 1 at player
  134. play 100 of effect "witchMagic" with data 1 at player
  135. play 100 of effect "flame" with data 1 at player
  136. on mine of redstone ore:
  137. {minestats.status} is 1:
  138. add {@ptkr} to {mine.stats::%player%}
  139. add {@wykopaner} to {wykopaner::%player%}
  140. send "&6* &7Dostajesz &c{@ptkr} ptk &7za wykopanie &bdiaxa"
  141. add 1 to {testr.%player%}
  142. if {testr.%player%} is {@redstone}:
  143. set {testr.%player%} to 0
  144. add {@lvl} to {lvl.stats::%player%}
  145. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  146. play 100 of effect "fireworksSpark" with data 1 at player
  147. play 100 of effect "witchMagic" with data 1 at player
  148. play 100 of effect "flame" with data 1 at player
  149. on mine of coal ore:
  150. {minestats.status} is 1:
  151. add {@ptkc} to {mine.stats::%player%}
  152. add {@wykopanec} to {wykopanec::%player%}
  153. send "&6* &7Dostajesz &c{@ptkc} ptk &7za wykopanie &0wegla"
  154. add 1 to {testc.%player%}
  155. if {testc.%player%} is {@wegiel}:
  156. set {testc.%player%} to 0
  157. add {@lvl} to {lvl.stats::%player%}
  158. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  159. play 100 of effect "fireworksSpark" with data 1 at player
  160. play 100 of effect "witchMagic" with data 1 at player
  161. play 100 of effect "flame" with data 1 at player
  162. on mine of lapis lazuli ore:
  163. {minestats.status} is 1:
  164. add {@ptkl} to {mine.stats::%player%}
  165. add {@wykopanel} to {wykopanel::%player%}
  166. send "&6* &7Dostajesz &c{@ptkl} ptk &7za wykopanie &1lapisu"
  167. add {@wykopanel} to {minel::%player%}
  168. add 1 to {tests.%player%}
  169. if {testl.%player%} is {@lapis}:
  170. set {testl.%player%} to 0
  171. add {@lvl} to {lvl.stats::%player%}
  172. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  173. play 100 of effect "fireworksSpark" with data 1 at player
  174. play 100 of effect "witchMagic" with data 1 at player
  175. play 100 of effect "flame" with data 1 at player
  176. on mine of stone:
  177. {minestats.status} is 1:
  178. add {@ptks} to {mine.stats::%player%}
  179. add {@wykopanes} to {wykopanes::%player%}
  180. add {@wykopanes} to {miners::%player%}
  181. add 1 to {tests.%player%}
  182. if {tests.%player%} is {@stone}:
  183. set {tests.%player%} to 0
  184. add {@lvl} to {lvl.stats::%player%}
  185. broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
  186. play 100 of effect "fireworksSpark" with data 1 at player
  187. play 100 of effect "witchMagic" with data 1 at player
  188. play 100 of effect "flame" with data 1 at player
  189. if chance of 0.01%:
  190. send "&6* &7Dostajesz &c{@ptks} ptk &7za wykopanie stone"
  191.  
  192. command /ipromine [<text>] [<offlineplayer>] [<text>] [<number>]:
  193. trigger:
  194. if arg 1 is "staty":
  195. send "&a--------------[ &2MINE-STATY&a ]--------------"
  196. send "&c* &7Punkty: &c%{mine.stats::%player%}%"
  197. send "&c* &7LVL: &c%{lvl.stats::%player%}%"
  198. send "&c* &7Wykopane &8Stone: &c%{wykopanes::%player%}%"
  199. send "&c* &7Wykopane &bDiamenty: &c%{wykopaned::%player%}%"
  200. send "&c* &7Wykopane &6Zloto: &c%{wykopaneg::%player%}%"
  201. send "&c* &7Wykopane &8Zelazo: &c%{wykopanei::%player%}%"
  202. send "&c* &7Wykopany &0Wegiel: &c%{wykopanec::%player%}%"
  203. send "&c* &7Wykopane &1Lapis: &c%{wykopanel::%player%}%"
  204. send "&c* &7Wykopane &4Redstone: &c%{wykopaner::%player%}%"
  205. send "&c* &7Wykopane &aEmeraldy: &c%{wykopanee::%player%}%"
  206. send "&a--------------[ &2MINE-STATY&a ]--------------"
  207. if arg 1 is "staty":
  208. if arg 2 is set:
  209. send "&a--------------[ &2MINE-STATY&a ]--------------"
  210. send "&c* &7Statystyki gracza: &a%arg 2%"
  211. send "&c* &7LVL: &c%{lvl.stats::%arg 2%}%"
  212. send "&c* &7Punkty: &c%{mine.stats::%arg 2%}%"
  213. send "&c* &7Wykopane &8Stone: &c%{wykopanes::%arg 2%}%"
  214. send "&c* &7Wykopane &bDiamenty: &c%{wykopaned::%arg 2%}%"
  215. send "&c* &7Wykopane &6Zloto: &c%{wykopaneg::%arg 2%}%"
  216. send "&c* &7Wykopane &8Zelazo: &c%{wykopanei::%arg 2%}%"
  217. send "&c* &7Wykopany &0Wegiel: &c%{wykopanec::%arg 2%}%"
  218. send "&c* &7Wykopane &1Lapis: &c%{wykopanel::%arg 2%}%"
  219. send "&c* &7Wykopane &4Redstone: &c%{wykopaner::%arg 2%}%"
  220. send "&c* &7Wykopane &aEmeraldy: &c%{wykopanee::%arg 2%}%"
  221. send "&a--------------[ &2MINE-STATY&a ]--------------"
  222. stop
  223. if arg 1 is "reset":
  224. if player has permission "admin":
  225. broadcast "{@tag} &cReset Statystyk"
  226. delete {lvl.stats::%player%}
  227. delete {mine.stats::%player%}
  228. delete {wykopanes::%player%}
  229. delete {wykopaned::%player%}
  230. delete {wykopaneg::%player%}
  231. delete {wykopanei::%player%}
  232. delete {wykopanec::%player%}
  233. delete {wykopanel::%player%}
  234. delete {wykopaner::%player%}
  235. delete {wykopanee::%player%}
  236. delete {tests.%player%}
  237. delete {testd.%player%}
  238. delete {testg.%player%}
  239. delete {testi.%player%}
  240. delete {testc.%player%}
  241. delete {testl.%player%}
  242. delete {testr.%player%}
  243. delete {teste.%player%}
  244. stop
  245. else:
  246. send "{@tag} {@permission}"
  247. stop
  248. if arg 1 is "pomoc":
  249. send "&a-----------------[ &2MINE-STATY&a ]----------------"
  250. send "&a/ipromine pomoc <nick> &f- &bLista komend"
  251. send "&a/ipromine staty <nick> &f- &bPokazuje twoje lub kogos staty"
  252. send "&a/ipromine on/off &f- &bON/OFF dostawanie punktow i lvl"
  253. send "&a/ipromine-chat on/off &f- &bWlaczasz/Wylaczasz chat z lvl"
  254. send "&a/ipromine reset &f- &bResetujesz wszystkim staty"
  255. send "&a/ipromine punkty <gracz> wymien <liczba> &f- &bWymiania sie punkty za kase"
  256. send "&a-----------------[ &2MINE-STATY&a ]-----------------"
  257. if arg 1 is "on":
  258. if player has permission "admin":
  259. set {minestats.status} to 1
  260. send "{@tag} &7IProMine &awlaczony"
  261. stop
  262. if arg 1 is "off":
  263. if player has permission "admin":
  264. set {minestats.status} to 0
  265. send "{@tag} &7IProMine &cwylaczony"
  266. stop
  267. if arg 1 is "punkty":
  268. if arg 2 is set:
  269. if arg 3 is "wymien":
  270. if arg 4 is set:
  271. execute console command "/eco give %arg 2% %arg 4%"
  272. remove arg 4 from {mine.stats::%arg 2%}
  273. send "{@tag} &7Wymianiles &a%arg 4% punktow &7na &a%arg 4%$"
  274. stop
  275. else:
  276. send "&aPodaj ilosc"
  277. stop
  278. else:
  279. send "&2Uzyj: &a/ipromine punkty <nick> wymien <ilosc>"
  280. stop
  281. else:
  282. send "&aPodaj nick"
  283. stop
  284. else:
  285. send "&2Uzyj: &a/ipromine staty &a<&fnick&a>"
  286. stop
  287.  
  288. command /ipromine-chat [<text>] [<text>]:
  289. trigger:
  290. if arg 1 is "on":
  291. if player has permission "admin":
  292. set {chat.status} to 1
  293. send "{@tag} &7IProMine-Chat &awlaczony"
  294. stop
  295. if arg 1 is "off":
  296. if player has permission "admin":
  297. set {chat.status} to 0
  298. send "{@tag} &7IProMine-Chat &cwylaczony"
  299. stop
  300. else:
  301. send "{@tag} {@permission}"
  302. else:
  303. send "&2Uzyj: &a/ipromine-chat <&2on&f/&2off&f/&2>"
  304. stop
  305.  
  306. on chat:
  307. if player has permission "admin":
  308. {chat.status} is 1:
  309. set {_chat} to "{@chat-format}"
  310. replace all "{RANK}" with "%coloured player's prefix%" in {_chat}
  311. replace all "{NICK}" with "%display name of player%" in {_chat}
  312. replace all "{MESSAGE}" with "&f%coloured message%" in {_chat}
  313. replace all "{LVL}" with "&f[&6%{lvl.stats::%player%}%&f]" in {_chat}
  314. replace all "{AMATOR}" with "&f[&6AMATOR&f]" in {_chat}
  315. send "%{_chat}%" to all players
  316. cancel event
  317. {chat.status} is 0:
  318. set {_chat} to "{@chat-format2}"
  319. replace all "{RANK}" with "%coloured player's prefix%" in {_chat}
  320. replace all "{NICK}" with "%display name of player%" in {_chat}
  321. replace all "{MESSAGE}" with "&f%coloured message%" in {_chat}
  322. send "%{_chat}%" to all players
  323. cancel event
  324. stop
Advertisement
Add Comment
Please, Sign In to add comment