DJvKHiO8
Język: Skript
|
Autor: stefanik11
command /sklep [<text>]: trigger: open chest with 3 rows named "&6Sklep" to player wait 1 tick set slot 13 of current inventory of player to paper named "&6VIP" with lore "|| &9> &fCena: &a23 coins||" loop 27 times: if slot loop-number -1 of current inventory of player is air: set slot loop-number -1 of current inventory of player to stained glass pane:7 named " " stop on inventory click: if name of current inventory of player isn't "&6Sklep": stop cancel event if clicked slot is 13: set {_coins} to (placeholder from "%%coins_amount%%" for player) pasred as number if {_coins} < 23: send "&cNie posiadasz wystarczajacej ilosci coinsow (&4Cena: 23 coins&c)!" stop execute console command "pex user %player% group set vip" execute console command "coins take %player% 23" send "&aPomyslnie zakupiles &2range VIP &a(&2Cena: 23 coins&a)!" stop stop