XlNd1oxT
Język: Skript
|
Autor: Anonimowy
options: item1: "&cDrewniana Patelnia" item2: "&6&lZaczarowany Kilof" item3: "&f&lAmulet Potegi" item4: "&eBon na Helm Australium" item5: "&eBon na Napiersnik Australium" item6: "&eBon na Spodnie Australium" item7: "&eBon na Buty Australium" item8: "&eBon na Miecz Australium" item9: "&eUlepszenie Australium" IloscKasy: &cMoge ci dac za niego 50000 IloscKasy2: &cMoge ci dac za niego 950000 IloscKasy3: &cMoge ci dac za niego 500000 IloscKasy4: &cMoge ci dac za niego 5740000 IloscKasy5: &cMoge ci dac za niego 132000 on right click on villager: if name of clicked entity is "&e&lKupiec": if name of player's held item is "&cDrewniana Patelnia": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of wooden shovel named "&cDrewniana Patelnia" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy3}" if name of player's held item is "&6&lZaczarowany Kilof": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of golden pickaxe named "&6&lZaczarowany Kilof" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy4}" if name of player's held item is "&f&lAmulet Potegi": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of nether star named "&f&lAmulet Potegi" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy2}" if name of player's held item is "&eBon na Helm Australium": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of sign named "&eBon na Helm Australium" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy}" if name of player's held item is "&eBon na Napiersnik Australium": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of sign named "&eBon na Napiersnik Australium" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy}" if name of player's held item is "&eBon na Spodnie Australium": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of sign named "&eBon na Spodnie Australium" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy}" if name of player's held item is "&eBon na Buty Australium": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of sign named "&eBon na Buty Australium" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy}" if name of player's held item is "&eBon na Miecz Australium": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of sign named "&eBon na Miecz Australium" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" format slot 5 of player with 1 of paper named "{@IloscKasy}" if name of player's held item is "&eUlepszenie Australium": cancel event open chest with 1 rows named "&e&lKupiec" to player wait 1 tick format slot 0 of player with 1 of gold ingot named "&eUlepszenie Australium" to close then run [execute player command "/(((svvf)))"] format slot 4 of player with 1 of lime dye named "&a&lAby sprzedac kliknij na itek" to unstealable format slot 5 of player with 1 of paper named "{@IloscKasy5}" to unstealable else if name of player's held item isn't "&cDrewniana Patelnia" or "&6&lZaczarowany Kilof" or "&f&lAmulet Potegi" or "&eBon na Helm Australium" or "&eBon na Napiersnik Australium" or "&eBon na Spodnie Australium" or "&eBon na Buty Australium" or "&eBon na Miecz Australium" or "&eUlepszenie Australium": cancel event send "&6Kupiec &8- &cTego przedmiotu nie moge ci sprzedac!" stop command /(((svvf))): trigger: if player's held item isn't air: if name of player's held item is "&cDrewniana Patelnia": add 500000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&6&lZaczarowany Kilof": add 5740000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&f&lAmulet Potegi": add 950000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&eBon na Helm Australium": add 50000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&eBon na Napiersnik Australium": add 50000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&eBon na Spodnie Australium": add 50000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&eBon na Buty Australium": add 50000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&eBon na Miecz Australium": add 50000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop if name of player's held item is "&eUlepszenie Australium": add 132000 to {monety.%player%} send "&6Kupiec &8- &7Milo sie z toba robi interesy!" remove player's tool from player stop