Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- pierozek::items::* = 0
- on right click with dragon egg named "&bPierozek":
- if size of {pierozek::items::*} is less than 5:
- cancel event
- send "&cPierozek tymczasowo niedostepny z braku przedmiotow" to player
- send "&cPoinformuj o tym administratora!" to player
- else:
- set {_item} to a random element of {pierozek::items::*}
- if player's tool is air:
- give {_item} to player
- send "&aWylosowales &b%{_item}%&a!" to player
- else:
- drop "%{_item}%" at player
- send "&aWylosowales &b%{_item}%&a!" to player
- send "&aWypadl on na ziemie, poniewaz nie masz miejsca w EQ ;)" to player
- # Komendy
- command /pierozki [<text="pomoc">] [<items>]:
- permission: pierozki.admin
- trigger:
- argument 1 is not "pomoc", "add" or "remove":
- send "&4Blad: &cNieznana komenda, lub zla nazwa item'u !"
- stop
- argument 1 is "pomoc":
- send " &1######## &e&L Pierozki &1########"
- send "&c» &3/Pierozki add nazwaitemu &8- Dodaje item do dropu!&6"
- send "&c» &3/Pierozki remove nazwaitemu &8- Usuwa item z dropu!"
- send "&c» &3/Pierozki pomoc &8- Pokazuje wszystkie komendy!&6"
- send "&c» &3/Pierozkidaj <ilosc>&8 Dostajesz pierozki! (Ilosc co 5)"
- send "&c» &3/Pierozkiall &8- Daje wszystkim graczom Pierozka!&6 "
- send "&c» &3Lista item'ow z dropu:&6 %{pierozeklose::*}%"
- send " &1######## &e&L Pierozki &1########"
- stop
- if arg 1 is "add":
- if player's tool is air:
- send "&cMusisz trzymac item w rece!" to player
- else:
- if {pierozek::items::*} contains player's tool:
- send "&cTen item juz znajduje sie na liscie!" to player
- else:
- set {_item} to player's tool
- add {_item} to {pierozek::items::*}
- send "&aDodano &b%player's tool% &ado listy!" to player
- argument 1 is "remove":
- if argument 2 is not set:
- send "&4Blad:&cMusisz wpisac nazwe przedmiotu!"
- else:
- remove argument 2 from {pierozeklose::*}
- send "&cUsunieto ' %arg 2% ' z dropu!"
- command /pierozkidaj [<text>]:
- permission: pierozki.me
- permission message: Nie masz dostepu do tej komendy!
- trigger:
- if arg 1 is "5":
- send "&6» &9Dostales &a5 &cPierozkow!"
- give 5 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "10":
- send "&6» &9Dostales &a10 &cPierozkow!"
- give 10 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "15":
- send "&6» &9Dostales &a15 &cPierozkow!"
- give 15 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "20":
- send "&6» &9Dostales &a20 &cPierozkow!"
- give 20 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "25":
- send "&6» &9Dostales &a25 &cPierozkow!"
- give 25 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "30":
- send "&6» &9Dostales &a30 &cPierozkow!"
- give 30 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "35":
- send "&6» &9Dostales &a35 &cPierozkow!"
- give 35 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "40":
- send "&6» &9Dostales &a40 &cPierozkow!"
- give 40 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "45":
- send "&6» &9Dostales &a45 &cPierozkow!"
- give 45 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "50":
- send "&6» &9Dostales &a50 &cPierozkow!"
- give 50 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "55":
- send "&6» &9Dostales &a55 &cPierozkow!"
- give 55 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "60":
- send "&6» &9Dostales &a60 &cPierozkow!"
- give 60 Dragon Egg named "&6&lPierozek"to player
- if arg 1 is "64":
- send "&6» &9Dostales &a64 &cPierozkow!"
- give Dragon Egg named "&6&lPierozek"to player
- command /pierozkiall:
- permission: pierozkiall.me
- permission message: Nie masz dostepu do tej komendy!
- trigger:
- loop all players:
- give Dragon Egg named "&6&lPierozek" to players
- send "&6» &9Dostales &aPierozka od Admina!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement