Witam , wie ktoś może jak dodać do tego skryptu kod zeby bylo auto uzupełnianie przedmiotów z bazy danych, np. pluginu FunnyGuilds , próbowałem dodać itemy np dla svipa w funnyguilds ale bez efektów
itemy dla vipa i gracza działają ale jak spróbuje dodac np. range svip to lipa
Skrypt:
command /itemy:
trigger:
if player has permissions "vip.itemy":
open chest with 1 row named "&8» &4&lITEMY NA GILDIE" to player
format slot 0 of player with 32 57 named "&8» &9&lDIAXY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 57 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 57 in player's inventory%&8/&a32" to be unstealable
format slot 1 of player with 32 41 named "&8» &9&lZLOTO" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 41 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 41 in player's inventory%&8/&a32" to be unstealable
format slot 2 of player with 32 133 named "&8» &9&lSZMARAGDY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 133 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 133 in player's inventory%&8/&a32" to be unstealable
format slot 3 of player with 32 bookshelf named "&8» &9&lBIBLOTECZKI" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of bookshelf in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of bookshelf in player's inventory%&8/&a32" to be unstealable
format slot 4 of player with 32 redstone named "&8» &9&lCZERWONY PROSZEK" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of redstone in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of redstone in player's inventory%&8/&a32" to be unstealable
format slot 5 of player with 32 42 named "&8» &9&LZELAZO" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 42 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 42 in player's inventory%&8/&a32" to be unstealable
format slot 6 of player with 32 apple named "&8» &9&LJABLKA" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of apple in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of apple in player's inventory%&8/&a32" to be unstealable
format slot 7 of player with 32 341 named "&8» &9&LSLIME" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 341 in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of 341 in player's inventory%&8/&a32" to be unstealable
format slot 8 of player with 32 obsidian named "&8» &9&LOBSIDIAN" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of obsidian in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of obsidian in player's inventory%&8/&a32" to be unstealable
else:
if player has permissions "g.itemy":
open chest with 1 row named "&8» &4&lITEMY NA GILDIE" to player
format slot 0 of player with 64 diamond named "&8» &9&lDIAXY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of diamond in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of diamond in player's inventory%&8/&a64" to be unstealable
format slot 1 of player with 64 gold ingot named "&8» &9&lZLOTO" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of gold ingot in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of gold ingot in player's inventory%&8/&a64" to be unstealable
format slot 2 of player with 64 emerald named "&8» &9&lSZMARAGDY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of emerald in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of emerald in player's inventory%&8/&a64" to be unstealable
format slot 3 of player with 64 book named "&8» &9&lKSIAZKI" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of book in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of book in player's inventory%&8/&a64" to be unstealable
format slot 4 of player with 64 redstone named "&8» &9&lCZERWONY PROSZEK" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of redstone in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of redstone in player's inventory%&8/&a64" to be unstealable
format slot 5 of player with 64 iron ingot named "&8» &9&LZELAZO" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of iron ingot in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of iron ingot in player's inventory%&8/&a64" to be unstealable
format slot 6 of player with 64 apple named "&8» &9&LJABLKA" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of apple in player's enderchest%&8/&a64 ||&2● &7Ekwipunek: &a%amount of apple in player's inventory%&8/&a64" to be unstealable
format slot 7 of player with 64 341 named "&8» &9&LSLIME" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 341 in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of 341 in player's inventory%&8/&a32" to be unstealable
format slot 8 of player with 64 tnt named "&8» &9<NT" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of tnt in player's enderchest%&8/&a64 ||&2● &7Ekwipunek: &a%amount of tnt in player's inventory%&8/&a64" to be unstealable
else:
if player has permissions "svip.itemy":
open chest with 1 row named "&8» &4&lITEMY NA GILDIE" to player
format slot 0 of player with 16 57 named "&8» &9&lDIAXY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 57 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 57 in player's inventory%&8/&a32" to be unstealable
format slot 1 of player with 16 41 named "&8» &9&lZLOTO" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 41 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 41 in player's inventory%&8/&a32" to be unstealable
format slot 2 of player with 16 133 named "&8» &9&lSZMARAGDY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 133 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 133 in player's inventory%&8/&a32" to be unstealable
format slot 3 of player with 16 bookshelf named "&8» &9&lBIBLOTECZKI" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of bookshelf in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of bookshelf in player's inventory%&8/&a32" to be unstealable
format slot 4 of player with 32 redstone named "&8» &9&lCZERWONY PROSZEK" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of redstone in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of redstone in player's inventory%&8/&a32" to be unstealable
format slot 5 of player with 32 42 named "&8» &9&LZELAZO" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 42 in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of 42 in player's inventory%&8/&a32" to be unstealable
format slot 6 of player with 32 apple named "&8» &9&LJABLKA" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of apple in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of apple in player's inventory%&8/&a32" to be unstealable
format slot 7 of player with 32 341 named "&8» &9&LSLIME" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of 341 in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of 341 in player's inventory%&8/&a32" to be unstealable
format slot 8 of player with 32 obsidian named "&8» &9&LOBSIDIAN" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of obsidian in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of obsidian in player's inventory%&8/&a32" to be unstealable
Pytanie
Nigdys123 0
Witam , wie ktoś może jak dodać do tego skryptu kod zeby bylo auto uzupełnianie przedmiotów z bazy danych, np. pluginu FunnyGuilds , próbowałem dodać itemy np dla svipa w funnyguilds ale bez efektów
itemy dla vipa i gracza działają ale jak spróbuje dodac np. range svip to lipa
Skrypt:
Edytowane przez xNightPower_Umieszczam kod w code.
Odnośnik do komentarza
https://skript.pl/temat/44498-skrypt-na-itemy/Udostępnij na innych stronach
16 odpowiedzi na to pytanie
Rekomendowane odpowiedzi