Facebook
From Andżej, 8 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 283
  1. # Skrypt napisany przez _MATRIX_D5 dla Drezzo
  2.  
  3.  
  4. variables:
  5.         {Chat.Sparta.%player%} = false
  6.         {Poziom.SPARTA.%player%} = 0
  7.         {Klasa.Wybierz.%player%} = false
  8.         {Chat.Nazisci.%player%} = false
  9.         {Poziom.NAZISCI.%player%} = 0
  10.         {Chat.Mega.%player%} = false
  11.         {Poziom.MEGA.%player%} = 0
  12.         {Klasa.Mega.Exp.%player%} = false
  13.         {Klasa.Nazisci.Exp.%player%} = false
  14.         {Klasa.Sparta.Exp.%player%} = false
  15.  
  16. command /Klany [<text>]:
  17.         trigger:
  18.                 arg 1 is not set:
  19.                         send "&a&l(&9Mosura&6Klan&a&l) &aUzyj komendy /Klany pomoc"
  20.                 arg 1 is "Pomoc":
  21.                         player has permissions "Klany.Pomoc":
  22.                                 send "&9&l= = = = = = = = = = =&a&l (&9Mosura&6Klan&a&l)&9&l = = = = = = = = = = ="
  23.                                 send "  &d/Klan Wybierz [klan] - Wybierasz Klan"
  24.                                 send "&5-----------------------------------------"
  25.                                 send "  &d/Klan Zrezygnuj - Rezugnujesz z Klanu"
  26.                                 send "&5-----------------------------------------"
  27.                                 send "  &d/Klan Info - Informacje o skrypcie"
  28.                                 send "&5-----------------------------------------"
  29.                                 send "  &d/Klan Lista - Ukazuje liste Klanow,"
  30.                                 send "  &ddo ktorych mozesz dolaczyc"
  31.                                 send "&5-----------------------------------------"
  32.                                 send "  &d/Klan Staty - Pokazuje twoj poziom i inne informacje o bohaterze"
  33.                                 send "  &d i inne informacje o bohaterze"
  34.                                 send "&5-----------------------------------------"
  35.                                 send "  &d/Klan Pomoc - Pomoc dotyczaca Klanow"
  36.                                 send "&9&l= = = = = = = = = = =&a&l (&9Mosura&6Klan&a&l)&9&l = = = = = = = = = = ="
  37.                         else:
  38.                                 send "&a&l(&9Mosura&6Klan&a&l) &cNie posiadasz uprawnien!"
  39.                 arg 1 is "Lista":
  40.                         player has permissions "Klany.Lista":
  41.                                 send "&9&l= = = = = = = = = = =&a&l (&9Mosura&6Klan&a&l)&9&l = = = = = = = = = = ="
  42.                                 send "  &a»&d SPARTA &7- Twoj obecny LvL - &&9[&b%{Poziom.SPARTA.%player%}%&9]"
  43.                                 send "&5-----------------------------------------"
  44.                                 send "  &a»&d NAZISCI &7- Twoj obecny LvL - &&9[&b%{Poziom.NAZISCI.%player%}%&9]"
  45.                                 send "&5-----------------------------------------"
  46.                                 send "  &a»&d MEGA &7- Twoj obecny LvL - &9[&b%{Poziom.MEGA.%player%}%&9]"
  47.                                 send "&9&l= = = = = = = = = = =&a&l (&9Mosura&6Klan&a&l)&9&l = = = = = = = = = = ="
  48.                         else:
  49.                                 send "&a&l(&9Mosura&6Klan&a&l) &cNie posiadasz uprawnien!"
  50.                 arg 1 is "Info":
  51.                         send "&9&l= = = = = = = = = = =&a&l (&9Mosura&6Klan&a&l)&9&l = = = = = = = = = = ="
  52.                         send "  &a»&d Autorem skryptu jest _MATRIX_D5!"
  53.                         send "  &a»&d Zakaz kopiowania skryptu!"
  54.                         send "&9&l= = = = = = = = = = =&a&l (&9Mosura&6Klan&a&l)&9&l = = = = = = = = = = ="
  55.                 arg 1 is "Zrezygnuj":
  56.                         player has permissions "Klany.Zrezygnuj":
  57.                                 set {Chat.Sparta.%player%} to false
  58.                                 set {Chat.Nazisci.%player%} to false
  59.                                 set {Chat.Mega.%player%} to false
  60.                                 set {Klasa.Wybierz.%player%} to false
  61.                                 set {Klasa.Nazisci.Exp.%player%} to false
  62.                                 set {Klasa.Sparta.Exp.%player%} to false
  63.                                 set {Klasa.Mega.Exp.%player%} to false
  64.                                 remove speed from the player
  65.                                 remove night vision from the player
  66.                                 remove regeneration from the player
  67.                                 execute console command "/clear %name of player%"
  68.                                 send "&a&l(&9Mosura&6Klan&a&l) &cPomyslnie zrezygnowales z klanu!"
  69.  
  70. command /Klany Wybierz [<text>]:
  71.         trigger:
  72.                 if {Klasa.Wybierz.%player%} is true:
  73.                         send "&a&l(&9Mosura&6Klan&a&l) &cJestes juz w jednym klanie!"
  74.                 if {Klasa.Wybierz.%player%} is false:
  75.                         arg 1 is not set:
  76.                                 send "&a&l(&9Mosura&6Klan&a&l) &aUzyj komendy /Klany pomoc"
  77.                         arg 1 is "Sparta":
  78.                                 player has permissions "Klany.Wybierz.Sparta":
  79.                                         send "&a&l(&9Mosura&6Klan&a&l) &aWybrales klan &6SPARTA&a!"
  80.                                         send "&a&l(&9Mosura&6Klan&a&l) &aZa chwile otrzymasz wszystkie itemy wybranego klanu!"
  81.                                         send "&a&l(&9Mosura&6Klan&a&l) &9- trwa ustawianie konfiguracji wybranego klanu przez Ciebie.."
  82.                                         wait 2 second
  83.                                         send "&2Loading:&6 1%"
  84.                                         wait 1 second
  85.                                         send "&2Loading:&6 21%"
  86.                                         send "&2Loading:&6 45%"
  87.                                         wait 1 second
  88.                                         send "&2Loading:&6 59%"
  89.                                         send "&2Loading:&6 72%"
  90.                                         wait 1 second
  91.                                         send "&2Loading:&6 84%"
  92.                                         wait 1 second
  93.                                         send "&2Loading:&6 98%"
  94.                                         send "&2Loading:&6 100%"
  95.                                         wait 2 second
  96.                                         strike lightning effect at the player
  97.                                         apply speed 1 to the player for 999 days
  98.                                         set tool of player to diamond sword of sharpness 2 named "&7&o#&6 Bron"
  99.                                         set chestplate of the player to a diamond chestplate named "&7&o#&6 Ochrona"
  100.                                         set helmet of the player to a diamond helmet of protection 2 named "&7&o#&6 Ochrona"
  101.                                         set leggings of the player to a diamond leggings named "&7&o#&6 Ochrona"
  102.                                         set boots of the player to a diamond boots of protection 2 named "&7&o#&6 Ochrona"
  103.                                         send "&a&l(&9Mosura&6Klan&a&l) &aDodano Cie do danego klanu!"
  104.                                         set {Chat.Sparta.%player%} to true
  105.                                         set {Klasa.Wybierz.%player%} to true
  106.                                         set {Klasa.Sparta.Exp.%player%} to true
  107.                                         add 1 to {Poziom.SPARTA.%player%}
  108.                                         strike lightning effect at the player
  109.                                 else:
  110.                                         send "&a&l(&9Mosura&6Klan&a&l) &cNie posiadasz uprawnien!"
  111.                         arg 1 is "Nazisci":
  112.                                 player has permissions "Gods.Wybierz.Nazisci":
  113.                                         send "&a&l(&9Mosura&6Klan&a&l) &aWybrales klan &6NAZISCI&a!"
  114.                                         send "&a&l(&9Mosura&6Klan&a&l) &aZa chwile otrzymasz wszystkie itemy wybranego klanu!"
  115.                                         send "&a&l(&9Mosura&6Klan&a&l) &9- trwa ustawianie konfiguracji wybranego klanu przez Ciebie.."
  116.                                         wait 2 second
  117.                                         send "&2Loading:&6 1%"
  118.                                         send "&2Loading:&6 21%"
  119.                                         send "&2Loading:&6 45%"
  120.                                         wait 1 second
  121.                                         send "&2Loading:&6 59%"
  122.                                         send "&2Loading:&6 72%"
  123.                                         wait 1 second
  124.                                         send "&2Loading:&6 84%"
  125.                                         send "&2Loading:&6 98%"
  126.                                         send "&2Loading:&6 100%"
  127.                                         wait 2 second
  128.                                         strike lightning effect at the player
  129.                                         apply speed 1 to the player for 999 days
  130.                                         set tool of player to diamond sword of sharpness 2 named "&7&o#&6 Bron"
  131.                                         set chestplate of the player to a diamond chestplate named "&7&o#&6 Ochrona"
  132.                                         set helmet of the player to a diamond helmet named "&7&o#&6 Ochrona"
  133.                                         set leggings of the player to a diamond leggings named "&7&o#&6 Ochrona"
  134.                                         set boots of the player to a diamond boots of protection 2 named "&7&o#&6 Ochrona"
  135.                                         send "&a&l(&9Mosura&6Klan&a&l) &aDodano Cie do danego klanu!"
  136.                                         set {Chat.Nazisci.%player%} to true
  137.                                         set {Klasa.Wybierz.%player%} to true
  138.                                         set {Klasa.Nazisci.Exp.%player%} to true
  139.                                         add 1 to {Poziom.NAZISCI.%player%}
  140.                                         strike lightning effect at the player
  141.                                 else:
  142.                                         send "&a&l(&9Mosura&6Klan&a&l) &cNie posiadasz uprawnien!"
  143.                         arg 1 is "Mega":
  144.                                 player has permissions "Gods.Wybierz.Mega":
  145.                                         send "&a&l(&9Mosura&6Klan&a&l) &aWybrales klan &6MEGA&a!"
  146.                                         send "&a&l(&9Mosura&6Klan&a&l) &aZa chwile otrzymasz wszystkie itemy wybranego klanu!"
  147.                                         send "&a&l(&9Mosura&6Klan&a&l) &9- trwa ustawianie konfiguracji wybranego klanu przez Ciebie.."
  148.                                         wait 2 second
  149.                                         send "&2Loading:&6 1%"
  150.                                         send "&2Loading:&6 21%"
  151.                                         send "&2Loading:&6 45%"
  152.                                         wait 1 second
  153.                                         send "&2Loading:&6 59%"
  154.                                         send "&2Loading:&6 72%"
  155.                                         wait 1 second
  156.                                         send "&2Loading:&6 84%"
  157.                                         send "&2Loading:&6 98%"
  158.                                         send "&2Loading:&6 100%"
  159.                                         wait 2 second
  160.                                         strike lightning effect at the player
  161.                                         apply speed 1 to the player for 999 days
  162.                                         set tool of player to diamond sword of sharpness 2 named "&7&o#&6 Bron"
  163.                                         set chestplate of the player to a diamond chestplate named "&7&o#&6 Ochrona"
  164.                                         set helmet of the player to a diamond helmet named "&7&o#&6 Ochrona"
  165.                                         set leggings of the player to a diamond leggings named "&7&o#&6 Ochrona"
  166.                                         set boots of the player to a diamond boots of protection 2 named "&7&o#&6 Ochrona"
  167.                                         send "&a&l(&9Mosura&6Klan&a&l) &aDodano Cie do danego klanu!"
  168.                                         set {Chat.Mega.%player%} to true
  169.                                         set {Klasa.Wybierz.%player%} to true
  170.                                         set {Klasa.Mega.Exp.%player%} to true
  171.                                         add 1 to {Poziom.MEGA.%player%}
  172.                                         strike lightning effect at the player
  173.                                 else:
  174.                                         send "&a&l(&9Mosura&6Klan&a&l) &cNie posiadasz uprawnien!"
  175.  
  176. on death of player:
  177.         attacker is a player
  178.         victim is a player:
  179.                 if {Klasa.Sparta.Exp.%player%} is true:
  180.                         add 1 to {Poziom.SPARTA.%attacker%}
  181.                 if {Klasa.Nazisci.Exp.%player%} is true:
  182.                         add 1 to {Poziom.NAZISCI.%attacker%}
  183.                 if {Klasa.Mega.Exp.%player%} is true:
  184.                         add 1 to {Poziom.MEGA.%attacker%}
  185.  
  186. on respawn of player:
  187.         attacker is player
  188.         victim is a player:
  189.                 if {Klasa.Sparta.Exp.%player%} is true:
  190.                 if {Klasa.Nazisci.Exp.%player%} is true:
  191.                 if {Klasa.Mega.Exp.%player%} is true:
  192.                                         wait 2 second
  193.                                         send "&2Loading:&6 1%"
  194.                                         send "&2Loading:&6 21%"
  195.                                         send "&2Loading:&6 45%"
  196.                                         wait 1 second
  197.                                         send "&2Loading:&6 59%"
  198.                                         send "&2Loading:&6 72%"
  199.                                         wait 1 second
  200.                                         send "&2Loading:&6 84%"
  201.                                         send "&2Loading:&6 98%"
  202.                                         send "&2Loading:&6 100%"
  203.                                         wait 2 second
  204.                                         strike lightning effect at the player
  205.                                         apply speed 1 to the player for 999 days
  206.                                         set tool of player to iron sword of sharpness 2 named "&7&o#&6 Bron"
  207.                                         set chestplate of the player to a iron chestplate named "&7&o#&6 Ochrona"
  208.                                         set helmet of the player to a iron helmet named "&7&o#&6 Ochrona"
  209.                                         set leggings of the player to a iron leggings named "&7&o#&6 Ochrona"
  210.                                         set boots of the player to a iron boots of protection 2 named "&7&o#&6 Ochrona"
  211.                                         send "&a&l(&9Mosura&6Klan&a&l) &aZostaly Ci oddane itemy Klanowe!"
  212.                                         strike lightning effect at the player
  213.  
  214. on chat:
  215.         if {Chat.Mega.%player%} is true:
  216.                 broadcast "&8[&6MEGA&8] &9[&b%{Poziom.MEGA.%player%}%&9]&r %name of player%&d&o >>&f  %message%"
  217.                 cancel event
  218.         if {Chat.Nazisci.%player%} is true:
  219.                 broadcast "&8[&6NAZISCI&8] &a[&b%{Poziom.NAZISCI.%player%}%&1]&r %name of player%&d&o >>&f  %message%"
  220.                 cancel event
  221.         if {Chat.Sparta.%player%} is true:
  222.                 broadcast "&8[&6SPARTA&8] &9[&b%{Poziom.SPARTA.%player%}%&9]&r %name of player%&d&o >>&f %message%"
  223.                 cancel event