Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem ze skryptem na premiumcase


DominikYT

Rekomendowane odpowiedzi

Opublikowano

Witam mam problem ze skryptem , ponieważ nie wypadają z premiumcase itemy zawarte w dropie i skrzynka nie znika.

Proszę jeśli ktoś może pomóc to niech go naprawi.

 

command /premiumcase [<text>]:
    trigger:
        if arg 1 is not set:
            open chest with 5 rows named "&cDrop z premium case!" to player
            format slot 0 of player with 1 of diamond sword named "&6Miecz &c5&6/&c2" with lore "&7Enchant: &cSharpness 5&7, &cFire aspect 2&7.||&7Szansa: &c15%%" to close
            format slot 1 of player with 1 of diamond helmet named "&6Helm &c4&6/&c3" with lore "&7Enchant: &cProtection 4&7, &cUnbreaking 3&7.||&7Szansa: &c10%%" to close
            format slot 2 of player with 1 of diamond chestplate named "&6Klata &c4&6/&c3" with lore "&7Enchant: &cProtection 4&7, &cUnbreaking 3&7.||&7Szansa: &c10%%" to close
            format slot 3 of player with 1 of diamond leggings named "&6Spodnie &c4&6/&c3" with lore "&7Enchant: &cProtection 4&7, &cUnbreaking 3&7.||&7Szansa: &c10%%" to close
            format slot 4 of player with 1 of diamond boots named "&6Buty &c4&6/&c3" with lore "&7Enchant: &cProtection 4&7, &cUnbreaking 3&7.||&7Szansa: &c10%%" to close
            format slot 5 of player with 1 of tnt named "&6Rzucane TNT" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c3%%" to close
            format slot 6 of player with 32 of diamond named "&632 Diamenty" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c6%%" to close
            format slot 7 of player with 64 of diamond named "&664 Diamenty" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c4%%" to close
            format slot 8 of player with 32 of gold ingot named "&632 Zlota" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c5%%" to close
            format slot 9 of player with 64 of gold ingot named "&664 Zlota" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c3%%" to close
            format slot 10 of player with 32 of emerald named "&632 Emeraldow" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c5%%" to close
            format slot 11 of player with 64 of emerald named "&664 Emeraldow" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c3%%" to close
            format slot 12 of player with 32 of stick named "&632 Patyki" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c15%%" to close
            format slot 13 of player with 64 of stick named "&664 Patyki" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c9%%" to close
            format slot 14 of player with 32 of dirt named "&632 Ziemii" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c5%%" to close
            format slot 15 of player with 64 of dirt named "&664 Ziemii" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c3%%" to close
            format slot 16 of player with 64 of obsidian named "&664 Obsydianu" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c6%%" to close
            format slot 17 of player with 8 of ender pearl named "&68 Perel" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c3%%" to close
            format slot 18 of player with 10 of golden apple:0 named "&610 Zlotych jablek" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c2%%" to close
            format slot 19 of player with 5 of golden apple:0 named "&65 Zlotych jablek" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c4%%" to close
            format slot 20 of player with 1 of golden apple:1 named "&61 Kox" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c4%%" to close
            format slot 21 of player with 3 of golden apple:1 named "&63 Koxy" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c2%%" to close
            format slot 22 of player with 1 of beacon named "&61 &aB&be&ca&dc&eo&fn" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c0.5%%" to close
            format slot 23 of player with 1 of diamond pickaxe named "&61 Kilof &c5&6/&c3&6/&c3" with lore "&7Enchant: &cEfficiency 5&7, &cUnbreaking 3&7, &cFortune 3&7.||&7Szansa: &c7%%" to close
            format slot 24 of player with 1 of diamond pickaxe named "&61 Kilof &c6&6/&c3&6/&c3" with lore "&7Enchant: &cEfficiency 6&7, &cUnbreaking 3&7, &cFortune 3&7.||&7Szansa: &c1%%" to close    
            format slot 25 of player with 1 of iron sword named "&61 Miecz &c3&6/&c1" with lore "&7Enchant: &cKnockback 3&7, &cUnbreaking 1&7.||&7Szansa: &c2%%" to close
            format slot 26 of player with 1 of iron sword named "&61 Miecz &c8&6/&c2&6/&c3" with lore "&7Enchant: &cSharpness 8&7, &cUnbreaking 2&7, &cFire Aspect 3&7.||&7Szansa: &c1.5%%" to close
            format slot 27 of player with 1 of bow named "&61 Luk &c3&6/&c2&6/&c1" with lore "&7Enchant: &cUnbreaking 3&7, &cPunch 2&7, &cInfinity 1&7.||&7Szansa: &c3%%" to close
            format slot 28 of player with 1 of bow named "&61 Luk &c5&6/&c3&6/&c1&6/&c1" with lore "&7Enchant: &cPower 5&7, &cUnbreaking 3&7, &cInfinity 1&7, &cFlame 1&7.||&7Szansa: &c2.5%%" to close
            format slot 29 of player with 1 of diamond sword named "&61 Miecz &c6&6/&c4" with lore "&7Enchant: &cSharpness 6&7, &cFire Aspect 4&7.||&7Szansa: &c1.5%%" to close
            format slot 30 of player with 1 of diamond helmet named "&6Helm &c5&6/&c4" with lore "&7Enchant: &cProtection 5&7, &cUnbreaking 4&7.||&7Szansa: &c2%%" to close
            format slot 31 of player with 1 of diamond chestplate named "&6Klata &c5&6/&c4" with lore "&7Enchant: &cProtection 5&7, &cUnbreaking 4&7.||&7Szansa: &c2%%" to close
            format slot 32 of player with 1 of diamond leggings named "&6Spodnie &c5&6/&c4" with lore "&7Enchant: &cProtection 5&7, &cUnbreaking 4&7.||&7Szansa: &c2%%" to close
            format slot 33 of player with 1 of diamond boots named "&6Buty &c5&6/&c4" with lore "&7Enchant: &cProtection 5&7, &cUnbreaking 4&7.||&7Szansa: &c2%%" to close
            format slot 34 of player with 1 of blaze rod named "&62 Blaze Rod" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c5%%" to close
            format slot 35 of player with 1 of 372 named "&6Brodawka" with lore "&7Enchant: &cBrak&7.||&7Szansa: &c5%%" to close
            format slot 39 of player with 1 of Light green glass named "&aWlacz drop wiadomosci z Premium Case" to close then run [execute player command "Premiumcase wiadon"]
            format slot 41 of player with 1 of red glass named "&cWylacz drop wiadomosci z Premium Case" to close then run [execute player command "Premiumcase wiadoff"]
        if arg 1 is "wiadoff":
            set {WDW.%player%} to false
            send "&7Wylaczyles wiadomosci dropu &cPremium Case"
        if arg 1 is "wiadon":
            set {WDW.%player%} to true
            send "&7Wlaczyles wiadomosci dropu &cPremium Case"
