Guest User

Untitled

a guest
Apr 2nd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.86 KB | None | 0 0
  1. #║▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬║#
  2. #║ Nazwa: EzoShopUniversal ║#
  3. #║ Wersja skryptu: 1.3.0 ║#
  4. #║ Autor: ReQ1908 ║#
  5. #║ Skript: 2.0.2 ║#
  6. #║ Nie zezwalam na: ║#
  7. #║ - Uznawanie sie autorem skryptu ║#
  8. #║ - Wykorzystywania kodu do wlasnych skryptow ║#
  9. #║ - Robienie z niego jakich kolwiek reklam ║#
  10. #║ - Zarabianie na skrypcie ║#
  11. #║ - Usuwanie informacji o autorze ║#
  12. #║▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬║#
  13.  
  14. #======================================================OPIS=========================================================#
  15. #W skrypcie jest wbudowane kilka rzeczy, mianowicie; Sklep za exp ktory mozna wlaczac, wylaczac oraz edytowac!
  16. #Drop expa ze stone ktory mozna wlaczac, wylaczac oraz edytowac!
  17. #System Punktow oraz LVL'i ktory mozna wlaczac, wykaczac oraz edytowac!
  18. #===================================================================================================================#
  19. ---------------------------------------------------------------------------------------------------------------------
  20. #=====================================================TO DO=========================================================#
  21. #Wymiana punktow na itemki/exp.
  22. #Upgrade - Im wiekszy lvl tym tansze rzeczy
  23. #Inna mechanika punktow
  24. #I wszystko co wpanie mi do glowy!
  25. #===================================================================================================================#
  26.  
  27.  
  28.  
  29. variables:
  30. #==========TEGO NAJLEPIEJ NIE RUSZAC :D============#
  31. {lvl.%player%} = 1
  32. {pkt.%player%} = 0
  33. {wlacz.pkt} = false
  34. {pokaz.chat} = false
  35. {skrypt.sklep} = true
  36. {exp.drop.spam} = true
  37. {exp.drop} = true
  38. #==========TEGO NAJLEPIEJ NIE RUSZAC :D============#
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. options:
  46.  
  47. #Info o autorze ! NIE USUWAJ TEGO !
  48. #==============================================================================================================================#
  49. autor: &6ReQ1908
  50. wersja: &51.3.0
  51. nazwa: ezoshop.sk #UWAGA! Aby komenda /sklep przeladuj dzialala musisz zapisac ten plik jako te nazwe czyli - ezoshop.sk !!!!
  52. tag: &8&l[&2&l&oEzo&4&lShop&8&l]&r
  53. #==============================================================================================================================#
  54.  
  55.  
  56. #GLOBALNE USTAWIENIA ### USTAWIASZ CO CHCESZ ###
  57. #==============================================================================================================================#
  58. temat: &6Sklep za LVL #NIE ZMIENIAJ
  59. tematinfo: &6Informacje o skrypcie #NIE ZMIENIAJ
  60. #==============================================================================================================================#
  61. komenda: kup #Tutaj ustawiasz jaka komenda bedzie wywolywac sie sklep
  62. komenda2: sklep #Tutaj ustawiasz jaka komenda bedzie wywolywac sie informacje o sklepie
  63. komenda3: pkt #Jaka komenda bedzie wywolywalo sie komendy o punktach
  64. blad: &cNie masz tyle expa! #Jezeli gracz nie ma wystarczajacego lvl'a ta wiadomosc sie pokarze!
  65. blad2: &cSklep jest wylaczony! #Ta wiadomosc sie pokazuje po tym jak gracz bedzie probowal cos kupic a sklep bedzie wylaczony
  66. format: level #UWAGA! Mozesz wpisac tylko "level" albo "xp"!!!format w jakiej walucie masz placic!
  67. blok: stone #po wykopaniu jakiego bloku dostaje sie exp
  68. pktblok: stone #po wykopaniu jakiego bloku dostaje sie pkt
  69. szansa: 100% #Ile % ma byc na zdobycie expa(Musi byc % po liczbie np: 95%)
  70. iloscexp: 1 #Ile expa ma dostac gracz po wykopaniu ustawionego klocka
  71. szansapkt: 100% #Ile % ma byc na zdobycie pkt(Musi byc % po liczbie np: 95%)
  72. iloscpkt: 1 #Ile pkt sie ma dostawac
  73. #==============================================================================================================================#
  74.  
  75.  
  76.  
  77. #======================================####USTAWIENIA DOTYCZACE KUPNA PRZEDMIOTOW####======================================#
  78.  
  79. #=========================PRZYKLAD - sklep===========================#
  80. #item0: stone #Tutaj ustawiasz jaki item ma byc na sprzedasz
  81. #ilositem0: 1 #Tutaj ustawiasz ile gracz ma dostawac przedmiotow
  82. #itemcost0: 1 #Tutaj ustawiasz ile item ma kosztowac nas lvl'eli
  83. #====================================================================#
  84.  
  85. #1 Diamenty
  86. item1: diamond
  87. iloscitem1: 5
  88. itemcost1: 10
  89.  
  90.  
  91. #2 Emeraldy
  92. item2: emerald
  93. iloscitem2: 5
  94. itemcost2: 15
  95.  
  96.  
  97. #3 Zelazo
  98. item3: iron ingot
  99. iloscitem3: 5
  100. itemcost3: 7
  101.  
  102.  
  103. #4 Zloto
  104. item4: gold ingot
  105. iloscitem4: 5
  106. itemcost4: 12
  107.  
  108.  
  109. #5 Enchantowane zlote jablka
  110. item5: 322:1
  111. iloscitem5: 3
  112. itemcost5: 30
  113. #==========================================================================================================================#
  114.  
  115. #================================================####USTAWIENIA DOTYCZACE STONIARKI####============================================#
  116.  
  117. stoniarkamsg: &ePolozyles generator stone! Jezeli chcesz go spowrotem zniszcz go zlotym kilofem #Wiadomosc wysylana po POLOZENIU generatora
  118. stoniarkamsg2: &cZniszczyles blok generujacy kamien! Dostales go do eq! #Wiadomosc wysylana po ZNISZCZENIU generatora
  119.  
  120. #====================================================================================================================================#
  121.  
  122. stoniarka: stone #jaki item ma byc GENERATOREM STONE
  123. stoniarkanazwa: &eGenerator kamienia #Nazwa naszego GENERATORA
  124. stoniarkacmd: stone #komenda ktora wyswietla info o stoniarkach
  125.  
  126. # % - okienko ktore jest przypisane pod dany item!
  127. # - - nie uzywane okienko
  128.  
  129.  
  130. #1 #--
  131. # ---
  132. # ---
  133. 1: stone
  134.  
  135.  
  136. #2 -#-
  137. # ---
  138. # ---
  139. 2: stone
  140.  
  141.  
  142. #3 --#
  143. # ---
  144. # ---
  145. 3: stone
  146.  
  147.  
  148. #4 ---
  149. # #--
  150. # ---
  151. 4: oak wood planks
  152.  
  153.  
  154. #5 ---
  155. # -#-
  156. # ---
  157. 5: iron ingot
  158.  
  159.  
  160. #6 ---
  161. # --#
  162. # ---
  163. 6: oak wood planks
  164.  
  165.  
  166. #7 ---
  167. # ---
  168. # #--
  169. 7: cobblestone
  170.  
  171.  
  172. #8 ---
  173. # ---
  174. # -#-
  175. 8: emerald
  176.  
  177.  
  178. #9 ---
  179. # ---
  180. # --#
  181. 9: cobblestone
  182. #======================================================####KONIEC USTAWIEN####=======================================================#
  183.  
  184.  
  185. #$#$#KOD SKRYPTU#$#$#
  186.  
  187. on script load:
  188. register new shaped recipe for {@stoniarka} named "{@stoniarkanazwa}" using {@1}, {@2}, {@3}, {@4}, {@5}, {@6}, {@7}, {@8}, {@9}
  189. on place of {@stoniarka}:
  190. if name of the player's tool is "{@stoniarkanazwa}":
  191. send "{@stoniarkamsg}"
  192. set {s.%event-block%} to true
  193. set event-block to stone
  194. stop
  195. on break of stone:
  196. if {s.%event-block%} is true:
  197. if player is holding gold pickaxe:
  198. cancel event
  199. send "{@stoniarkamsg2}"
  200. set event-block to air
  201. if player can hold 1 stone named "{@stoniarkanazwa}":
  202. give 1 stone named "{@stoniarkanazwa}" to the player
  203. stop
  204. else:
  205. drop 1 stone named "{@stoniarkanazwa}"
  206. stop
  207. else:
  208. wait 1 seconds
  209. set event-block to stone
  210. stop
  211. command /{@stoniarkacmd} [<text>]:
  212. trigger:
  213. send "&7==============================================="
  214. send "&5Na serwerze sa automatyczne stoniarki"
  215. send " &6OTO ICH CRAFTING:"
  216. send " &3@ &8- &6{@2}"
  217. send " &3$ &8- &6{@4} &4@ @ @"
  218. send " &3& &8- &6{@7} &4$ % $"
  219. send " &3% &8- &6{@5} &4& * &"
  220. send " &3* &8- &6{@8}"
  221. send "&7==============================================="
  222. command /{@komenda} [<text>]:
  223. trigger:
  224. if arg 1 is not set:
  225. send "&cBlad! Wpisz - &4/sklep help"
  226. if arg 1 is "diamenty":
  227. if {skrypt.sklep} is true:
  228. if player's {@format} is greater than {@itemcost1} -1:
  229. send "&aZostalo ci zabrane {@itemcost1} {@format}!"
  230. reduce player's {@format} by {@itemcost1}
  231. execute console command "give %player% {@item1} {@iloscitem1}"
  232. else:
  233. send "{@blad}"
  234. else:
  235. send "{@blad2}"
  236.  
  237. if arg 1 is "szmaragdy":
  238. if {skrypt.sklep} is true:
  239. if player's {@format} is greater than {@itemcost2} -1:
  240. send "&aZostalo ci zabrane {@itemcost2} {@format}!"
  241. reduce player's {@format} by {@itemcost2}
  242. execute console command "give %player% {@item2} {@iloscitem2}"
  243. else:
  244. send "{@blad}"
  245. else:
  246. send "{@blad2}"
  247.  
  248. if arg 1 is "zelazo":
  249. if {skrypt.sklep} is true:
  250. if player's {@format} is greater than {@itemcost3} -1:
  251. send "&aZostalo ci zabrane {@itemcost3} {@format}!"
  252. reduce player's {@format} by {@itemcost3}
  253. execute console command "give %player% {@item3} {@iloscitem3}"
  254. else:
  255. send "{@blad}"
  256. else:
  257. send "{@blad2}"
  258.  
  259. if arg 1 is "zloto":
  260. if {skrypt.sklep} is true:
  261. if player's {@format} is greater than {@itemcost4} -1:
  262. send "&aZostalo ci zabrane {@itemcost4} {@format}!"
  263. reduce player's {@format} by {@itemcost4}
  264. execute console command "give %player% {@item4} {@iloscitem4}"
  265. else:
  266. send "{@blad}"
  267. else:
  268. send "{@blad2}"
  269.  
  270. if arg 1 is "koxy":
  271. if {skrypt.sklep} is true:
  272. if player's {@format} is greater than {@itemcost5} -1:
  273. send "&aZostalo ci zabrane {@itemcost5} {@format}!"
  274. reduce player's {@format} by {@itemcost5}
  275. execute console command "give %player% {@item5} {@iloscitem5}"
  276. else:
  277. send "{@blad}"
  278. else:
  279. send "{@blad2}"
  280. command /{@komenda2} [<text>] [<text>]:
  281. trigger:
  282. #======================================================#KOMENDA SKLEP HELP#========================================================#
  283. if arg 1 is "help":
  284. send "&7==============================================="
  285. send "{@tag}&5/sklep info - wyswietla rzeczy do kupienia"
  286. send "{@tag}&5/sklep skrypt - wyswietla info o skrypcie i autorze"
  287. send "{@tag}&5/sklep przeladuj - przeladowuje skrypt"
  288. send "{@tag}&5/sklep wlacz - wlacza sklep za exp"
  289. send "{@tag}&5/sklep wylacz - wylacza sklep za exp"
  290. send "&3Wpisz &e/sklep help 2 &3po reszte komend"
  291. send "&7==============================================="
  292. if arg 2 is "2":
  293. send "&7==============================================="
  294. send "{@tag}&5/pkt - pokazuje twoja obecna ilosc punktow"
  295. send "{@tag}&5/pkt wlacz - wlacza drop punktow"
  296. send "{@tag}&5/pkt wylacz - wylacza drop punktow"
  297. send "{@tag}&5/pkt chat wlacz - po wykopaniu klocka wyswietla ile gracz dostal punktow"
  298. send "{@tag}&5/pkt chat wylacz - wylacza powyzsza opcje"
  299. send "&3Wpisz &e/sklep help 3 &3po reszte komend"
  300. send "&7==============================================="
  301. if arg 1 is "help":
  302. if arg 2 is "3":
  303. send "&7==============================================="
  304. send "{@tag}&5/exp wlacz - wlacza drop expa"
  305. send "{@tag}&5/exp wylacz - wylacza drop expa"
  306. send "{@tag}&5/exp chat wylacz - jezeli exp jest wylaczony wyswietlaja sie komunikaty o tym, zeby je wylaczyc wpisujemy wlasnie ta komende"
  307. send "{@tag}&5/exp chat wlacz - wlacza powyzsza opcje"
  308. send "&eSkrypt stworzyl &6ReQ1908"
  309. send "&7==============================================="
  310. #==================================================================================================================================#
  311. if arg 1 is "przeladuj":
  312. if player has permission "sklep.all":
  313. execute console command "sk reload {@nazwa}"
  314. send "&aPrzeladowales skrypt"
  315. if arg 1 is "wlacz":
  316. if player has permission "sklep.all":
  317. set {skrypt.sklep} to true
  318. send "&aWlaczyles sklep za exp"
  319. if arg 1 is "wylacz":
  320. if player has permission "sklep.all":
  321. set {skrypt.sklep} to false
  322. send "&cWylaczyles sklep za exp"
  323. if arg 1 is not set:
  324. send "&cBlad! Wpisz - &4/sklep help"
  325. if arg 1 is "skrypt":
  326. send "&5==========={@tematinfo}&5============"
  327. send "&7Autor skryptu: {@autor}"
  328. send "&7Wersja skryptu: {@wersja}"
  329. send "&5=========================================="
  330. if arg 1 is "info":
  331. send "&5================={@temat}&5====================="
  332. send "&a/kup diamenty - {@itemcost1} lvl!"
  333. send "&a/kup szmaragdy - {@itemcost2} lvl!"
  334. send "&a/kup zelazo - {@itemcost3} lvl!"
  335. send "&a/kup zloto - {@itemcost4} lvl!"
  336. send "&a/kup koxy - {@iloscitem5} koxy za {@itemcost5} lvl!"
  337. send "&5================================================="
  338. command /{@komenda3} [<text>] [<text>]:
  339. trigger:
  340. if arg 1 is "wlacz":
  341. set {wlacz.pkt} to true
  342. send "&aWlaczyles drop punktow"
  343. if arg 1 is "wylacz":
  344. set {wlacz.pkt} to false
  345. send "&cWylaczyles drop punktow"
  346. if arg 1 is not set:
  347. if arg 2 is not set:
  348. send "&7Masz &6%{pkt.%player%}% &7punktow"
  349. if arg 1 is "chat":
  350. if arg 2 is "wlacz":
  351. set {pokaz.chat} to true
  352. send "&aWlaczyles wiadomosci o dropie punktow na chacie"
  353. if arg 1 is "chat":
  354. if arg 2 is "wylacz":
  355. set {pokaz.chat} to false
  356. send "&cWylaczyles wiadomosci o dropie punktow na chacie"
  357. if arg 1 is "chat":
  358. if arg 2 is not set:
  359. send "&ePoprawne uzycie &a/pkt chat wlacz &elub &c/pkt chat wylacz"
  360. command /exp [<text>] [<text>]:
  361. trigger:
  362. if arg 1 is "spam":
  363. if arg 2 is "wylacz":
  364. set {exp.drop.spam} to false
  365. if arg 2 is "wlacz":
  366. set {exp.drop.spam} to true
  367. if arg 1 is "wylacz":
  368. if player has permission "exp.wlacz":
  369. set {exp.drop} to false
  370. send "&cWylaczyles drop exp"
  371. if arg 1 is "wlacz":
  372. if player has permission "exp.wlacz":
  373. set {exp.drop} to true
  374. send "&aWlaczyles drop exp"
  375. on chat:
  376. set the player's display name to "&8&l[&3&l%{lvl.%player%}%&8&l] &7%display name of player%"
  377. on mine of {@blok}:
  378. if {exp.drop} is true:
  379. chance of {@szansa}:
  380. add {@iloscexp} xp to player
  381. else:
  382. if {exp.drop.spam} is true:
  383. send "&cDrop ze stone jest wylaczony | Aby wylaczyc ta wiadomosc napisz &4/exp spam wylacz"
  384. on mine of {@pktblok}:
  385. if {wlacz.pkt} is true:
  386. chance of {@szansapkt}:
  387. add {@iloscpkt} to {pkt.%player%}
  388. if {pokaz.chat} is true:
  389. send "&7Dostales &6+{@iloscpkt}&7 pkt"
  390. if {pkt.%player%} is larger than 60:
  391. if {lvl.%player%} is less than 2:
  392. set {lvl.%player%} to 2
  393. send " &6» &7Awansowales na: &62 Poziom&7!"
  394. stop
  395. if {pkt.%player%} is larger than 120:
  396. if {lvl.%player%} is less than 3:
  397. set {lvl.%player%} to 3
  398. send " &6» &7Awansowales na: &63 Poziom&7!"
  399. stop
  400. if {pkt.%player%} is larger than 180:
  401. if {lvl.%player%} is less than 4:
  402. set {lvl.%player%} to 4
  403. send " &6» &7Awansowales na: &64 Poziom&7!"
  404. stop
  405. if {pkt.%player%} is larger than 240:
  406. if {lvl.%player%} is less than 5:
  407. set {lvl.%player%} to 5
  408. send " &6» &7Awansowales na: &65 Poziom&7!"
  409. stop
  410. if {pkt.%player%} is larger than 320:
  411. if {lvl.%player%} is less than 6:
  412. set {lvl.%player%} to 6
  413. send " &6» &7Awansowales na: &66 Poziom&7!"
  414. stop
  415. if {pkt.%player%} is larger than 460:
  416. if {lvl.%player%} is less than 7:
  417. set {lvl.%player%} to 7
  418. send " &6» &7Awansowales na: &67 Poziom&7!"
  419. stop
  420. if {pkt.%player%} is larger than 580:
  421. if {lvl.%player%} is less than 8:
  422. set {lvl.%player%} to 8
  423. send " &6» &7Awansowales na: &68 Poziom&7!"
  424. stop
  425. if {pkt.%player%} is larger than 760:
  426. if {lvl.%player%} is less than 9:
  427. set {lvl.%player%} to 9
  428. send " &6» &7Awansowales na: &69 Poziom&7!"
  429. stop
  430. if {pkt.%player%} is larger than 960:
  431. if {lvl.%player%} is less than 10:
  432. set {lvl.%player%} to 10
  433. send " &6» &7Awansowales na: &610 Poziom&7!"
  434. stop
  435. if {pkt.%player%} is larger than 1140:
  436. if {lvl.%player%} is less than 11:
  437. set {lvl.%player%} to 11
  438. send " &6» &7Awansowales na: &611 Poziom&7!"
  439. stop
  440. if {pkt.%player%} is larger than 1320:
  441. if {lvl.%player%} is less than 12:
  442. set {lvl.%player%} to 12
  443. send " &6» &7Awansowales na: &612 Poziom&7!"
  444. stop
  445. if {pkt.%player%} is larger than 1540:
  446. if {lvl.%player%} is less than 13:
  447. set {lvl.%player%} to 13
  448. send " &6» &7Awansowales na: &613 Poziom&7!"
  449. stop
  450. if {pkt.%player%} is larger than 1760:
  451. if {lvl.%player%} is less than 14:
  452. set {lvl.%player%} to 14
  453. send " &6» &7Awansowales na: &614 Poziom&7!"
  454. stop
  455. if {pkt.%player%} is larger than 1980:
  456. if {lvl.%player%} is less than 15:
  457. set {lvl.%player%} to 15
  458. send " &6» &7Awansowales na: &615 Poziom&7!"
  459. broadcast "&7Gracz &6%player% &7awansowal na &615 poziom&7!"
  460. stop
  461. if {pkt.%player%} is larger than 2180:
  462. if {lvl.%player%} is less than 16:
  463. set {lvl.%player%} to 16
  464. send " &6» &7Awansowales na: &616 Poziom&7!"
  465. stop
  466. if {pkt.%player%} is larger than 2300:
  467. if {lvl.%player%} is less than 17:
  468. set {lvl.%player%} to 17
  469. send " &6» &7Awansowales na: &617 Poziom&7!"
  470. stop
  471. if {pkt.%player%} is larger than 2520:
  472. if {lvl.%player%} is less than 18:
  473. set {lvl.%player%} to 18
  474. send " &6» &7Awansowales na: &618 Poziom&7!"
  475. stop
  476. if {pkt.%player%} is larger than 2740:
  477. if {lvl.%player%} is less than 19:
  478. set {lvl.%player%} to 19
  479. send " &6» &7Awansowales na: &619 Poziom&7!"
  480. stop
  481. if {pkt.%player%} is larger than 2960:
  482. if {lvl.%player%} is less than 20:
  483. set {lvl.%player%} to 20
  484. send " &6» &7Awansowales na: &620 Poziom&7!"
  485. stop
  486. if {pkt.%player%} is larger than 3180:
  487. if {lvl.%player%} is less than 21:
  488. set {lvl.%player%} to 21
  489. send " &6» &7Awansowales na: &621 Poziom&7!"
  490. stop
  491. if {pkt.%player%} is larger than 3400:
  492. if {lvl.%player%} is less than 22:
  493. set {lvl.%player%} to 22
  494. send " &6» &7Awansowales na: &622 Poziom&7!"
  495. stop
  496. if {pkt.%player%} is larger than 3620:
  497. if {lvl.%player%} is less than 23:
  498. set {lvl.%player%} to 23
  499. send " &6» &7Awansowales na: &623 Poziom&7!"
  500. stop
  501. if {pkt.%player%} is larger than 3840:
  502. if {lvl.%player%} is less than 24:
  503. set {lvl.%player%} to 24
  504. send " &6» &7Awansowales na: &624 Poziom&7!"
  505. stop
  506. if {pkt.%player%} is larger than 4060:
  507. if {lvl.%player%} is less than 25:
  508. set {lvl.%player%} to 25
  509. send " &6» &7Awansowales na: &625 Poziom&7!"
  510. stop
  511. if {pkt.%player%} is larger than 4280:
  512. if {lvl.%player%} is less than 26:
  513. set {lvl.%player%} to 26
  514. send " &6» &7Awansowales na: &626 Poziom&7!"
  515. stop
  516. if {pkt.%player%} is larger than 4500:
  517. if {lvl.%player%} is less than 27:
  518. set {lvl.%player%} to 27
  519. send " &6» &7Awansowales na: &627 Poziom&7!"
  520. stop
  521. if {pkt.%player%} is larger than 4720:
  522. if {lvl.%player%} is less than 28:
  523. set {lvl.%player%} to 28
  524. send " &6» &7Awansowales na: &628 Poziom&7!"
  525. stop
  526. if {pkt.%player%} is larger than 4940:
  527. if {lvl.%player%} is less than 29:
  528. set {lvl.%player%} to 29
  529. send " &6» &7Awansowales na: &629 Poziom&7!"
  530. stop
  531. if {pkt.%player%} is larger than 5160:
  532. if {lvl.%player%} is less than 30:
  533. set {lvl.%player%} to 30
  534. send " &6» &7Awansowales na: &630 Poziom&7!"
  535. broadcast "&7Gracz &6%player% &7awansowal na &630 poziom&7!"
  536. stop
Advertisement
Add Comment
Please, Sign In to add comment