DevDavEd_zQ 2 Opublikowano 25 lipca 2024 Udostępnij Opublikowano 25 lipca 2024 Witam potrzebuje skrypt na gui tak jak z anarchia.gg ze np mozna kupywac przedmioty lub sprzedawac za cene np 0.02-50$ rzeczy ktore maja byc na sprzedaz: bruk 0.02 zl Wegiel 0.08 zl ruda miedzi 0.26 ruda zelaza 0.52 diament 6.00 redstone 0.62 bone 2.00 bambus 0.10 zgnile mieso 2.00 oko pająka 2.00 Nić 2.00 pszenica 1.22 trzina cukrowa 0.60 lapis lazuli 0.32 dripstone 3.00 jablko 4.00 deepslate 0.02 jasnopyl 1.00 kwarc 0.50 pufferfish 50zl i zeby kupic tyle samo zl Cytuj Odnośnik do komentarza https://skript.pl/temat/57936-skrypt-na-skup-przedmiotow-z-anarchiagg/ Udostępnij na innych stronach Więcej opcji udostępniania...
Wyloteq 0 Opublikowano 8 maja 2025 Udostępnij Opublikowano 8 maja 2025 command /sklepzawalute: trigger: set {_gui} to chest inventory with 5 rows named "&7Sklep" set slot 21 of {_gui} to lime concrete named "&aKupno przedmiotow" set slot 23 of {_gui} to red concrete named "&cSprzedaz przedmiotow" open {_gui} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&7Sklep": cancel event if clicked slot is 21: execute player command "/|sklep-kupno" if clicked slot is 23: execute player command "/|sklep-sprzedaz" command /|sklep-kupno: trigger: set {_gui1} to chest inventory with 6 rows named "&8Wybierz sklep (&7&lKUPNO&8)" set slot 49 of {_gui1} to barrier named "&cPowrot" set slot 10 of {_gui1} to cow spawn egg with lore "&8>> &7Koszt Produktu: &f200$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 11 of {_gui1} to lapis lazuli with lore "&8>> &7Koszt Produktu: &f0.62$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 12 of {_gui1} to sugar cane with lore "&8>> &7Koszt Produktu: &f15$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 13 of {_gui1} to bookshelf with lore "&8>> &7Koszt Produktu: &f30$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 14 of {_gui1} to ender chest with lore "&8>> &7Koszt Produktu: &f150$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 15 of {_gui1} to villager spawn egg with lore "&8>> &7Koszt Produktu: &f500$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 16 of {_gui1} to enchanting table with lore "&8>> &7Koszt Produktu: &f150$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 20 of {_gui1} to oak log with lore "&8>> &7Koszt Produktu: &f5$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 21 of {_gui1} to apple with lore "&8>> &7Koszt Produktu: &f15$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 22 of {_gui1} to chorus fruit with lore "&8>> &7Koszt Produktu: &f10000$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 23 of {_gui1} to emerald with lore "&8>> &7Koszt Produktu: &f15$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 24 of {_gui1} to gunpowder with lore "&8>> &7Koszt Produktu: &f468.75$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 30 of {_gui1} to name tag with lore "&8>> &7Koszt Produktu: &f50$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 31 of {_gui1} to enchanted book of curse of vanishing with lore "&8>> &7Koszt Produktu: &f500$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" set slot 32 of {_gui1} to cobweb with lore "&8>> &7Koszt Produktu: &f50$" and "" and "&aKliknij &2LEWYM&a, aby zakupic!" open {_gui1} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&8Wybierz sklep (&7&lKUPNO&8)": cancel event if clicked slot is 49: execute player command "/sklepzawalute" if clicked slot is 10: execute player command "/|sklep-kupno-cow-spawn-egg" if clicked slot is 11: execute player command "/|sklep-kupno-lapis-lazuli" if clicked slot is 12: execute player command "/|sklep-kupno-sugar-cane" if clicked slot is 13: execute player command "/|sklep-kupno-bookshelf" if clicked slot is 14: execute player command "/|sklep-kupno-ender-chest" if clicked slot is 15: execute player command "/|sklep-kupno-villager-spawn-egg" if clicked slot is 16: execute player command "/|sklep-kupno-enchanting-table" if clicked slot is 20: execute player command "/|sklep-kupno-oak-log" if clicked slot is 21: execute player command "/|sklep-kupno-apple" if clicked slot is 22: execute player command "/|sklep-kupno-chorus-fruit" if clicked slot is 23: execute player command "/|sklep-kupno-emerald" if clicked slot is 24: execute player command "/|sklep-kupno-gunpowder" if clicked slot is 30: execute player command "/|sklep-kupno-name-tag" if clicked slot is 31: execute player command "/|sklep-kupno-enchanted-book" if clicked slot is 32: execute player command "/|sklep-kupno-cobweb" command /|sklep-kupno-cow-spawn-egg: trigger: set {_gui2} to chest inventory with 5 rows named "&8Wybierz sklep (&7&lKUPNO&8) | Cow spawn egg" set slot 40 of {_gui2} to barrier named "&cPowrot" set slot 31 of {_gui2} to lime dye named "&aZatwierdz Zakup" with lore "&7Kliknij aby zatwierdzic ten zakup." set slot 32 of {_gui2} to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" set slot 23 of {_gui2} to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" set slot 14 of {_gui2} to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 19 of {_gui2} to cow spawn egg named "&eJajo Krowy" with lore "&8>> &7Cena kupna: &f200$" open {_gui2} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&8Wybierz sklep (&7&lKUPNO&8) | Cow spawn egg": set {_item} to slot 19 of event-inventory cancel event if clicked slot is 40: execute player command "/|sklep-Kupno" if clicked slot is 32: add 1 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is 64: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 23: if amount of {_item} in event-inventory is less than 55: add 10 of {_item} to slot 19 of event-inventory else: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 14: add 64 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 30: if slot 30 of event-inventory is air: cancel event if slot 30 of event-inventory is red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke": remove 1 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 21: if slot 21 of event-inventory is air: cancel event if slot 21 of event-inventory is red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk": if amount of {_item} in event-inventory is 10: remove 9 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is more than 10: remove 10 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 12: if slot 12 of event-inventory is air: cancel event if slot 12 of event-inventory is red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk": if amount of {_item} in event-inventory is 64: remove 63 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 31: set {_cow} to amount of {_item} in event-inventory if player's balance is more than or equal to {_cow} * 200: set {_cowcost} to {_cow} * 200 remove {_cowcost} from player's balance give {_cow} of cow spawn egg to player close player's inventory send message "&7Pomyslnie wykonano transakcje!" else: send message "&cNie stac cie na ten przedmiot!" command /|sklep-kupno-lapis-lazuli: trigger: set {_gui2} to chest inventory with 5 rows named "&8Wybierz sklep (&7&lKUPNO&8) | Lapis Lazuli" set slot 40 of {_gui2} to barrier named "&cPowrot" set slot 31 of {_gui2} to lime dye named "&aZatwierdz Zakup" with lore "&7Kliknij aby zatwierdzic ten zakup." set slot 32 of {_gui2} to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" set slot 23 of {_gui2} to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" set slot 14 of {_gui2} to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 19 of {_gui2} to lapis lazuli named "&eLapis Lazuli" with lore "&8>> &7Cena kupna: &f0.62$" open {_gui2} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&8Wybierz sklep (&7&lKUPNO&8) | Lapis Lazuli": set {_item} to slot 19 of event-inventory cancel event if clicked slot is 40: execute player command "/|sklep-Kupno" if clicked slot is 32: add 1 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is 64: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 23: if amount of {_item} in event-inventory is less than 55: add 10 of {_item} to slot 19 of event-inventory else: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 14: add 64 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 30: if slot 30 of event-inventory is air: cancel event if slot 30 of event-inventory is red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke": remove 1 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 21: if slot 21 of event-inventory is air: cancel event if slot 21 of event-inventory is red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk": if amount of {_item} in event-inventory is 10: remove 9 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is more than 10: remove 10 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 12: if slot 12 of event-inventory is air: cancel event if slot 12 of event-inventory is red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk": if amount of {_item} in event-inventory is 64: remove 63 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 31: set {_lapis} to amount of {_item} in event-inventory if player's balance is more than or equal to {_lapis} * 0.62: set {_lapiscost} to {_lapis} * 0.62 remove {_lapiscost} from player's balance give {_lapis} of lapis lazuli to player close player's inventory send message "&7Pomyslnie wykonano transakcje!" else: send message "&cNie stac cie na ten przedmiot!" command /|sklep-kupno-sugar-cane: trigger: set {_gui2} to chest inventory with 5 rows named "&8Wybierz sklep (&7&lKUPNO&8) | sugar cane" set slot 40 of {_gui2} to barrier named "&cPowrot" set slot 31 of {_gui2} to lime dye named "&aZatwierdz Zakup" with lore "&7Kliknij aby zatwierdzic ten zakup." set slot 32 of {_gui2} to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" set slot 23 of {_gui2} to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" set slot 14 of {_gui2} to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 19 of {_gui2} to sugar cane named "&eTrzcina cukrowa" with lore "&8>> &7Cena kupna: &f15$" open {_gui2} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&8Wybierz sklep (&7&lKUPNO&8) | sugar cane": set {_item} to slot 19 of event-inventory cancel event if clicked slot is 40: execute player command "/|sklep-Kupno" if clicked slot is 32: add 1 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is 64: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 23: if amount of {_item} in event-inventory is less than 55: add 10 of {_item} to slot 19 of event-inventory else: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 14: add 64 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 30: if slot 30 of event-inventory is air: cancel event if slot 30 of event-inventory is red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke": remove 1 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 21: if slot 21 of event-inventory is air: cancel event if slot 21 of event-inventory is red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk": if amount of {_item} in event-inventory is 10: remove 9 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is more than 10: remove 10 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 12: if slot 12 of event-inventory is air: cancel event if slot 12 of event-inventory is red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk": if amount of {_item} in event-inventory is 64: remove 63 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 31: set {_sugarcane} to amount of {_item} in event-inventory if player's balance is more than or equal to {_sugarcane} * 15: set {_sugarcanecost} to {_sugarcane} * 15 remove {_sugarcanecost} from player's balance give {_sugarcane} of sugar cane to player close player's inventory send message "&7Pomyslnie wykonano transakcje!" else: send message "&cNie stac cie na ten przedmiot!" command /|sklep-kupno-bookshelf: trigger: set {_gui2} to chest inventory with 5 rows named "&8Wybierz sklep (&7&lKUPNO&8) | bookshelf" set slot 40 of {_gui2} to barrier named "&cPowrot" set slot 31 of {_gui2} to lime dye named "&aZatwierdz Zakup" with lore "&7Kliknij aby zatwierdzic ten zakup." set slot 32 of {_gui2} to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" set slot 23 of {_gui2} to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" set slot 14 of {_gui2} to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 19 of {_gui2} to bookshelf named "&ePolka z ksiazkami" with lore "&8>> &7Cena kupna: &f30$" open {_gui2} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&8Wybierz sklep (&7&lKUPNO&8) | bookshelf": set {_item} to slot 19 of event-inventory cancel event if clicked slot is 40: execute player command "/|sklep-Kupno" if clicked slot is 32: add 1 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is 64: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 23: if amount of {_item} in event-inventory is less than 55: add 10 of {_item} to slot 19 of event-inventory else: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 14: add 64 of {_item} to slot 19 of event-inventory if amount of {_item} in event-inventory is 64: set slot 14 of event-inventory to air set slot 32 of event-inventory to air if amount of {_item} in event-inventory is more than 53: set slot 23 of event-inventory to air if amount of {_item} in event-inventory is more than 1: set slot 30 of event-inventory to red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke" if amount of {_item} in event-inventory is more than 9: set slot 21 of event-inventory to red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk" if amount of {_item} in event-inventory is more than 63: set slot 12 of event-inventory to red stained glass pane named "&cusun 64 sztuk" with lore "&7Kliknij, aby usunac 64 sztuk" if clicked slot is 30: if slot 30 of event-inventory is air: cancel event if slot 30 of event-inventory is red stained glass pane named "&cusun 1 sztuke" with lore "&7Kliknij, aby usunac 1 sztuke": remove 1 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less than 2: set slot 30 of event-inventory to air if amount of {_item} in event-inventory is less than 64: set slot 12 of event-inventory to air if amount of {_item} in event-inventory is less than 10: set slot 21 of event-inventory to air if amount of {_item} in event-inventory is 1: set slot 14 of event-inventory to lime stained glass pane named "&aDodaj 64 sztuk" with lore "&8>> &7Kliknij, aby dodac 64 sztuk" set slot 30 of event-inventory to air set slot 21 of event-inventory to air if amount of {_item} in event-inventory is less than 55: set slot 23 of event-inventory to lime stained glass pane named "&aDodaj 10 sztuk" with lore "&8>> &7Kliknij, aby dodac 10 sztuk" if amount of {_item} in event-inventory is less than 64: set slot 32 of event-inventory to lime stained glass pane named "&aDodaj 1 sztuke" with lore "&8>> &7Kliknij, aby dodac 1 sztuke" if clicked slot is 21: if slot 21 of event-inventory is air: cancel event if slot 21 of event-inventory is red stained glass pane named "&cusun 10 sztuk" with lore "&7Kliknij, aby usunac 10 sztuk": if amount of {_item} in event-inventory is 10: remove 9 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is more than 10: remove 10 of {_item} from slot 19 of event-inventory if amount of {_item} in event-inventory is less tha 2 Macie tutaj skrypt na sklep z anarchia.gg /sklepanarchia Cytuj Odnośnik do komentarza https://skript.pl/temat/57936-skrypt-na-skup-przedmiotow-z-anarchiagg/#findComment-346601 Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.