on place of chest:
    if player's tool is chest named "&2&lPremium Case":
        add 1 to {tpcc::%player%}
        cancel event
        remove 1 chest named "&2&lPremium Case" from player
        loop all players:
            if {WDW.%loop-player%} is true:
                send "&2&l%player% &7otworzyl &2&lPremium Case &7i wydropil:" to loop-player
        chance of 15%:
            drop 1 diamond sword of sharpness 5 and fire aspect 2
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &cMiecz 5/2" to loop-player
        chance of 10%:
            drop 1 diamond helmet of unbreaking 3 and protection 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &cHelm 4/3" to loop-player
        chance of 10%:
            drop 1 diamond chestplate of unbreaking 3 and protection 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &cKlata 4/3" to loop-player
        chance of 10%:
            drop 1 diamond leggings of unbreaking 3 and protection 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &cSpodnie 4/3" to loop-player
        chance of 10%:
            drop 1 diamond boots of unbreaking 3 and protection 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &cButy 4/3" to loop-player
        chance of 3%:
            drop 1 tnt named "&4Rzucane TNT"
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Rzucane tnt" to loop-player
        chance of 6%:
            drop 32 diamond
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c32x Diament" to loop-player
        chance of 4%:
            drop 64 diamond
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c64x Diament" to loop-player
        chance of 5%:
            drop 32 gold ingot
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c32x Zloto" to loop-player
        chance of 3%:
            drop 64 gold ingot
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c64x Zloto" to loop-player
        chance of 5%:
            drop 32 emerald
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c32x Szmaragdow" to loop-player
        chance of 3%:
            drop 64 emerald
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c64x Szmaragdow" to loop-player
        chance of 15%:
            drop 32 stick
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c32x Patykow" to loop-player
        chance of 9%:
            drop 64 stick
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c64x Patykow" to loop-player
        chance of 5%:
            drop 32 dirt
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c32x Ziemii" to loop-player
        chance of 3%:
            drop 64 dirt
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c64x Ziemii" to loop-player
        chance of 6%:
            drop 64 obsidian
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c64x Obsydianu" to loop-player
        chance of 3%:
            drop 8 ender pearl
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c8x Perelek" to loop-player
        chance of 2%:
            drop 10 golden apple:0
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c10x Refili" to loop-player
        chance of 4%:
            drop 5 golden apple:0
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c5x Refili" to loop-player
        chance of 4%:
            drop 1 golden apple:1
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x kox" to loop-player
        chance of 2%:
            drop 3 golden apple:1
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c3x koxow" to loop-player
        chance of 0.5%:
            drop 1 beacon
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x &aB&be&ca&dc&eo&fn&aa" to loop-player
        chance of 7%:
            drop 1 diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Kilof 5/3/3" to loop-player
        chance of 1%:
            drop 1 diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Kilof &4&l6/3/3" to loop-player
        chance of 2%:
            drop 1 iron sword of knockback 3 and unbreaking 1
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Miecz 3/1" to loop-player
        chance of 1.5%:
            drop 1 iron sword of sharpness 8 and unbreaking 2 and fire aspect 3
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Miecz 8/2/3" to loop-player
        chance of 3%:
            drop 1 bow of unbreaking 3 and punch 2 and infinity 1
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Luk 3/2/1" to loop-player
        chance of 2.5%:
            drop 1 bow of power 5 and unbreaking 3 and flame 1 and infinity 1
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Luk 5/3/1/1" to loop-player
        chance of 1.5%:
            drop 1 diamond sword of sharpness 6 and fire aspect 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Miecz 6/4" to loop-player
        chance of 2%:
            drop 1 diamond helmet of protection 5 and unbreaking 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Helm 5/4" to loop-player
        chance of 2%:
            drop 1 diamond chestplate of protection 5 and unbreaking 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Cyckonosz 5/4" to loop-player
        chance of 2%:
            drop 1 diamond leggings of protection 5 and unbreaking 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Spodnie 5/4" to loop-player
        chance of 2%:
            drop 1 diamond boots of protection 5 and unbreaking 4
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Buty 5/4" to loop-player
        chance of 5%:
            drop 1 blaze rod
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c2x Blaze rod" to loop-player
        chance of 5%:
            drop 1 nether wart item
            loop all players:
                if {WDW.%loop-player%} is true:
                    send "&8- &c1x Brodawka" to loop-player

command /pc [<text>] [<integer>]:
    permission: supcio.premiumcase
    trigger:
        if arg-1 is not set:
            send "&7Poprawne uzycie &c/pc nick/all ilosc"
        if arg-1 is set:
            if arg-2 is not set:
                send "&7Poprawne uzycie &c/pc nick/all ilosc"
        if arg-1 is not "all":
            if arg-2 is set:
                loop arg-2 times:
                    execute console command "give %arg 1% chest 1 name:&2&lPremium_Case"
                broadcast "&f&lMC.&6&lREHC&f&l.PL &8-> &c%arg 1% &edostal &c%arg 2% &ePremium Case od &c%player%"
        if arg-1 is "all":
            if arg-2 is set:
                loop arg-2 times:
                    loop all players:
                        execute console command "give %loop-player% chest 1 name:&2&lPremium_Case"
                broadcast "&f&lMC.&6&lREHC&f&l.PL &8-> &eCaly serwer dostal &c%arg 2% &ePremium Case od &c%player%"    

  • 3 tygodnie później...
Opublikowano

nie korzystaj z " format slot 1", bo jest zbugowane

Jeśli ci pomogłem to daj lajka ❤️ 

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...