kamilpocwiard

K-DROP

Aug 17th, 2014
12,614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.07 KB | None | 0 0
  1. #KDROP v.3.0#
  2. #NIE USUWAJ TEGO#
  3. variables:
  4. {message.%player%} = true
  5. {exp.%player%} = false
  6. {cobble.%player%} = true
  7. options:
  8. nazwa: drop # TU WPISZ NAZWE PLIKU (NP. JAK MASZ KDROP.SK TO TU PISZESZ KDROP)
  9. #GRACZ
  10. villager: 0.01
  11. diamond: 4.5
  12. gold: 12.00
  13. iron: 15.00
  14. emerald: 0.6
  15. slimeball: 3.00
  16. sand: 13.00
  17. string: 1.60
  18. coal: 21.00
  19. gunpowder: 6.00
  20. lapis: 6.00
  21. redstone: 12.00
  22. perla: 0.30
  23. apple: 3.00
  24. obs: 10
  25. kwarc: 4.00
  26. EXP: 20
  27. #KORDY GRACZ
  28. vy:20 #villager
  29. dy:20 #diamenty
  30. gy:20 #gold
  31. iy:65 #iron
  32. ey:20 #emerald
  33. sly:32 #slimeball
  34. say:100 #sand
  35. sty:50 #string
  36. cy:100 #coal
  37. guy:100 #gunpowder
  38. ly:45 #lapis
  39. ry:20 #redstone
  40. py:20 #perla
  41. ay:20 #apple
  42. ky:20 #kwarc
  43. obsy: 20 #obsydian
  44. #VIP
  45. villagerv:0.02
  46. diamondv: 9.00
  47. goldv: 24.00
  48. ironv: 30.00
  49. emeraldv: 1.20
  50. slimeballv: 6.00
  51. sandv: 26.00
  52. stringv: 3.2
  53. coalv: 42.00
  54. gunpowderv: 12.00
  55. lapisv: 12.00
  56. redstonev: 24.00
  57. perlav: 0.60
  58. applev: 6.00
  59. obsv: 20.00
  60. kwarcv: 8.00
  61. EXPV: 40
  62. #KORDY VIP
  63. vyv:20 #villager
  64. dyv:20 #diamenty
  65. gyv:20 #gold
  66. iyv:65 #iron
  67. eyv:20 #emerald
  68. slyv:32 #slimeball
  69. sayv:100 #sand
  70. styv:50 #string
  71. cyv:100 #coal
  72. guyv:100 #gunpowder
  73. lyv:45 #lapis
  74. ryv:20 #redstone
  75. pyv:20 #perla
  76. ayv:20 #apple
  77. kyv:20 #kwarc
  78. on mine of stone:
  79. tool is pickaxe:
  80. player's gamemode is survival
  81. player has permission "k.drop.gracz":
  82. give {@EXP} xp to the player
  83. if player's y-coordinate is less than {@vy}:
  84. chance of {@villager}%:
  85. if player can hold 1 villager spawn egg:
  86. give 1 villager spawn egg to player
  87. if {message.%player%} is true:
  88. send "&6Trafiles na: &3Jajko osadnika"
  89. else:
  90. drop 1 villager spawn egg
  91. if {message.%player%} is true:
  92. send "&6Trafiles na: &3Jajko osadnika"
  93. if player's y-coordinate is less than {@dy}:
  94. chance of {@diamond}%:
  95. if player can hold 1 diamond:
  96. give 1 diamond to player
  97. if {message.%player%} is true:
  98. send "&6Trafiles na: &bDiament"
  99. else:
  100. drop 1 diamond
  101. if {message.%player%} is true:
  102. send "&6Trafiles na: &bDiament"
  103. if player's y-coordinate is less than {@gy}:
  104. chance of {@gold}%:
  105. if player can hold 1 gold ingot:
  106. give 1 gold ingot to player
  107. if {message.%player%} is true:
  108. send "&6Trafiles na: &6Zloto"
  109. else:
  110. drop 1 gold ingot
  111. if {message.%player%} is true:
  112. send "&6Trafiles na: &6Zloto"
  113. if player's y-coordinate is less than {@iy}:
  114. chance of {@iron}%:
  115. if player can hold 1 iron ingot:
  116. give 1 iron ingot to player
  117. if {message.%player%} is true:
  118. send "&6Trafiles na: &7Zelazo"
  119. else:
  120. drop 1 iron ingot
  121. if {message.%player%} is true:
  122. send "&6Trafiles na: &7Zelazo"
  123. if player's y-coordinate is less than {@ey}:
  124. chance of {@emerald}%:
  125. if player can hold 1 emerald:
  126. give 1 emerald to player
  127. if {message.%player%} is true:
  128. send "&6Trafiles na: &2Szmaragd"
  129. else:
  130. drop 1 emerald
  131. if {message.%player%} is true:
  132. send "&6Trafiles na: &2Szmaragd"
  133. if player's y-coordinate is less than {@sly}:
  134. chance of {@slimeball}%:
  135. if player can hold 1 slimeball:
  136. give 1 slimeball to player
  137. if {message.%player%} is true:
  138. send "&6Trafiles na: &aSzlam"
  139. else:
  140. drop 1 slimeball
  141. if {message.%player%} is true:
  142. send "&6Trafiles na: &1Szlam"
  143. if player's y-coordinate is less than {@say}:
  144. chance of {@sand}%:
  145. if player can hold 1 sand:
  146. give 1 sand to player
  147. if {message.%player%} is true:
  148. send "&6Trafiles na: &1Piasek"
  149. else:
  150. drop 1 sand
  151. if {message.%player%} is true:
  152. send "&6Trafiles na: &fPiasek"
  153. if player's y-coordinate is less than {@sty}:
  154. chance of {@string}%:
  155. if player can hold 1 string:
  156. give 1 string to player
  157. if {message.%player%} is true:
  158. send "&6Trafiles na: &fNic"
  159. else:
  160. drop 1 string
  161. if {message.%player%} is true:
  162. send "&6Trafiles na: &fNic"
  163. if player's y-coordinate is less than {@cy}:
  164. chance of {@coal}%:
  165. if player can hold 1 coal:
  166. give 1 coal to player
  167. if {message.%player%} is true:
  168. send "&6Trafiles na: &8Wegiel"
  169. else:
  170. drop 1 coal
  171. if {message.%player%} is true:
  172. send "&6Trafiles na: &8Wegiel"
  173. if player's y-coordinate is less than {@guy}:
  174. chance of {@gunpowder}%:
  175. if player can hold 1 gunpowder:
  176. give 1 gunpowder to player
  177. if {message.%player%} is true:
  178. send "&6Trafiles na: &7Proch"
  179. else:
  180. drop 1 gunpowder
  181. if {message.%player%} is true:
  182. send "&6Trafiles na: &7Proch"
  183. if player's y-coordinate is less than {@py}:
  184. chance of {@perla}%:
  185. if player can hold 1 ender pearl:
  186. give 1 ender pearl to player
  187. if {message.%player%} is true:
  188. send "&6Trafiles na: &9Perle kresu"
  189. else:
  190. drop 1 ender pearl
  191. if {message.%player%} is true:
  192. send "&6Trafiles na: &9Perle kresu"
  193. if player's y-coordinate is less than {@ly}:
  194. chance of {@lapis}%:
  195. if player can hold 5 lapis lazuli:
  196. give 2 lapis lazuli to player
  197. if {message.%player%} is true:
  198. send "&6Trafiles na: &1Lazuryt"
  199. else:
  200. drop 2 lapis lazuli
  201. if {message.%player%} is true:
  202. send "&6Trafiles na: &1Lazuryt"
  203. if player's y-coordinate is less than {@ry}:
  204. chance of {@redstone}%:
  205. if player can hold 2 redstone:
  206. give 2 redstone to player
  207. if {message.%player%} is true:
  208. send "&6Trafiles na: &cCzerwony proszek"
  209. else:
  210. drop 2 redstone
  211. if {message.%player%} is true:
  212. send "&6Trafiles na: &cCzerwony proszek"
  213. if player's y-coordinate is less than {@ay}:
  214. chance of {@apple}%:
  215. if player can hold 1 apple:
  216. give 1 apple to player
  217. if {message.%player%} is true:
  218. send "&6Trafiles na: &cJablko"
  219. else:
  220. drop 1 apple
  221. if {message.%player%} is true:
  222. send "&6Trafiles na: &cJablko"
  223. if player's y-coordinate is less than {@obs}:
  224. chance of {@obs}%:
  225. if player can hold 1 obsidian:
  226. give 1 obsidian to player
  227. if {message.%player%} is true:
  228. send "&6Trafiles na: &9Obsydian"
  229. else:
  230. drop 1 obsidian
  231. if {message.%player%} is true:
  232. send "&6Trafiles na: &9Obsydian"
  233. if player's y-coordinate is less than {@ky}:
  234. chance of {@kwarc}%:
  235. if player can hold 1 nether quartz:
  236. give 1 nether quartz to player
  237. if {message.%player%} is true:
  238. send "&6Trafiles na: &fKwarc"
  239. else:
  240. drop 1 nether quartz
  241. if {message.%player%} is true:
  242. send "&6Trafiles na: &fKwarc"
  243. player has permission "k.drop.vip":
  244. give {@EXPV} xp to the player
  245. if player's y-coordinate is less than {@vyv}:
  246. chance of {@villagerv}%:
  247. if player can hold 1 villager spawn egg:
  248. give 1 villager spawn egg to player
  249. if {message.%player%} is true:
  250. send "&6Trafiles na: &3Jajko osadnika"
  251. else:
  252. drop 1 villager spawn egg
  253. if {message.%player%} is true:
  254. send "&6Trafiles na: &3Jajko osadnika"
  255. if player's y-coordinate is less than {@dyv}:
  256. chance of {@diamondv}%:
  257. if player can hold 1 diamond:
  258. give 1 diamond to player
  259. if {message.%player%} is true:
  260. send "&6Trafiles na: &bDiament"
  261. else:
  262. drop 1 diamond
  263. if {message.%player%} is true:
  264. send "&6Trafiles na: &bDiament"
  265. if player's y-coordinate is less than {@gyv}:
  266. chance of {@goldv}%:
  267. if player can hold 1 gold ingot:
  268. give 1 gold ingot to player
  269. if {message.%player%} is true:
  270. send "&6Trafiles na: &6Zloto"
  271. else:
  272. drop 1 gold ingot
  273. if {message.%player%} is true:
  274. send "&6Trafiles na: &6Zloto"
  275. if player's y-coordinate is less than {@iyv}:
  276. chance of {@ironv}%:
  277. if player can hold 1 iron ingot:
  278. give 1 iron ingot to player
  279. if {message.%player%} is true:
  280. send "&6Trafiles na: &7Zelazo"
  281. else:
  282. drop 1 iron ingot
  283. if {message.%player%} is true:
  284. send "&6Trafiles na: &7Zelazo"
  285. if player's y-coordinate is less than {@eyv}:
  286. chance of {@emeraldv}%:
  287. if player can hold 1 emerald:
  288. give 1 emerald to player
  289. if {message.%player%} is true:
  290. send "&6Trafiles na: &2Szmaragd"
  291. else:
  292. drop 1 emerald
  293. if {message.%player%} is true:
  294. send "&6Trafiles na: &2Szmaragd"
  295. if player's y-coordinate is less than {@slyv}:
  296. chance of {@slimeballv}%:
  297. if player can hold 1 slimeball:
  298. give 1 slimeball to player
  299. if {message.%player%} is true:
  300. send "&6Trafiles na: &aSzlam"
  301. else:
  302. drop 1 slimeball
  303. if {message.%player%} is true:
  304. send "&6Trafiles na: &1Szlam"
  305. if player's y-coordinate is less than {@sayv}:
  306. chance of {@sandv}%:
  307. if player can hold 1 sand:
  308. give 1 sand to player
  309. if {message.%player%} is true:
  310. send "&6Trafiles na: &1Piasek"
  311. else:
  312. drop 1 sand
  313. if {message.%player%} is true:
  314. send "&6Trafiles na: &fPiasek"
  315. if player's y-coordinate is less than {@styv}:
  316. chance of {@stringv}%:
  317. if player can hold 1 string:
  318. give 1 string to player
  319. if {message.%player%} is true:
  320. send "&6Trafiles na: &fNic"
  321. else:
  322. drop 1 string
  323. if {message.%player%} is true:
  324. send "&6Trafiles na: &fNic"
  325. if player's y-coordinate is less than {@cyv}:
  326. chance of {@coalv}%:
  327. if player can hold 1 coal:
  328. give 1 coal to player
  329. if {message.%player%} is true:
  330. send "&6Trafiles na: &8Wegiel"
  331. else:
  332. drop 1 coal
  333. if {message.%player%} is true:
  334. send "&6Trafiles na: &8Wegiel"
  335. if player's y-coordinate is less than {@guyv}:
  336. chance of {@gunpowderv}%:
  337. if player can hold 1 gunpowder:
  338. give 1 gunpowder to player
  339. if {message.%player%} is true:
  340. send "&6Trafiles na: &7Proch"
  341. else:
  342. drop 1 gunpowder
  343. if {message.%player%} is true:
  344. send "&6Trafiles na: &7Proch"
  345. if player's y-coordinate is less than {@pyv}:
  346. chance of {@perlav}%:
  347. if player can hold 1 ender pearl:
  348. give 1 ender pearl to player
  349. if {message.%player%} is true:
  350. send "&6Trafiles na: &9Perle kresu"
  351. else:
  352. drop 1 ender pearl
  353. if {message.%player%} is true:
  354. send "&6Trafiles na: &9Perle kresu"
  355. if player's y-coordinate is less than {@lyv}:
  356. chance of {@lapisv}%:
  357. if player can hold 5 lapis lazuli:
  358. give 2 lapis lazuli to player
  359. if {message.%player%} is true:
  360. send "&6Trafiles na: &1Lazuryt"
  361. else:
  362. drop 2 lapis lazuli
  363. if {message.%player%} is true:
  364. send "&6Trafiles na: &1Lazuryt"
  365. if player's y-coordinate is less than {@ryv}:
  366. chance of {@redstonev}%:
  367. if player can hold 2 redstone:
  368. give 2 redstone to player
  369. if {message.%player%} is true:
  370. send "&6Trafiles na: &cCzerwony proszek"
  371. else:
  372. drop 2 redstone
  373. if {message.%player%} is true:
  374. send "&6Trafiles na: &cCzerwony proszek"
  375. if player's y-coordinate is less than {@ayv}:
  376. chance of {@applev}%:
  377. if player can hold 1 apple:
  378. give 1 apple to player
  379. if {message.%player%} is true:
  380. send "&6Trafiles na: &cJablko"
  381. else:
  382. drop 1 apple
  383. if {message.%player%} is true:
  384. send "&6Trafiles na: &cJablko"
  385. if player's y-coordinate is less than {@obsy}:
  386. chance of {@obsv}%:
  387. if player can hold 1 obsidian:
  388. give 1 obsidian to player
  389. if {message.%player%} is true:
  390. send "&6Trafiles na: &9Obsydian"
  391. else:
  392. drop 1 obsidian
  393. if {message.%player%} is true:
  394. send "&6Trafiles na: &9Obsydian"
  395. if player's y-coordinate is less than {@kyv}:
  396. chance of {@kwarcv}%:
  397. if player can hold 1 nether quartz:
  398. give 1 nether quartz to player
  399. if {message.%player%} is true:
  400. send "&6Trafiles na: &fKwarc"
  401. else:
  402. drop 1 nether quartz
  403. if {message.%player%} is true:
  404. send "&6Trafiles na: &fKwarc"
  405. on mine of any ore:
  406. cancel event
  407. delete event-block
  408. send "&7Ten blok wypada z stone'a. Aby dowiedziec sie wiecej wpisz &6/drop"
  409. command /drop [<text="help">] [<text>]:
  410. trigger:
  411. if arg 1 is "help":
  412. send "&7Dostepne komendy:"
  413. send "&8*&6/drop text on &7- wlacza wiadomosci drop'u na czacie"
  414. send "&8*&6/drop text off &7- wylacza wiadomosci drop'u na czacie"
  415. send "&8*&6/drop gracz &7- pokazuje drop dla gracza"
  416. send "&8*&6/drop vip &7- pokazuje drop dla vip'a"
  417. send "&8*&6/drop czysc &7-czysci cobblestone z eq"
  418. send "&8*&6/drop cobble on &7-wlacza drop cobblestone"
  419. send "&8*&6/drop cobble off &7-wylacza drop cobblestone"
  420. send "&8*&6/cobblex &7-pokazuje crafting CobbleX'a"
  421. if arg 1 is "text":
  422. if arg 2 is "on":
  423. set {message.%player%} to true
  424. send "&7Wlaczyles wiadomosci drop'u na czacie."
  425. if arg 2 is "off":
  426. set {message.%player%} to false
  427. send "&7Wylaczyles wiadomosci drop'u na czacie."
  428. if arg 1 is "czysc":
  429. remove 2304 cobblestone from player
  430. send "&7Cobblestone zostal usuniety z twojego eq"
  431. if arg 1 is "gracz":
  432. send "&7Drop dla Gracz'a:"
  433. send "&6Villager"
  434. send " &7Szansa: &6{@villager}%%"
  435. send " &7od poziomu {@vy} w dol"
  436. send "&6Diament"
  437. send " &7Szansa: &6{@diamond}%%"
  438. send " &7od poziomu {@dy} w dol"
  439. send "&6Zloto"
  440. send " &7Szansa: &6{@gold}%%"
  441. send " &7od poziomu {@gy} w dol"
  442. send "&6Zelazo"
  443. send " &7Szansa: &6{@iron}%%"
  444. send " &7od poziomu {@iy} w dol"
  445. send "&6Szmaragd"
  446. send " &7Szansa: &6{@emerald}%%"
  447. send " &7od poziomu {@ey} w dol"
  448. send "&6Szlam"
  449. send " &7Szansa: &6{@slimeball}%%"
  450. send " &7od poziomu {@sly} w dol"
  451. send "&6Piasek"
  452. send " &7Szansa: &6{@sand}%%"
  453. send " &7od poziomu {@say} w dol"
  454. send "&6Nic"
  455. send " &7Szansa: &6{@string}%%"
  456. send " &7od poziomu {@sty} w dol"
  457. send "&6Wegiel"
  458. send " &7Szansa: &6{@coal}%%"
  459. send " &7od poziomu {@cy} w dol"
  460. send "&6Proch"
  461. send " &7Szansa: &6{@gunpowder}%%"
  462. send " &7od poziomu {@guy} w dol"
  463. send "&6Lazuryt"
  464. send " &7Szansa: &6{@lapis}%%"
  465. send " &7od poziomu {@ly} w dol"
  466. send "&6Czerwony proszek"
  467. send " &7Szansa: &6{@redstone}%%"
  468. send " &7od poziomu {@ry} w dol"
  469. send "&6Perla kresu"
  470. send " &7Szansa: &6{@perla}%%"
  471. send " &7od poziomu {@py} w dol"
  472. send "&6Jablko"
  473. send " &7Szansa: &6{@apple}%%"
  474. send " &7od poziomu {@ay} w dol"
  475. send "&6Kwarc"
  476. send " &7Szansa: &6{@kwarc}%%"
  477. send " &7od poziomu {@ky} w dol"
  478. if arg 1 is "vip":
  479. send "&7Drop dla Vip'a:"
  480. send "&6Villager"
  481. send " &7Szansa: &6{@villagerv}%%"
  482. send " &7od poziomu {@vyv} w dol"
  483. send "&6Diament"
  484. send " &7Szansa: &6{@diamondv}%%"
  485. send " &7od poziomu {@dyv} w dol"
  486. send "&6Zloto"
  487. send " &7Szansa: &6{@goldv}%%"
  488. send " &7od poziomu {@gyv} w dol"
  489. send "&6Zelazo"
  490. send " &7Szansa: &6{@ironv}%%"
  491. send " &7od poziomu {@iyv} w dol"
  492. send "&6Szmaragd"
  493. send " &7Szansa: &6{@emeraldv}%%"
  494. send " &7od poziomu {@eyv} w dol"
  495. send "&6Szlam"
  496. send " &7Szansa: &6{@slimeballv}%%"
  497. send " &7od poziomu {@slyv} w dol"
  498. send "&6Piasek"
  499. send " &7Szansa: &6{@sandv}%%"
  500. send " &7od poziomu {@sayv} w dol"
  501. send "&6Nic"
  502. send " &7Szansa: &6{@stringv}%%"
  503. send " &7od poziomu {@styv} w dol"
  504. send "&6Wegiel"
  505. send " &7Szansa: &6{@coalv}%%"
  506. send " &7od poziomu {@cyv} w dol"
  507. send "&6Proch"
  508. send " &7Szansa: &6{@gunpowderv}%%"
  509. send " &7od poziomu {@guyv} w dol"
  510. send "&6Lazuryt"
  511. send " &7Szansa: &6{@lapisv}%%"
  512. send " &7od poziomu {@lyv} w dol"
  513. send "&6Czerwony proszek"
  514. send " &7Szansa: &6{@redstonev}%%"
  515. send " &7od poziomu {@ryv} w dol"
  516. send "&6Perla kresu"
  517. send " &7Szansa: &6{@perlav}%%"
  518. send " &7od poziomu {@pyv} w dol"
  519. send "&6Jablko"
  520. send " &7Szansa: &6{@applev}%%"
  521. send " &7od poziomu {@ayv} w dol"
  522. send "&6Kwarc"
  523. send " &7Szansa: &6{@kwarcv}%%"
  524. send " &7od poziomu {@kyv} w dol"
  525. if arg 1 is "cobble":
  526. if arg 2 is "on":
  527. set {cobble.%player%} to true
  528. send "&7Drop z bruku zostal wlaczony"
  529. if arg 2 is "off":
  530. set {cobble.%player%} to false
  531. send "&7Drop z bruku zostal wylaczony"
  532. on mine of stone:
  533. if {cobble.%player%} is false:
  534. cancel event
  535. set block to air
  536. drop nothing
  537. command /cobblex:
  538. trigger:
  539. send "&7Crafting CobbleX"
  540. send ""
  541. send "&8█ █ █"
  542. send "&8█ █ █"
  543. send "&8█ █ █"
  544. send ""
  545. send "&8█ - 64 cobblestone"
  546. on place of cobblestone:
  547. if name of player's tool is "&ceCobble":
  548. drop a random item of {cobblelose::*}
  549. send "&6Zostal ci wydropiony item musisz go podniesc"
  550. remove cobblestone of sharpness 1 from player
  551. cancel event
  552. command /cobblexa [<text="help">] [<items>]:
  553. permission: k.drop.cobblexa
  554. trigger:
  555. argument 1 is "help":
  556. send "&3/cobblexa add [<Item>] -&bDodanie nowego item'a do losowania."
  557. send "&3/cobblexa remove [<Item>] -&bUsuwanie item'a z losowania"
  558. send "&3/cobblexa all -&bUsuwanie wszystkich itemow z losowania"
  559. send "&3Lista item'ow z losowania:&b %{cobblelose::*}%"
  560. send "&3Jak dodajesz item musi byc jego nazwa po Angielsku."
  561. argument 1 is "add":
  562. if argument 2 is not set:
  563. send "&3Musisz wpisac nazwe przedmiotu!"
  564. else:
  565. add argument 2 to {cobblelose::*}
  566. send "&3Dodano ' %arg 2% ' do eCobble"
  567. argument 1 is "remove":
  568. if argument 2 is not set:
  569. send "&3Musisz wpisac nazwe przedmiotu!"
  570. else:
  571. remove argument 2 from {cobblelose::*}
  572. send "&3Usunieto ' %arg 2% ' z eCobble"
  573. argument 1 is "all":
  574. clear {cobblelose::*}
  575. send "&3Usunieto wszystko z eCobble"
  576. on load:
  577. new Recipe "ecobble"
  578. "ecobble".Recipe.registerIngredient{1, 64 cobblestone};
  579. "ecobble".Recipe.registerIngredient{2, 64 cobblestone};
  580. "ecobble".Recipe.registerIngredient{3, 64 cobblestone};
  581. "ecobble".Recipe.registerIngredient{4, 64 cobblestone};
  582. "ecobble".Recipe.registerIngredient{5, 64 cobblestone};
  583. "ecobble".Recipe.registerIngredient{6, 64 cobblestone};
  584. "ecobble".Recipe.registerIngredient{7, 64 cobblestone};
  585. "ecobble".Recipe.registerIngredient{8, 64 cobblestone};
  586. "ecobble".Recipe.registerIngredient{9, 64 cobblestone};
  587. "ecobble".Recipe.registerResult{2 cobblestone of sharpness 1 named "&cCobbleX"};
  588. "ecobble".Recipe.register{};
  589. on load:
  590. set {_version} to content of file "plugins/Skript/scripts/{@nazwa}.sk"
  591. set {_v} to index of "##" in {_version}
  592. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  593. set {_v3} to index of "##" in {_v2}
  594. set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  595. set {_version} to result of connect to "http://pastebin.com/raw.php?i=aq51fg9R"
  596. set {_v} to index of "##" in {_version}
  597. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of { version})
  598. set {_v3} to index of "##" in {_v2}
  599. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  600. {version} is not {version.new}:
  601. send "&7Jest dostepna nowa wersja skryptu! &6&lK-DROP &7Pobierz ja /update pobierz" to the console
  602. on join:
  603. if player is op:
  604. set {_version} to content of file "plugins/Skript/scripts/{@nazwa}.sk"
  605. set {_v} to index of "##" in {_version}
  606. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  607. set {_v3} to index of "##" in {_v2}
  608. set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  609. set {_version} to result of connect to "http://pastebin.com/raw.php?i=aq51fg9R"
  610. set {_v} to index of "##" in {_version}
  611. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of { version})
  612. set {_v3} to index of "##" in {_v2}
  613. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  614. {version} is not {version.new}:
  615. send "&7Jest dostepna nowa wersja skryptu! &6&lK-DROP &7Pobierz ja /update pobierz"
  616. command /update [<text="help">]:
  617. trigger:
  618. set {_version} to result of connect to "http://pastebin.com/raw.php?i=aq51fg9R"
  619. set {_v} to index of "##" in {_version}
  620. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  621. set {_v3} to index of "##" in {_v2}
  622. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  623. arg 1 is "sprawdz":
  624. send "&7Twoja wersja to &6%{version}%"
  625. send "&7Najnowsza wersja to &6%{version.new}%"
  626. {version} is not {version.new}:
  627. send "&6Jest dostepna nowa wersja"
  628. arg 1 is "pobierz":
  629. {version} is not {version.new}:
  630. download "http://pastebin.com/raw.php?i=aq51fg9R" to "plugins/Skript/scripts/{@nazwa}.sk"
  631. send "&6Pobrano najnowsza wersje!"
  632. else:
  633. send "&7Masz juz najnowsza wersje skrypta!"
  634. arg 1 is "help":
  635. send "&6/update sprawdz - &7sprawdza aktualizacje"
  636. send "&6/update pobierz - &7pobiera aktualizacje"
  637. stop
Advertisement
Add Comment
Please, Sign In to add comment