Guest User

aDropPKT+

a guest
Oct 11th, 2014
1,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.96 KB | None | 0 0
  1. #--------------------------------------->
  2. #>Autor: andrzex
  3. #>Wersja: v1.1
  4. #--------------------------------------->
  5. #<><><><><><><><>Licencja<><><><><><><>#
  6. #>> Nie pozwalam podszywać się pod autora
  7. #>> Nie pozwalam usuwać INFORMACJI o autorze i licencji
  8. #>> Pozwalam edytować kod na swoje potrzeby
  9. #--------------------------------------->
  10. on join:
  11. {LVL:%player%} is not set:
  12. set {LVL:%player%} to 1
  13. {PUNKTY:%player%} is not set:
  14. set {PUNKTY:%player%} to 0
  15. {MaxPUNKTY:%player%} is not set:
  16. set {MaxPUNKTY:%player%} to 160
  17. {MINUTY:%player%} is not set:
  18. set {MINUTY:%player%} to 0
  19. options:
  20. czat:&8[&7{LVL}&8] {DISPLAY}&6-> &f{MESSAGE}
  21. stonexp: 2
  22.  
  23. # <--- Procent na DROP ze STONA ---> [EDYTUJ]
  24. procentdiament: 0.5
  25.  
  26. procentemerald: 1.7
  27.  
  28. procentzloto: 2.0
  29.  
  30. procentzelazo: 3.4
  31.  
  32. procentredstone: 4.1
  33.  
  34. procentwegiel: 4.6
  35.  
  36. # <--- Procent na EXP z SUROWCÓW ---> [EDYTUJ]
  37.  
  38. diamondxp: 1
  39.  
  40. emeraldxp: 1
  41.  
  42. zlotoxp: 1
  43.  
  44. zelazoxp: 1
  45.  
  46. redstonexp: 1
  47.  
  48. wegielxp: 1
  49.  
  50. # <--- Procent na EXP z SUROWCÓW z FORTUNE 1 ---> [EDYTUJ]
  51. diamondxpFortune1: 1
  52.  
  53. emeraldxpFortune1: 1
  54.  
  55. zlotoxpFortune1: 1
  56.  
  57. zelazoxpFortune1: 1
  58.  
  59. redstonexpFortune1: 1
  60.  
  61. wegielxpFortune1: 1
  62.  
  63. # <--- Procent na EXP z SUROWCÓW z FORTUNE 2 ---> [EDYTUJ]
  64. diamondxpFortune2: 1
  65.  
  66. emeraldxpFortune2: 1
  67.  
  68. zlotoxpFortune2: 1
  69.  
  70. zelazoxpFortune2: 1
  71.  
  72. redstonexpFortune2: 1
  73.  
  74. wegielxpFortune2: 1
  75.  
  76. # <--- Procent na EXP z SUROWCÓW z FORTUNE 3 ---> [EDYTUJ]
  77. diamondxpFortune3: 1
  78.  
  79. emeraldxpFortune3: 1
  80.  
  81. zlotoxpFortune3: 1
  82.  
  83. zelazoxpFortune3: 1
  84.  
  85. redstonexpFortune3: 1
  86.  
  87. wegielxpFortune3: 1
  88.  
  89. # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW ze STONA ---> [EDYTUJ]
  90. pktDiament: 1
  91.  
  92. pktEmerald: 1
  93.  
  94. pktZloto: 1
  95.  
  96. pktZelazo: 1
  97.  
  98. pktRedstone: 1
  99.  
  100. pktWegiel: 1
  101.  
  102. # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW Z FORTUNA 1 ze STONA ---> [EDYTUJ]
  103. pktDiamentFortune1: 1
  104.  
  105. pktEmeraldFortune1: 1
  106.  
  107. pktZlotoFortune1: 1
  108.  
  109. pktZelazoFortune1: 1
  110.  
  111. pktRedstoneFortune1: 1
  112.  
  113. pktWegielFortune1: 1
  114.  
  115. # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW Z FORTUNA 2 ze STONA ---> [EDYTUJ]
  116. pktDiamentFortune2: 1
  117.  
  118. pktEmeraldFortune2: 1
  119.  
  120. pktZlotoFortune2: 1
  121.  
  122. pktZelazoFortune2: 1
  123.  
  124. pktRedstoneFortune2: 1
  125.  
  126. pktWegielFortune2: 1
  127.  
  128. # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW Z FORTUNA 3 ze STONA ---> [EDYTUJ]
  129. pktDiamentFortune3: 1
  130.  
  131. pktEmeraldFortune3: 1
  132.  
  133. pktZlotoFortune3: 1
  134.  
  135. pktZelazoFortune3: 1
  136.  
  137. pktRedstoneFortune3: 1
  138.  
  139. pktWegielFortune3: 1
  140.  
  141. command /pkt:
  142. trigger:
  143. send "&7---------------------------------------"
  144. send "&7> &3Lvl: &7%{LVL:%player%}%"
  145. send "&7> &3Masz &7%{PUNKTY:%player%}%&3 na &7%{MaxPUNKTY:%player%}%&3 Punktow"
  146. send "&7> &3Czas gry: &7%{MINUTY:%player%}% &3Minut"
  147. send "&7---------------------------------------"
  148.  
  149. on mine of stone:
  150. chance of 100%:
  151. give {@stonexp} xp to the player
  152. add 1 to {PUNKTY:%player%}
  153. chance of {@procentdiament}%:
  154. give 1 diamond to the player
  155. give {@diamondxp} xp to the player
  156. add {@pktDiament} to {PUNKTY:%player%}
  157. send "&3Wykopales: &bDiament!"
  158. chance of {@procentemerald}%:
  159. give 1 emerald to the player
  160. give {@emeraldxp} xp to the player
  161. add {@pktEmerald} to {PUNKTY:%player%}
  162. send "&3Wykopales: &aEmerald!"
  163. chance of {@procentzloto}%:
  164. give 1 gold ore to the player
  165. give {@zlotoxp} xp to the player
  166. add {@pktZloto} to {PUNKTY:%player%}
  167. send "&3Wykopales: &6Zloto!"
  168. chance of {@procentzelazo}%:
  169. give 1 iron ore to the player
  170. give {@zelazoxp} xp to the player
  171. add {@pktZelazo} to {PUNKTY:%player%}
  172. send "&3Wykopales: &7Zelazo!"
  173. chance of {@procentredstone}%:
  174. give 1 redstone to the player
  175. give {@redstonexp} xp to the player
  176. add {@pktRedstone} to {PUNKTY:%player%}
  177. send "&3Wykopales: &4Redstone!"
  178. chance of {@procentwegiel}%:
  179. give 1 coal to the player
  180. give {@wegielxp} xp to the player
  181. add {@pktWegiel} to {PUNKTY:%player%}
  182. send "&3Wykopales: &0Wegiel!"
  183. if player's tool is pickaxe of fortune 1:
  184. chance of {@procentdiament}%:
  185. give a random number between 1 and 2 of diamond to the player
  186. give {@diamondxpFortune1} xp to the player
  187. add {@pktDiamentFortune1} to {PUNKTY:%player%}
  188. send "&3Wykopales: &bDiamenty!"
  189. chance of {@procentemerald}%:
  190. give a random number between 1 and 2 of emerald to the player
  191. give {@emeraldxpFortune1} xp to the player
  192. add {@pktEmeraldFortune1} to {PUNKTY:%player%}
  193. send "&3Wykopales: &aEmeraldy!"
  194. chance of {@procentzloto}%:
  195. give a random number between 1 and 2 of gold ore to the player
  196. give {@zlotoxpFortune1} xp to the player
  197. add {@pktZlotoFortune1} to {PUNKTY:%player%}
  198. send "&3Wykopales: &6Zloto!"
  199. chance of {@procentzelazo}%:
  200. give a random number between 1 and 2 of iron ore to the player
  201. give {@zelazoxpFortune1} xp to the player
  202. add {@pktZelazoFortune1} to {PUNKTY:%player%}
  203. send "&3Wykopales: &7Zelazo!"
  204. chance of {@procentredstone}%:
  205. give a random number between 1 and 2 of redstone to the player
  206. give {@redstonexpFortune1} xp to the player
  207. add {@pktRedstoneFortune1} to {PUNKTY:%player%}
  208. send "&3Wykopales: &4Redstone!"
  209. chance of {@procentwegiel}%:
  210. give a random number between 1 and 2 of coal to the player
  211. give {@wegielxpFortune1} xp to the player
  212. add {@pktWegielFortune1} to {PUNKTY:%player%}
  213. send "&3Wykopales: &0Wegiel!"
  214. if player's tool is pickaxe of fortune 2:
  215. chance of {@procentdiament}%:
  216. give a random number between 1 and 3 of diamond to the player
  217. give {@diamondxpFortune2} xp to the player
  218. add {@pktDiamentFortune2} to {PUNKTY:%player%}
  219. send "&3Wykopales: &bDiamenty!"
  220. chance of {@procentemerald}%:
  221. give a random number between 1 and 3 of emerald to the player
  222. give {@emeraldxpFortune2} xp to the player
  223. add {@pktEmeraldFortune2} to {PUNKTY:%player%}
  224. send "&3Wykopales: &aEmeraldy!"
  225. chance of {@procentzloto}%:
  226. give a random number between 1 and 3 of gold ore to the player
  227. give {@zlotoxpFortune2} xp to the player
  228. add {@pktZlotoFortune2} to {PUNKTY:%player%}
  229. send "&3Wykopales: &6Zloto!"
  230. chance of {@procentzelazo}%:
  231. give a random number between 1 and 3 of iron ore to the player
  232. give {@zelazoxpFortune2} xp to the player
  233. add {@pktZelazoFortune2} to {PUNKTY:%player%}
  234. send "&3Wykopales: &7Zelazo!"
  235. chance of {@procentredstone}%:
  236. give a random number between 1 and 3 of redstone to the player
  237. give {@redstonexpFortune2} xp to the player
  238. add {@pktRedstoneFortune2} to {PUNKTY:%player%}
  239. send "&3Wykopales: &4Redstone!"
  240. chance of {@procentwegiel}%:
  241. give a random number between 1 and 3 of coal to the player
  242. give {@wegielxpFortune2} xp to the player
  243. add {@pktWegielFortune2} to {PUNKTY:%player%}
  244. send "&3Wykopales: &0Wegiel!"
  245. if player's tool is pickaxe of fortune 3:
  246. chance of {@procentdiament}%:
  247. give a random number between 1 and 4 of diamond to the player
  248. give {@diamondxpFortune3} xp to the player
  249. add {@pktDiamentFortune3} to {PUNKTY:%player%}
  250. send "&3Wykopales: &bDiamenty!"
  251. chance of {@procentemerald}%:
  252. give a random number between 1 and 4 of emerald to the player
  253. give {@emeraldxpFortune3} xp to the player
  254. add {@pktEmeraldFortune3} to {PUNKTY:%player%}
  255. send "&3Wykopales: &aEmeraldy!"
  256. chance of {@procentzloto}%:
  257. give a random number between 1 and 4 of gold ore to the player
  258. give {@zlotoxpFortune3} xp to the player
  259. add {@pktZlotoFortune3} to {PUNKTY:%player%}
  260. send "&3Wykopales: &6Zloto!"
  261. chance of {@procentzelazo}%:
  262. give a random number between 1 and 4 of iron ore to the player
  263. give {@zelazoxpFortune3} xp to the player
  264. add {@pktZelazoFortune3} to {PUNKTY:%player%}
  265. send "&3Wykopales: &7Zelazo!"
  266. chance of {@procentredstone}%:
  267. give a random number between 1 and 4 of redstone to the player
  268. give {@redstonexpFortune3} xp to the player
  269. add {@pktRedstoneFortune3} to {PUNKTY:%player%}
  270. send "&3Wykopales: &4Redstone!"
  271. chance of {@procentwegiel}%:
  272. give a random number between 1 and 4 of coal to the player
  273. give {@wegielxpFortune3} xp to the player
  274. add {@pktWegielFortune3} to {PUNKTY:%player%}
  275. send "&3Wykopales: &0Wegiel!"
  276. if {PUNKTY:%player%} is larger than 160:
  277. if {LVL:%player%} is less than 2:
  278. set {LVL:%player%} to 2
  279. set {MaxPUNKTY:%player%} to 220
  280. send "&6» &7Awansowales na: &32 Poziom&7!"
  281. stop
  282. if {PUNKTY:%player%} is larger than 220:
  283. if {LVL:%player%} is less than 3:
  284. set {LVL:%player%} to 3
  285. set {MaxPUNKTY:%player%} to 280
  286. send "&6» &7Awansowales na: &33 Poziom&7!"
  287. stop
  288. if {PUNKTY:%player%} is larger than 280:
  289. if {LVL:%player%} is less than 4:
  290. set {LVL:%player%} to 4
  291. set {MaxPUNKTY:%player%} to 340
  292. send "&6» &7Awansowales na: &34 Poziom&7!"
  293. stop
  294. if {PUNKTY:%player%} is larger than 340:
  295. if {LVL:%player%} is less than 5:
  296. set {LVL:%player%} to 5
  297. set {MaxPUNKTY:%player%} to 420
  298. send "&6» &7Awansowales na: &35 Poziom&7!"
  299. stop
  300. if {PUNKTY:%player%} is larger than 420:
  301. if {LVL:%player%} is less than 6:
  302. set {LVL:%player%} to 6
  303. set {MaxPUNKTY:%player%} to 560
  304. send "&6» &7Awansowales na: &36 Poziom&7!"
  305. stop
  306. if {PUNKTY:%player%} is larger than 560:
  307. if {LVL:%player%} is less than 7:
  308. set {LVL:%player%} to 7
  309. set {MaxPUNKTY:%player%} to 680
  310. send "&6» &7Awansowales na: &37 Poziom&7!"
  311. stop
  312. if {PUNKTY:%player%} is larger than 680:
  313. if {LVL:%player%} is less than 8:
  314. set {LVL:%player%} to 8
  315. set {MaxPUNKTY:%player%} to 860
  316. send "&6» &7Awansowales na: &38 Poziom&7!"
  317. stop
  318. if {PUNKTY:%player%} is larger than 860:
  319. if {LVL:%player%} is less than 9:
  320. set {LVL:%player%} to 9
  321. set {MaxPUNKTY:%player%} to 1060
  322. send "&6» &7Awansowales na: &39 Poziom&7!"
  323. stop
  324. if {PUNKTY:%player%} is larger than 1060:
  325. if {LVL:%player%} is less than 10:
  326. set {LVL:%player%} to 10
  327. set {MaxPUNKTY:%player%} to 1270
  328. broadcast "&3» &7Gracz &3%player% &7awansowal na &310 Poziom&7!"
  329. stop
  330. if {PUNKTY:%player%} is larger than 1270:
  331. if {LVL:%player%} is less than 11:
  332. set {LVL:%player%} to 11
  333. set {MaxPUNKTY:%player%} to 1558
  334. send "&6» &7Awansowales na: &311 Poziom&7!"
  335. stop
  336. if {PUNKTY:%player%} is larger than 1558:
  337. if {LVL:%player%} is less than 12:
  338. set {LVL:%player%} to 12
  339. set {MaxPUNKTY:%player%} to 1898
  340. send "&6» &7Awansowales na: &312 Poziom&7!"
  341. stop
  342. if {PUNKTY:%player%} is larger than 1898:
  343. if {LVL:%player%} is less than 13:
  344. set {LVL:%player%} to 13
  345. set {MaxPUNKTY:%player%} to 2208
  346. send "&6» &7Awansowales na: &313 Poziom&7!"
  347. stop
  348. if {PUNKTY:%player%} is larger than 2208:
  349. if {LVL:%player%} is less than 14:
  350. set {LVL:%player%} to 14
  351. set {MaxPUNKTY:%player%} to 2475
  352. send "&6» &7Awansowales na: &314 Poziom&7!"
  353. stop
  354. if {PUNKTY:%player%} is larger than 2475:
  355. if {LVL:%player%} is less than 15:
  356. set {LVL:%player%} to 15
  357. set {MaxPUNKTY:%player%} to 2745
  358. send "&6» &7Awansowales na: &315 Poziom&7!"
  359. stop
  360. if {PUNKTY:%player%} is larger than 2745:
  361. if {LVL:%player%} is less than 16:
  362. set {LVL:%player%} to 16
  363. set {MaxPUNKTY:%player%} to 3006
  364. send "&6» &7Awansowales na: &316 Poziom&7!"
  365. stop
  366. if {PUNKTY:%player%} is larger than 3006:
  367. if {LVL:%player%} is less than 17:
  368. set {LVL:%player%} to 17
  369. set {MaxPUNKTY:%player%} to 3365
  370. send "&6» &7Awansowales na: &317 Poziom&7!"
  371. stop
  372. if {PUNKTY:%player%} is larger than 3365:
  373. if {LVL:%player%} is less than 18:
  374. set {LVL:%player%} to 18
  375. set {MaxPUNKTY:%player%} to 3587
  376. send "&6» &7Awansowales na: &318 Poziom&7!"
  377. stop
  378. if {PUNKTY:%player%} is larger than 3587:
  379. if {LVL:%player%} is less than 19:
  380. set {LVL:%player%} to 19
  381. set {MaxPUNKTY:%player%} to 3858
  382. send "&6» &7Awansowales na: &319 Poziom&7!"
  383. stop
  384. if {PUNKTY:%player%} is larger than 3858:
  385. if {LVL:%player%} is less than 20:
  386. set {LVL:%player%} to 20
  387. set {MaxPUNKTY:%player%} to 4487
  388. broadcast "&3» &7Gracz &3%player% &7awansowal na &320 Poziom&7!"
  389. stop
  390. if {PUNKTY:%player%} is larger than 4487:
  391. if {LVL:%player%} is less than 21:
  392. set {LVL:%player%} to 21
  393. set {MaxPUNKTY:%player%} to 4487
  394. send "&6» &7Awansowales na: &321 Poziom&7!"
  395. stop
  396. if {PUNKTY:%player%} is larger than 4487:
  397. if {LVL:%player%} is less than 22:
  398. set {LVL:%player%} to 22
  399. set {MaxPUNKTY:%player%} to 4487
  400. send "&6» &7Awansowales na: &322 Poziom&7!"
  401. stop
  402. if {PUNKTY:%player%} is larger than 4897:
  403. if {LVL:%player%} is less than 23:
  404. set {LVL:%player%} to 23
  405. set {MaxPUNKTY:%player%} to 5307
  406. send "&6» &7Awansowales na: &323 Poziom&7!"
  407. stop
  408. if {PUNKTY:%player%} is larger than 5307:
  409. if {LVL:%player%} is less than 24:
  410. set {LVL:%player%} to 24
  411. set {MaxPUNKTY:%player%} to 5787
  412. send "&6» &7Awansowales na: &324 Poziom&7!"
  413. stop
  414. if {PUNKTY:%player%} is larger than 5787:
  415. if {LVL:%player%} is less than 25:
  416. set {LVL:%player%} to 25
  417. set {MaxPUNKTY:%player%} to 6100
  418. send "&6» &7Awansowales na: &325 Poziom&7!"
  419. stop
  420. if {PUNKTY:%player%} is larger than 6100:
  421. if {LVL:%player%} is less than 26:
  422. set {LVL:%player%} to 26
  423. set {MaxPUNKTY:%player%} to 6456
  424. send "&6» &7Awansowales na: &326 Poziom&7!"
  425. stop
  426. if {PUNKTY:%player%} is larger than 6456:
  427. if {LVL:%player%} is less than 27:
  428. set {LVL:%player%} to 27
  429. set {MaxPUNKTY:%player%} to 6943
  430. send "&6» &7Awansowales na: &327 Poziom&7!"
  431. stop
  432. if {PUNKTY:%player%} is larger than 6943:
  433. if {LVL:%player%} is less than 28:
  434. set {LVL:%player%} to 28
  435. set {MaxPUNKTY:%player%} to 5307
  436. send "&6» &7Awansowales na: &328 Poziom&7!"
  437. stop
  438. if {PUNKTY:%player%} is larger than 7469:
  439. if {LVL:%player%} is less than 29:
  440. set {LVL:%player%} to 29
  441. set {MaxPUNKTY:%player%} to 8000
  442. send "&6» &7Awansowales na: &329 Poziom&7!"
  443. stop
  444. if {PUNKTY:%player%} is larger than 8000:
  445. if {LVL:%player%} is less than 30:
  446. set {LVL:%player%} to 30
  447. set {MaxPUNKTY:%player%} to 0
  448. broadcast "&3» &7Gracz &3%player% &7awansowal na &330 Poziom&7!"
  449. stop
  450. on mine of any ore:
  451. cancel event
  452. set block to stone
  453. send "&7Wszystko wypada z kamienia &3/stone"
  454.  
  455. every 1 minutes:
  456. loop all players:
  457. add 1 to {minuty:%loop-player%}
  458.  
  459. command /stone:
  460. trigger:
  461. send "&7--------------------&3Drop&7--------------------"
  462. send "&8>> &bDiament: &3{@procentdiament}"
  463. send "&8>> &aEmerald: &3{@procentemerald}"
  464. send "&8>> &6Zloto: &3{@procentzloto}"
  465. send "&8>> &7Zelazo: &3{@procentzelazo}"
  466. send "&8>> &4Redstone: &3{@procentredstone}"
  467. send "&8>> &0Wegiel: &3{@procentwegiel}"
  468. send "&7--------------------&3Drop&7--------------------"
  469.  
  470. on chat:
  471. set {_chat} to "{@czat}"
  472. replace all "{LVL}" with "%{LVL:%player%}%" in {_chat}
  473. replace all "{PLAYER}" with "%player%" in {_chat}
  474. replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  475. replace all "{MESSAGE}" with "%message%" in {_chat}
  476. send "%{_chat}%" to all players
  477. cancel event
Advertisement
Add Comment
Please, Sign In to add comment