fapeqTM

Sklep + Lvl

Mar 29th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 24.32 KB | None | 0 0
  1. #
  2. # Moj YouTube: fapeqTM
  3. # OPRACOWANE NA POTRZEBY PLANU "Ejzi Mine"
  4. # Zasady:
  5. # Nie Zmieniaj Autora! , Zakaz Upowszechniania bez mojej zgody!
  6. # Autorski Skrypt by fapeqTM
  7. #
  8. options:
  9.     tag: &dEasyCraft.eu #Nazwa Serwera
  10.     poczatek: 200 #Ile stone nalezy przekopac na poczatku zeby dostac lvl
  11.     dodaje: 25 #Ile ma dodawac do potrzebnego stone na kolejny lvl
  12.     permissia: sklep.fapeqTM #Permissia sklepu
  13.     ilosccase: 1 #ile case ma dawac podczas eventu
  14.     www: mc.easycraft.eu #Strona www sklepu serwera
  15.     expg: 1 #Ile Pkt zdobywa sie podczas Kopania bez rangi
  16.     expv: 2 #Ile Pkt zdobywa sie podczas Kopania z ranga VIP
  17.     expsv: 3 #Ile Pkt zdobywa sie podczas Kopania z ranga SVIP
  18.     tg: 2 #Ile Pkt zdobywa sie podczas aktywnego turboexp'a bez rangi
  19.     tv: 4 #Ile Pkt zdobywa sie podczas aktywnego turboexp'a z ranga VIP
  20.     tsv: 6 #Ile Pkt zdobywa sie podczas aktywnego turboexp'a z ranga SVIP
  21. command /resetall:
  22.     permission: {@permissia}
  23.     trigger:
  24.         set {lvl::*} to 0
  25.         set {exp::*} to 0
  26.         set {stone::*} to 0
  27.         set {potrzebny::*} to {@poczatek}
  28.         send "&cZresetowales Graczom Lvl,Exp,Wykoany Stone,Potrzebny Stone"
  29. on join:
  30.     if {lvl::%player%} is not set:
  31.         set {lvl::%player%} to 0
  32.     if {exp::%player%} is not set:
  33.         set {exp::%player%} to 0
  34.     if {stone::%player%} is not set:
  35.         set {stone::%player%} to 0
  36.     if {potrzebny::%player%} is not set:
  37.         set {potrzebny::%player%} to {@poczatek}
  38. on first join:
  39.     execute console command "kick %player% &8[{@tag}] &7Anty-Bot &c##BOTOM MOWIMY NIE!"
  40. on mine of stone:
  41.     if player has permission "sklep.gracz":
  42.         if {turboexp.akt} is false:
  43.             add {@expg} to {exp::%player%}
  44.         if {turboexp.akt} is true:
  45.             add {@tg} to {exp::%player%}
  46.     if player has permission "sklep.vip":
  47.         if {turboexp.akt} is false:
  48.             add {@expv} to {exp::%player%}
  49.         if {turboexp.akt} is true:
  50.             add {@tv} to {exp::%player%}
  51.     if player has permission "sklep.svip":
  52.         if {turboexp.akt} is false:
  53.             add {@expsv} to {exp::%player%}
  54.         if {turboexp.akt} is true:
  55.             add {@tsv} to {exp::%player%}
  56.     add 1 to {stone::%player%}
  57.     if {exp::%player%} is greater than {potrzebny::%player%}:
  58.         send "&8» &aGratulacje! &6%player% &aawansowales na &6%{lvl::%player%}%(+1) &apoziom&7."
  59.         remove {potrzebny::%player%} from {exp::%player%}
  60.         add 1 to {lvl::%player%}
  61.         add {@dodaje} to {potrzebny::%player%}
  62.         if {lvl::%player%} is 20 or 30 or 40 or 50 or 60 or 70 or 80 or 90:
  63.             broadcast "&8» &aGratulacje! Gracz &6%player% &aawansowal na &6%{lvl::%player%}% &apoziom&7."
  64.             stop
  65. command /turboexp [<text>]:
  66.     permission: {@permissia}
  67.     trigger:
  68.         if arg 1 is "off":
  69.             if {turboexp.akt} is true:
  70.                 set {turboexp.akt} to false
  71.                 send "&8» &cTurboExp &7Zostal &c&lWylaczony &7/ &CKONIEC KOPANIA :(!"
  72.         if arg 1 is "on":
  73.             if {turboexp.akt} is false:
  74.                 set {turboexp.akt} to true
  75.                 send "&8» &cTurboExp &7Zostal &a&lAktywowany! &7/ &aTo Jak idzemy Kopac ? :)"
  76.         if arg 1 is not set:
  77.             send "&8» &7By Wlaczyc lub Wylaczyc &CTurboEXP (lvl) &7napisz &2/turboexp on&7/&4/turboexp off"
  78. command /sklep:
  79.     trigger:
  80.         open chest with 4 rows named "&2&lSKLEP ZA LVL" to player
  81.         format slot 0 of player with 1 267 of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lMIECZ 5/2 || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep m1"]
  82.         format slot 3 of player with 1 267 of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lKNOCK 2 || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep m4"]
  83.         format slot 9 of player with 1 iron pickaxe of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lKILOF 5/3/3 || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep k1"]
  84.         format slot 31 of player with 32 tnt named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l2x64 TNT || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep d11"]
  85.         format slot 28 of player with 1 obsidian named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lOBSIDIAN 640x || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep d8"]
  86.         format slot 27 of player with 1 121 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l64 KopaczeFosy || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep d7"]
  87.         format slot 22 of player with 1 120 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l64 BoyFarmery || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep d5"]
  88.         format slot 23 of player with 1 121 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l64 SandFarmery || &7Koszt to: &6 oszt to: &625 lvl" to close then run [execute player command "/fsklep d6"]
  89.         format slot 12 of player with 1 iron helmet of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lSET 4/1 || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep z1"]
  90.         format slot 1 of player with 1 283 of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lMIECZ 6/2 || &7Koszt to: &635 lvl" to close then run [execute player command "/fsklep m2"]
  91.         format slot 4 of player with 1 283 of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lKNOCK 3 || &7Koszt to: &635 lvl" to close then run [execute player command "/fsklep m5"]
  92.         format slot 10 of player with 1 gold pickaxe of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lKILOF 6/3/3 || &7Koszt to: &635 lvl" to close then run [execute player command "/fsklep k2"]
  93.         format slot 13 of player with 1 golden helmet of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lSET 4/3 || &7Koszt to: &635 lvl" to close then run [execute player command "/fsklep z2"]
  94.         format slot 20 of player with 1 enchanted golden apple named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l64 KOX || &7Koszt to: &635 lvl" to close then run [execute player command "/fsklep d3"]
  95.         format slot 5 of player with 1 276 of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lKNOCK 5 || &7Koszt to: &655 lvl" to close then run [execute player command "/fsklep m6"]
  96.         format slot 2 of player with 1 276 of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lMIECZ 7/2 || &7Koszt to: &655 lvl" to close then run [execute player command "/fsklep m3"]
  97.         format slot 11 of player with 1 diamond pickaxe of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lKILOF 7/4/4 || &7Koszt to: &655 lvl" to close then run [execute player command "/fsklep k3"]
  98.         format slot 14 of player with 1 diamond helmet of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&LSET 5/3 || &7Koszt to: &655 lvl" to close then run [execute player command "/fsklep z3"]
  99.         format slot 30 of player with 1 122 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&LPANDORA x10 || &7Koszt to: &645 lvl" to close then run [execute player command "/fsklep d10"]
  100.         format slot 29 of player with 1 chest named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lCASE x10 || &7Koszt to: &645 lvl" to close then run [execute player command "/fsklep d9"]
  101.         format slot 32 of player with 64 tnt named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l4x64 TNT || &7Koszt to: &645 lvl" to close then run [execute player command "/fsklep d12"]
  102.         format slot 18 of player with 1 enchanted golden apple named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l10 KOX || &7Koszt to: &615 lvl" to close then run [execute player command "/fsklep d1"]
  103.         format slot 19 of player with 1 enchanted golden apple named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&l32 KOX || &7Koszt to: &625 lvl" to close then run [execute player command "/fsklep d2"]
  104.         format slot 21 of player with 1 gold ingot of unbreaking 10 named "&2&lKLIKNIJ BY, KUPIC" with lore "&6&lVIP || &7Koszt to: &6100 lvl" to close then run [execute player command "/fsklep d4"]
  105.         if {lvl::%player%} is set:
  106.             format slot 8 of player with 1 340 of unbreaking 10 named "&2&lTWOJ LVL:" with lore "&7LvL: &6%{lvl::%player%}%" to close
  107.         if {lvl::%player%} is not set:
  108.             format slot 8 of player with 1 340 named "&c&lRELOGNIJ BY MIEC LVL!" to close
  109.         if {exp::%player%} is set:
  110.             format slot 17 of player with 1 paper named "&2&lTWOJ EXP:" with lore "&7Exp: &6%{exp::%player%}%&7/&6%{potrzebny::%player%}%" to close
  111.         if {exp::%player%} is not set:
  112.             format slot 17 of player with 1 paper named "&c&lRELOGNIJ BY MIEC EXP" to close
  113.         if {stone::%player%} is set:
  114.             format slot 26 of player with 1 1 named "&2&lWYKOPANY STONE:" with lore "&7Stone: &6%{stone::%player%}%" to close
  115.         if {stone::%player%} is not set:
  116.             format slot 26 of player with 1 1 named "&c&lRELOGNIJ BY MIEC STONE" to close
  117.         if {turboexp.akt} is true:
  118.             format slot 35 of player with 1 clock of unbreaking 10 named "&2&lTURBOEXP" with lore "&7Jest: &2Aktywny" to close
  119.         if {turboexp.akt} is false:
  120.             format slot 35 of player with 1 clock named "&c&lTURBOEXP" with lore "&7Jest: &cWylaczony" to close
  121. command /fsklep [<text>]:
  122.     trigger:
  123.         if arg 1 is "m1":
  124.             if {lvl::%player%} is greater than 24:
  125.                 remove 625 from {potrzebny::%player%}
  126.                 remove 25 from {lvl::%player%}
  127.                 give player diamond sword of sharpness 5 and fire aspect 2 named "&4&l5/2"
  128.                 send ""
  129.                 send ""
  130.                 send "&8[{@tag}&8] &7Zakupiles &6Miecz 5/2 &7!"
  131.                 send ""
  132.                 send ""
  133.                 stop
  134.             else:
  135.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  136.                 stop
  137.         if arg 1 is "m2":
  138.             if {lvl::%player%} is greater than 34:
  139.                 remove 35 from {lvl::%player%}
  140.                 remove 875 from {potrzebny::%player%}
  141.                 give player diamond sword of sharpness 6 and fire aspect 2 named "&4&l6/2"
  142.                 send ""
  143.                 send ""
  144.                 send "&8[{@tag}&8] &7Zakupiles &6Miecz 6/2 &7!"
  145.                 send ""
  146.                 send ""
  147.                 stop
  148.             else:
  149.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  150.                 stop
  151.         if arg 1 is "m3":
  152.             if {lvl::%player%} is greater than 54:
  153.                 remove 55 from {lvl::%player%}
  154.                 remove 1250 from {potrzebny::%player%}
  155.                 give player diamond sword of sharpness 8 and fire aspect 3 named "&4&l8/3"
  156.                 send ""
  157.                 send ""
  158.                 send "&8[{@tag}&8] &7Zakupiles &6Miecz 8/3 &7!"
  159.                 send ""
  160.                 send ""
  161.                 stop
  162.             else:
  163.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  164.                 stop
  165.         if arg 1 is "m4":
  166.             if {lvl::%player%} is greater than 24:
  167.                 remove 25 from {lvl::%player%}
  168.                 give player diamond sword of knockback 2 named "&4&lKNOCK 2"
  169.                 send ""
  170.                 send ""
  171.                 send "&8[{@tag}&8] &7Zakupiles &6Knock 2 &7!"
  172.                 send ""
  173.                 send ""
  174.                 stop
  175.             else:
  176.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  177.                 stop
  178.         if arg 1 is "m5":
  179.             if {lvl::%player%} is greater than 34:
  180.                 remove 35 from {lvl::%player%}
  181.                 give player diamond sword of knockback 3 named "&4&lKNOCK 3"
  182.                 send ""
  183.                 send ""
  184.                 send "&8[{@tag}&8] &7Zakupiles &6Knock 3 &7!"
  185.                 send ""
  186.                 send ""
  187.                 stop
  188.             else:
  189.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  190.                 stop
  191.         if arg 1 is "m6":
  192.             if {lvl::%player%} is greater than 54:
  193.                 remove 55 from {lvl::%player%}
  194.                 give player diamond sword of knockback 5 named "&4&lKNOCK 5"
  195.                 send ""
  196.                 send ""
  197.                 send "&8[{@tag}&8] &7Zakupiles &6Knock 5 &7!"
  198.                 send ""
  199.                 send ""
  200.                 stop
  201.             else:
  202.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  203.         if arg 1 is "k1":
  204.             if {lvl::%player%} is greater than 24:
  205.                 remove 25 from {lvl::%player%}
  206.                 give player diamond pickaxe of efficiency 5 and fortune 3 and unbreaking 3 named "&4&l5/3/3"
  207.                 send ""
  208.                 send ""
  209.                 send "&8[{@tag}&8] &7Zakupiles &6Kilof 5/3/3 &7!"
  210.                 send ""
  211.                 send ""
  212.                 stop
  213.             else:
  214.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  215.                 stop
  216.         if arg 1 is "k2":
  217.             if {lvl::%player%} is greater than 34:
  218.                 remove 35 from {lvl::%player%}
  219.                 give player diamond pickaxe of efficiency 6 and fortune 3 and unbreaking 3 named "&4&l6/3/3"
  220.                 send ""
  221.                 send ""
  222.                 send "&8[{@tag}&8] &7Zakupiles &6Kilof 6/3/3 &7!"
  223.                 send ""
  224.                 send ""
  225.                 stop
  226.             else:
  227.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  228.                 stop
  229.         if arg 1 is "k3":
  230.             if {lvl::%player%} is greater than 54:
  231.                 remove 55 from {lvl::%player%}
  232.                 give player diamond pickaxe of efficiency 7 and fortune 4 and unbreaking 4 named "&4&l7/4/4"
  233.                 send ""
  234.                 send ""
  235.                 send "&8[{@tag}&8] &7Zakupiles &6Kilof 7/4/4 &7!"
  236.                 send ""
  237.                 send ""
  238.                 stop
  239.             else:
  240.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  241.                 stop
  242.         if arg 1 is "z1":
  243.             if {lvl::%player%} is greater than 24:
  244.                 remove 25 from {lvl::%player%}
  245.                 give player diamond helmet of protection 4 and unbreaking 1 named "&4&lSET 4/1"
  246.                 give player diamond chestplate of protection 4 and unbreaking 1 named "&4&lSET 4/1"
  247.                 give player diamond leggings of protection 4 and unbreaking 1 named "&4&lSET 4/1"
  248.                 give player diamond boots of protection 4 and unbreaking 1 named "&4&lSET 4/1"
  249.                 send ""
  250.                 send ""
  251.                 send "&8[{@tag}&8] &7Zakupiles &6Set 4/1 &7!"
  252.                 send ""
  253.                 send ""
  254.                 stop
  255.             else:
  256.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  257.                 stop
  258.         if arg 1 is "z2":
  259.             if {lvl::%player%} is greater than 34:
  260.                 remove 35 from {lvl::%player%}
  261.                 give player diamond helmet of protection 4 and unbreaking 3 named "&4&lSET 4/3"
  262.                 give player diamond chestplate of protection 4 and unbreaking 3 named "&4&lSET 4/3"
  263.                 give player diamond leggings of protection 4 and unbreaking 3 named "&4&lSET 4/3"
  264.                 give player diamond boots of protection 4 and unbreaking 3 named "&4&lSET 4/3"
  265.                 send ""
  266.                 send ""
  267.                 send "&8[{@tag}&8] &7Zakupiles &6Set 4/3 &7!"
  268.                 send ""
  269.                 send ""
  270.                 stop
  271.             else:
  272.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  273.                 stop
  274.         if arg 1 is "z3":
  275.             if {lvl::%player%} is greater than 54:
  276.                 remove 55 from {lvl::%player%}
  277.                 give player diamond helmet of protection 5 and unbreaking 3 named "&4&lSET 5/3"
  278.                 give player diamond chestplate of protection 5 and unbreaking 3 named "&4&lSET 5/3"
  279.                 give player diamond leggings of protection 5 and unbreaking 3 named "&4&lSET 5/3"
  280.                 give player diamond boots of protection 5 and unbreaking 3 named "&4&lSET 5/3"
  281.                 send ""
  282.                 send ""
  283.                 send "&8[{@tag}&8] &7Zakupiles &6Set 5/3 &7!"
  284.                 send ""
  285.                 send ""
  286.                 stop
  287.             else:
  288.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  289.                 stop
  290.         if arg 1 is "d1":
  291.             if {lvl::%player%} is greater than 14:
  292.                 remove 15 from {lvl::%player%}
  293.                 give player 10 322:1
  294.                 send ""
  295.                 send ""
  296.                 send "&8[{@tag}&8] &7Zakupiles &610 Koxow &7!"
  297.                 send ""
  298.                 send ""
  299.                 stop
  300.             else:
  301.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  302.                 stop
  303.         if arg 1 is "d2":
  304.             if {lvl::%player%} is greater than 24:
  305.                 remove 25 from {lvl::%player%}
  306.                 give player 32 322:1
  307.                 send ""
  308.                 send ""
  309.                 send "&8[{@tag}&8] &7Zakupiles &632 Koxy &7!"
  310.                 send ""
  311.                 send ""
  312.                 stop
  313.             else:
  314.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  315.                 stop
  316.         if arg 1 is "d3":
  317.             if {lvl::%player%} is greater than 34:
  318.                 remove 35 from {lvl::%player%}
  319.                 give player 64 322:1
  320.                 send ""
  321.                 send ""
  322.                 send "&8[{@tag}&8] &7Zakupiles &664 Koxow &7!"
  323.                 send ""
  324.                 send ""
  325.                 stop
  326.             else:
  327.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  328.                 stop
  329.         if arg 1 is "d4":
  330.             if {lvl::%player%} is greater than 99:
  331.                 remove 99 from {lvl::%player%}
  332.                 execute console command "setrank %player% VIP"
  333.                 send ""
  334.                 send ""
  335.                 send "&8[{@tag}&8] &7Zakupiles &6&lVIP'a &7!"
  336.                 send ""
  337.                 send ""
  338.                 stop
  339.             else:
  340.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  341.                 stop
  342.         if arg 1 is "d5":
  343.             if {lvl::%player%} is greater than 19:
  344.                 remove 20 from {lvl::%player%}
  345.                 give player 64 120 named "&8» &3BoyFarmer"
  346.                 send ""
  347.                 send ""
  348.                 send "&8[{@tag}&8] &7Zakupiles &6BoyFarmer'a x64 &7!"
  349.                 send ""
  350.                 send ""
  351.                 stop
  352.             else:
  353.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  354.                 stop
  355.         if arg 1 is "d6":
  356.             if {lvl::%player%} is greater than 19:
  357.                 remove 20 from {lvl::%player%}
  358.                 give player 64 121 named "&8» &3SandFarmer"
  359.                 send ""
  360.                 send ""
  361.                 send "&8[{@tag}&8] &7Zakupiles &6SandFarmer'a x64 &7!"
  362.                 send ""
  363.                 send ""
  364.                 stop
  365.             else:
  366.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  367.                 stop
  368.         if arg 1 is "d7":
  369.             if {lvl::%player%} is greater than 19:
  370.                 remove 20 from {lvl::%player%}
  371.                 give player 64 121 named "&8» &3KopaczFosy"
  372.                 send ""
  373.                 send ""
  374.                 send "&8[{@tag}&8] &7Zakupiles &6KopaczFosy'a x64 &7!"
  375.                 send ""
  376.                 send ""
  377.                 stop
  378.             else:
  379.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  380.                 stop
  381.         if arg 1 is "d8":
  382.             if {lvl::%player%} is greater than 24:
  383.                 remove 25 from {lvl::%player%}
  384.                 give player 640 obsidian
  385.                 send ""
  386.                 send ""
  387.                 send "&8[{@tag}&8] &7Zakupiles &6Obsidian x640 &7!"
  388.                 send ""
  389.                 send ""
  390.                 stop
  391.             else:
  392.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  393.                 stop
  394.         if arg 1 is "d9":
  395.             if {lvl::%player%} is greater than 49:
  396.                 remove 50 from {lvl::%player%}
  397.                 execute console command "case %player% 10"
  398.                 send ""
  399.                 send ""
  400.                 send "&8[{@tag}&8] &7Zakupiles &6Premium Case x10 &7!"
  401.                 send ""
  402.                 send ""
  403.                 stop
  404.             else:
  405.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  406.                 stop
  407.         if arg 1 is "d10":
  408.             if {lvl::%player%} is greater than 44:
  409.                 remove 50 from {lvl::%player%}
  410.                 execute console command "pandora %player% 10"
  411.                 send ""
  412.                 send ""
  413.                 send "&8[{@tag}&8] &7Zakupiles &6Pandora x10 &7!"
  414.                 send ""
  415.                 send ""
  416.                 stop
  417.             else:
  418.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  419.                 stop
  420.         if arg 1 is "d11":
  421.             if {lvl::%player%} is greater than 24:
  422.                 remove 25 from {lvl::%player%}
  423.                 give player 128 tnt
  424.                 send ""
  425.                 send ""
  426.                 send "&8[{@tag}&8] &7Zakupiles &6TNT 2x64 &7!"
  427.                 send ""
  428.                 send ""
  429.                 stop
  430.             else:
  431.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  432.                 stop
  433.         if arg 1 is "d12":
  434.             if {lvl::%player%} is greater than 44:
  435.                 remove 45 from {lvl::%player%}
  436.                 give player 256 tnt
  437.                 send ""
  438.                 send ""
  439.                 send "&8[{@tag}&8] &7Zakupiles &6TNT 4x64 &7!"
  440.                 send ""
  441.                 send ""
  442.                 stop
  443.             else:
  444.                 send "&8[{@tag}&8] &7Nie Posiadasz Wystarczajacego LvL: &6%{lvl::%player%}%"
  445.                 stop
  446. command /dajlvl:
  447.     permission: {@permissia}
  448.     trigger:
  449.         add 690 to {lvl::%player%}
  450.         send "&8» &cGracz &6%player% &cOtrzymal &6690 Lvl !"
  451.    
  452. #
  453. # Skrypt Opracowany przez fapeqTM
  454. # Przygotowany dla mc.easycraft.eu
  455. # Skrypt na Case'y
  456. #
  457.  
  458.  
  459.  
  460. on place of chest:
  461.     if player's tool is chest  named "&8&m+-&3 EasyCase &8&m-+" with lore " &7Postaw Na &bZiemi &7aby , &bOtworzyc! || &7Wiecej Zakupisz na {@www}":
  462.         set block to air
  463.         broadcast "&8########## &3EasyCase &8##########"
  464.         broadcast "&8## &7Gracz &6%player% &7Otwiera"
  465.         broadcast "&8## &7Case | Otrzymuje:"
  466.         broadcast "&8##################################"
  467.         chance of 40%:
  468.             drop diamond helmet of protection 5 and unbreaking 3 named "&7Helm &65/3"
  469.             broadcast "&8## &8&m+&e Helm 5/3"
  470.         chance of 40%:
  471.             drop diamond chestplate of protection 5 and unbreaking 3 named "&7Klata &65/3"
  472.             broadcast "&8## &8&m+&e Klata 5/3"
  473.         chance of 40%:
  474.             drop diamond leggings of protection 5 and unbreaking 3 named "&7Spodnie &65/3"
  475.             broadcast "&8## &8&m+&e Spodnie 5/3"
  476.         chance of 40%:
  477.             drop diamond boots of protection 5 and unbreaking 3 named "&7Buty &65/3"
  478.             broadcast "&8## &8&m+&e Buty 5/3"
  479.         chance of 60%:
  480.             drop diamond sword of sharpness 6 and fire aspect 2 named "&7Miecz &66/2"
  481.             broadcast "&8## &8&m+&e Miecz 6/2"
  482.         chance of 40%:
  483.             drop diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 named "&7Kilof &66/3/3"
  484.             broadcast "&8## &8&m+&e Kilof 6/3/3"
  485.         chance of 70%:
  486.             drop bow of infinity 1 and punch 3 and unbreaking 3 named "&7Luk &61/3/3"
  487.             broadcast "&8## &8&m+&e Luk 1/3/3"
  488.         chance of 50%:
  489.             drop bow of infinity 1 and power 6 and unbreaking 3 and flame 1 named "&7Luk &66/3/1/1"
  490.             broadcast "&8## &8&m+&e Luk 6/3/1/1"
  491.         chance of 80%:
  492.             drop 64 ender portal frame named "&8* &5BoyFarmer &8*"
  493.             broadcast "&8## &8&m+&e BoyFarmer 64x"
  494.         chance of 80%:
  495.             drop 64 ender portal frame named "&8* &6SandFarmer &8*"
  496.             broadcast "&8## &8&m+&e SandFarmer 64x"
  497.         chance of 80%:
  498.             drop 64 ender portal frame named "&8* &aKopaczFosy &8*"
  499.             broadcast "&8## &8&m+&e KopaczFosy 64x"
  500.         chance of 60%:
  501.             drop 64 sponge named "&8Stoniarka"
  502.             broadcast "&8## &8&m+&e Stoniarka 64x"
  503.         chance of 70%:
  504.             drop 32 sponge named "&8* &6Stoniarka &8*" with lore " &7Postaw na Ziemi || &7Nad blokiem pojawi sie &6Stone!"
  505.             broadcast "&8## &8&m+&e Stoniarka 32x"
  506.         chance of 50%:
  507.             drop 64 133
  508.             broadcast "&8## &8&m+&e Emeraldowe Bloki 64x"
  509.         chance of 75%:
  510.             drop 32 133
  511.             broadcast "&8## &8&m+&e Emeraldowe Bloki 32x"
  512.         chance of 95%:
  513.             drop 16 133
  514.             broadcast "&8## &8&m+&e Emeraldowe Bloki 16x"
  515.         chance of 10%:
  516.             drop 1 paper of unbreaking 10 named "&7Kod na &6VIP'a" with lore "&7Kliknij &6PPM &7,aby Uzyc! ||&7A dostaniesz &6VIP'a!"
  517.             broadcast "&8## &8&m+&e Kod na &6VIP"
  518.         chance of 1%:
  519.             drop beacon of fortune 10 named "&8* &5B&3E&2A&1C&6O&9N &8*"
  520.             broadcast "&8## &8&m-+&7 &4B&3E&2A&1C&6O&9N &7!"
  521.         broadcast "&8## &f&k::: &7Wiecej Case kupisz na Stronie!"
  522.         broadcast "&8## &f&k::: &7Naszego Serwera &3/www!"
  523.         broadcast "&8########## &3EasyCase &8##########"
  524.        
  525.        
  526.  
  527.        
  528.        
  529. on right click with paper:
  530.     if player's tool is paper of unbreaking 10 named "&7Kod na &6VIP'a" with lore "&7Kliknij &6PPM &7,aby Uzyc! ||&7A dostaniesz &6VIP'a!":
  531.         remove 1 paper of unbreaking 10 from player
  532.         execute console command "setrank %player% VIP"
  533.         broadcast "&8##########################"
  534.         broadcast "&8##"
  535.         broadcast "&8## &6%player% &7Uzyl Zwoju na &6VIP!"
  536.         broadcast "&8##"
  537.         broadcast "&8##########################"
  538.  
  539.  
  540. command /easycase [<text>]:
  541.     permission: {@permissia}
  542.     trigger:
  543.         if arg 1 is "daj":
  544.             loop {@ilosccase} times:
  545.                 execute console command "easydaj all"
  546.         if arg 1 is "daj":
  547.             broadcast ""
  548.             broadcast " "
  549.             broadcast "  "
  550.             broadcast "   "
  551.             broadcast "    "
  552.             broadcast "     "
  553.             broadcast "      "
  554.             broadcast "       "
  555.             broadcast "        "
  556.             broadcast "         "
  557.             broadcast "          "
  558.             broadcast "           "
  559.             broadcast "            "
  560.             broadcast "             "
  561.             broadcast "              "
  562.             broadcast "               "
  563.             broadcast ""
  564.             broadcast " "
  565.             broadcast "  "
  566.             broadcast "   "
  567.             broadcast "    "
  568.             broadcast "     "
  569.             broadcast "      "
  570.             broadcast "       "
  571.             broadcast "        "
  572.             broadcast "         "
  573.             broadcast "          "
  574.             broadcast "           "
  575.             broadcast "            "
  576.             broadcast "             "
  577.             broadcast "              "
  578.             broadcast "               "
  579.             broadcast ""
  580.             broadcast " "
  581.             broadcast "  "
  582.             broadcast "   "
  583.             broadcast "    "
  584.             broadcast "     "
  585.             broadcast "      "
  586.             broadcast "       "
  587.             broadcast "        "
  588.             broadcast "         "
  589.             broadcast "          "
  590.             broadcast "           "
  591.             broadcast "            "
  592.             broadcast "             "
  593.             broadcast "              "
  594.             broadcast "&8#################### &8[{@tag}&8] &8####################"
  595.             broadcast "&8## &7Caly Serwer Otrzymal &3{@ilosccase} EasyCase &7od &6%player% &8##"
  596.             broadcast "&8#################### &8[{@tag}&8] &8####################"
  597. command /easydaj [<text>] [<player>]:
  598.     permission: {@permissia}
  599.     trigger:
  600.         if arg 1 is "all":
  601.             give players {@ilosccase} chest named "&8&m+-&3 EasyCase &8&m-+" with lore " &7Postaw Na &bZiemi &7aby , &bOtworzyc! || &7Wiecej Zakupisz na {@www}"
  602.             send "&8## &cKazdy gracz Otrzymal &6{@ilosccase} EasyCase !"
  603.         if arg 1 is "^":
  604.             if arg 2 is set:
  605.                 give {@ilosccase} chest named "&8&m+-&3 EasyCase &8&m-+" with lore " &7Postaw Na &bZiemi &7aby , &bOtworzyc! || &7Wiecej Zakupisz na {@www}" to argument 2
  606.         if arg 1 is not set:
  607.             if arg 2 is not set:
  608.                 send "&8&m-+--&e&l EASYCASE &8&m--+-"
  609.                 send "&8- &e/easydaj ^ (gracz) &7- &61 EasyCase dla Gracza!"
  610.                 send "&8- &e/easydaj all &7- &61 EasyCase dla Wszystkich graczy!"
  611.                 send "&7Masz Problemy z Skryptem/Niedlugo Pluginem? &ePisz na maila"
  612.                 send "&7Moj e-mail: &[email protected]"
  613.                 send "&8&m-+--&e&l EASYCASE &8&m--+-"
Advertisement
Add Comment
Please, Sign In to add comment