Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: &8[&c&lBUYCRAFT&8]
- serverId: "600e8a4935044e00121194f9"
- fejl: &8[&c&lBUYCRAFT&8] &cDette har du ikke råd til!
- function updatesign(sp: text, ems: text, køb: text):
- if {_ems} is a number:
- make console execute command "/hd setline buy 8 &c%{_ems}% Emeralder"
- else:
- make console execute command "/hd setline buy 8 &c%{_ems}% Coins"
- set {_skilt.4.spiller} to line 2 of block at {buyskilt.4}
- set {_skilt.4.ems} to line 3 of block at {buyskilt.4}
- set {_skilt.4.rank} to line 4 of block at {buyskilt.4}
- set line 2 of block at {buyskilt.5} to {_skilt.4.spiller}
- set line 3 of block at {buyskilt.5} to {_skilt.4.ems}
- set line 4 of block at {buyskilt.5} to {_skilt.4.rank}
- set {_skilt.3.spiller} to line 2 of block at {buyskilt.3}
- set {_skilt.3.ems} to line 3 of block at {buyskilt.3}
- set {_skilt.3.rank} to line 4 of block at {buyskilt.3}
- set line 2 of block at {buyskilt.4} to {_skilt.3.spiller}
- set line 3 of block at {buyskilt.4} to {_skilt.3.ems}
- set line 4 of block at {buyskilt.4} to {_skilt.3.rank}
- set {_skilt.2.spiller} to line 2 of block at {buyskilt.3}
- set {_skilt.2.ems} to line 3 of block at {buyskilt.3}
- set {_skilt.2.rank} to line 4 of block at {buyskilt.3}
- set line 2 of block at {buyskilt.3} to {_skilt.2.spiller}
- set line 3 of block at {buyskilt.3} to {_skilt.2.ems}
- set line 4 of block at {buyskilt.3} to {_skilt.2.rank}
- make console execute command "/npc sel 12"
- make console execute command "/npc skin %{_skilt.2.spiller}%"
- make console execute command "/npc rename &2%{_skilt.2.spiller}%"
- set {_skilt.1.spiller} to line 2 of block at {buyskilt.1}
- set {_skilt.1.ems} to line 3 of block at {buyskilt.1}
- set {_skilt.1.rank} to line 4 of block at {buyskilt.1}
- set line 2 of block at {buyskilt.2} to {_skilt.1.spiller}
- set line 3 of block at {buyskilt.2} to {_skilt.1.ems}
- set line 4 of block at {buyskilt.2} to {_skilt.1.rank}
- make console execute command "/npc sel 11"
- make console execute command "/npc skin %{_skilt.1.spiller}%"
- make console execute command "/npc rename &2%{_skilt.1.spiller}%"
- wait 5 ticks
- set line 2 of block at {buyskilt.1} to "&a%{_sp}%"
- set line 3 of block at {buyskilt.1} to "&2%{_ems}% Ems"
- set line 4 of block at {buyskilt.1} to "&2%{_køb}%"
- add "&7%{_sp}%, %{_køb}%, %{_ems}% - " to {superpaylog::*}
- make console execute command "/npc sel 13"
- make console execute command "/npc skin %{_sp}%"
- make console execute command "/npc rename &a&l"
- make console execute command "/hd setline buy 4 &c%{_sp}%"
- make console execute command "/hd setline buy 6 &c%{_køb}%"
- command /coins:
- trigger:
- send "{@p} &7Du har lige nu, &c&n%{coins::%player%}%&7 coins."
- command /superpaylog:
- permission: admin
- trigger:
- send "%{superpaylog::*}%" to player
- on right click on entity:
- if entity's name is "&a&l" or "%{_sp}%":
- make player execute command "/buy"
- on load:
- superpay aktiver beta #For at aktivere beta version af SuperPay
- every minute:
- superpay hent betalinger fra serveren {@serverId}
- on superpay betaling:
- superpay accepter betaling event-id med serveren {@serverId} #Accepterer købet, hvis dette ikke gøres under beta version vil man modtage det uendeligt
- on load:
- set {byggerskull} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjdmNTQ1YTEyNzI1YjdhMzhlZTEzZjMyYjRkZDEyY2M4Nzk3MzJkMTdiNjQ4NDQ1MGVmNTEyYWEyYTU0ODgifX19" signature ""
- set data value of {byggerskull} to 3
- set {graverskull} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWYzMTljZTYzNTVlMmI2M2NmZTExY2RlYmVmODU3MjAyMTFmYzAxODQ0YTdlMDRlZjU5ODc5NTIyMTI0ZGUifX19" signature ""
- set data value of {graverskull} to 3
- set {hexoskull} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTYyOTY0NTAwYzcwMTE4YjNmMjJjNDk2ZjFmMDNkZDkzMjExNjQzMzE4MjI3MmUwMzNjYzI5ZWJmODA4MWFhMCJ9fX0=" signature ""
- set data value of {hexoskull} to 3
- set {minerskull} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWEwZWYyMDNhM2MzODM3ZmQ0YTEwZTFjM2YxOWNjNDBlNjQ5N2NiOWI5NzgwNzRkNDcyYzY1ZDQ4MmY2YjY3MyJ9fX0=" signature ""
- set data value of {hexoskull} to 3
- set {tokyoskull} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDljNTk1NjEzMDM0YTA5NTk4OTQxZTBmMzUwMDc2MzZjNzQwMDk5ZDZiYjc2MTgxZDA5YWVlMWJlZDFlMjFmNCJ9fX0=" signature ""
- set data value of {tokyoskull} to 3
- set {chestskull} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDVjNmRjMmJiZjUxYzM2Y2ZjNzcxNDU4NWE2YTU2ODNlZjJiMTRkNDdkOGZmNzE0NjU0YTg5M2Y1ZGE2MjIifX19" signature ""
- set data value of {chestskull} to 3
- set {bedrock} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzZkMWZhYmRmM2UzNDI2NzFiZDlmOTVmNjg3ZmUyNjNmNDM5ZGRjMmYxYzllYThmZjE1YjEzZjFlN2U0OGI5In19fQ==" signature ""
- set data value of {bedrock} to 3
- set {diamond} to skull from skin with value "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODNjN2FkZmMzZDg2NGJlYTgzYmQ3NzZhY2E0NzkxN2YxMmU2NTg3NmI2NGQ2Yzk2ODIyY2ZhNmEzNjhjMmVhIn19fQ==" signature ""
- set data value of {diamond} to 3
- command /buy:
- trigger:
- wait 3 ticks
- open chest with 5 rows named "&8[&c&lBUYCRAFT&8]" to player
- set slot 19 of player's current inventory to {tokyocrate} named "&8✩ [&b&lRANKS&8] ✩" with lore "&7Klik her!||||&7Her kan du købe ranks!||||&7Indeholder:||&8➥ &5&lTOKYO||&8➥ &c&lAPOLLO||&8➥ &e&lDRAGON||&8➥ &b&lOLYMPIA"
- set slot 20 of player's current inventory to {dragonkey} named "&8✩ [&5&lPAKKER&8] ✩" with lore "&7Klik her!||||&7Her kan du købe pakker!||||&7Hvad er pakker?||&8➥ &7Pakker er flere ting, men sat sammen i en ting,||&8➥ &7så de bliver billigere.||||&7Indeholder:||&8➥ &8[ &e&lPAKKE 1 &8]||&8➥ [ &5&lPAKKE 2 &8]||&8➥ [ &4&lPAKKE 3 &8]"
- set slot 21 of player's current inventory to {bedrock} named "&8✩ [&a&lPLOTMINER&8] &8✩" with lore "&7Klik her!||||&7Her kan du købe plotminer!||||&7Indeholder:||&8➥ &a&lGIGA PLOTMINE||&8➥ &a&lSTOR PLOTMINE||&8➥ &a&lMELLEM PLOTMINE||&8➥ &a&lLILLE PLOTMINE"
- set slot 24 of player's current inventory to glowing {casinoskull} named "&8✩ [&e&lMULTIPLIER&8] &8✩" with lore "&7Klik her!||||&7Her kan du købe multiplier!||||&7Indeholder:||&8➥ &e&l10x &6&lMULTIPLIER||&8➥ &e&l25x &6&lMULTIPLIER||&8➥ &e&l50x &6&lMULTIPLIER||&8➥ &e&l100x &6&lMULTIPLIER"
- set slot 22 of player's current inventory to {chestskull} named "&8✩ [&6&lCOMMANDS&8] &8✩" with lore "&7Klik her!||||&7Her kan du købe adgang til commands!||||&7Indeholder:||&8➥ &a&lFly Command||&8➥ &b&lAutoSell Command||&8➥ &d&lPV 1 - 5"
- set slot 25 of player's current inventory to glowing {prismarine} named "&8✩ [&c&lGEMS&8] &8✩" with lore "&7Klik her!||||&7Her kan du købe gems!||||&7Indeholder:||&8➥ &c&l1000x &4&lGEMS||&8➥ &c&l2500x &4&lGEMS||&8➥ &c&l5000x &4&lGEMS||&8➥ &c&l10000x &4&lGEMS"
- set slot 23 of player's current inventory to {diamond} named "&8✩ [&d&lKEYS&8] &8✩" with lore "&7Klik her!||||&7Her kan du købe keys!||||&7Indeholder:||&8➥ &c&lZETHYS||&8➥ &e&lDOMINA||&8➥ &b&lCRIXUS"
- set slot (integers from 0 to 8) of player's current inventory to glowing red glass named "&a"
- set slot (integers from 36 to 44) of player's current inventory to glowing red glass named "&a"
- set slot 40 of player's current inventory to double plant named "&8[&e&lCOINS&8]" with lore "&7Læs her!||||&7Her kan du købe &8[&e&lCOINS&8]&7!||||&7Hvad er coins?||&7Coins er det, som bruges til buycraft.||&7De kan kun skaffes her, og kan ikke sælges eller lign.||||&7Prisen for 1 coins er 1 emerald."
- set slot 4 of player's current inventory to book named "&8✩ [&c&lTERMS&4&l OF &c&lSERVICE&8] ✩" with lore "||&7Læs her for meget nyttig information!||||&7Vi giver ikke jeres emeralder tilbage efter i har købt noget.||||&7Vi har rettighederne til at fjerne din rank,||&7hvis du misbruger den til fordele eller lign.||||&7Hvis du bliver bannet, vil du ikke få dine emeralder tilbage.||||&7Hvis du mister noget til en fejl eller lign.||&7skal du have screenshot af at du har købt det,||&7for at du kan få produktet tilbage."
- function buyGems(p: player):
- open chest with 5 rows named "&8✩ &d&lGEMS &8✩" to {_p}
- set slot (integers from 0 to 8) of {_p}'s current inventory to glowing red glass named "&a"
- set slot (integers from 36 to 44) of {_p}'s current inventory to glowing red glass named "&a"
- set slot 19 of {_p}'s current inventory to {prismarine} named "&8[ &c&l1000 GEMS &8]" with lore "&7Klik her for at købe 1000 Gems||||&7Indeholder:||&8➥ &c&l1000x &4&lGEMS||||&7Pris: &e1.000 Coins"
- set slot 21 of {_p}'s current inventory to {prismarine} named "&8[ &c&l2500 GEMS &8]" with lore "&7Klik her for at købe 2500 Gems||||&7Indeholder:||&8➥ &c&l2500x &4&lGEMS||||&7Pris: &e2.500 Coins"
- set slot 23 of {_p}'s current inventory to {prismarine} named "&8[ &c&l5000 GEMS &8]" with lore "&7Klik her for at købe 5000 Gems||||&7Indeholder:||&8➥ &c&l5000x &4&lGEMS||||&7Pris: &e5.000 Coins"
- set slot 25 of {_p}'s current inventory to {prismarine} named "&8[ &c&l10000 GEMS &8]" with lore "&7Klik her for at købe 10000 Gems||||&7Indeholder:||&8➥ &c&l10000x &4&lGEMS||||&7Pris: &e10.000 Coins"
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 25:
- wait 3 tick
- buyGems(player)
- else:
- if name of player's current inventory is "&8✩ &d&lGEMS &8✩":
- cancel event
- if clicked slot is 19:
- if {coins::%player%} >= 1000:
- add 1000 to {gems::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n1000 Gems&7, for &c&n1000 Coins&7!"
- updatesign("%player%", "1000", "1000 Gems")
- close player's inventory
- remove 1000 from {coins::%player%}
- else:
- send "{@fejl}"
- if clicked slot is 21:
- if {coins::%player%} >= 2500:
- add 2500 to {gems::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n2500 Gems&7, for &c&n2500 Coins&7!"
- updatesign("%player%", "2500", "2500 Gems")
- close player's inventory
- remove 2500 from {coins::%player%}
- else:
- send "{@fejl}"
- if clicked slot is 23:
- if {coins::%player%} >= 5000:
- add 5000 to {gems::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n5000 Gems&7, for &c&n5000 Coins&7!"
- updatesign("%player%", "5000", "5000 Gems")
- close player's inventory
- remove 5000 from {coins::%player%}
- else:
- send "{@fejl}"
- if clicked slot is 25:
- if {coins::%player%} >= 10000:
- add 10000 to {gems::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n1000 Gems&7, for &c&n10000 Coins&7!"
- updatesign("%player%", "10000", "10000 Gems")
- close player's inventory
- remove 10000 from {coins::%player%}
- else:
- send "{@fejl}"
- function buyPakker(p: player):
- open chest with 5 rows named "&8[&5&lPAKKER&8]" to {_p}
- set slot (integers from 0 to 44) of {_p}'s current inventory to glowing purple glass named "&a"
- clear slot (integers between 9 and 35) of {_p}'s current inventory
- set slot 19 of {_p}'s current inventory to {byggerskull} named "&8[ &e&lPAKKE &e&n1&8 ]" with lore "||&7Denne pakke indeholder:||&8➥ &c&l❤ &7Tag||&8➥ &3❁ &7Tag||&8➥ &6☕ &7Tag||&8➥ &e✌ &7Tag||&8➥ &d✪ &7Tag||||&7Pris: &e4000 Coins"
- set slot 22 of {_p}'s current inventory to {casinoskull} named "&8[ &5&lPAKKE &5&n2&8 ]" with lore "||&7Denne pakke indeholder:||&8➥ &c&lZETHYS &4&lKEY &8(3)||&8➥ &e&lDOMINA &6&lKEY &8(3)||&8➥ &b&lCRIXUS &3&lKEY &8(3)||||&7Pris: &e10000 Coins &8(Du sparer 4250)"
- set slot 25 of {_p}'s current inventory to {graverskull} named "&8[ &4&lPAKKE &4&n3&8 ]" with lore "||&7Denne pakke indeholder:||&8➥ &c&lAPOLLO &f&lRANK &8(Perm)||&8➥ &c&lZETHYS &4&lKEY &8(3)||&8➥ &c&lZETHYS &f&lPICKAXE||||&7Pris: &e13000 Coins &8(Du sparer 3000)"
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 20:
- buyPakker(player)
- else:
- if name of player's current inventory is "&8[&5&lPAKKER&8]":
- cancel event
- if clicked slot is 19:
- if {coins::%player%} >= 4000:
- set {hjerte.%player%} to "&aJA"
- set {blomst.%player%} to "&aJA"
- set {kaffe.%player%} to "&aJA"
- set {peace.%player%} to "&aJA"
- set {stjerne.%player%} to "&aJA"
- remove 4000 from {coins::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&nPAKKE 1&7, for &c&n4000 Coins&7!"
- updatesign("%player%", "4000", "Pakke 1")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 22:
- if {coins::%player%} >= 10000:
- remove 10000 from {coins::%player%}
- add 3 name tag named "&8[&c&lZETHYS &4&lKEY&8]" to player's inventory
- add 3 name tag named "&8[&e&lDOMINA &6&lKEY&8]" to player's inventory
- add 3 name tag named "&8[&b&lCRIXUS &3&lKEY&8]" to player's inventory
- updatesign("%player%", "10000", "Pakke 2")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 25:
- if {coins::%player%} >= 13000:
- remove 13000 from {coins::%player%}
- set player's group to "apollo"
- add 3 name tag named "&8[&c&lZETHYS &4&lKEY&8]" to player's inventory
- add 1 diamond pickaxe of efficiency 50, unbreaking 50, fortune 25 named "&c&lZETHYS &f&lPICKAXE" to player's inventory
- updatesign("%player%", "13000", "Pakke 3")
- close player's inventory
- else:
- send "{@fejl}"
- function buyKeys(p: player):
- open chest with 5 rows named "&8✩ &c&lKEYS &8✩" to {_p}
- set slot (integers from 0 to 8) of {_p}'s current inventory to glowing pink glass named "&a"
- set slot (integers from 36 to 44) of {_p}'s current inventory to glowing pink glass named "&a"
- set slot 25 of {_p}'s current inventory to {olympiacrate} named "&8[&b&lCRIXUS &3&lKEY&8]" with lore "||&7Klik her for at købe||&7en &8[&b&lCRIXUS &3&lKEY&8]||||&7Pris: &e1250"
- set slot 22 of {_p}'s current inventory to {spacecrate} named "&8[&e&lDOMINA &6&lKEY&8]" with lore "||&7Klik her for at købe||&7en &8[&e&lDOMINA &6&lKEY&8]||||&7Pris: &e1500"
- set slot 19 of {_p}'s current inventory to {apollocrate} named "&8[&c&lZETHYS &4&lKEY&8]" with lore "||&7Klik her for at købe||&7en &8[&c&lZETHYS &4&lKEY&8]||||&7Pris: &e2000"
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 23:
- buyKeys(player)
- else:
- if name of player's current inventory is "&8✩ &c&lKEYS &8✩":
- cancel event
- if clicked slot is 25:
- if {coins::%player%} >= 1250:
- give player 1 name tag named "&8[&b&lCRIXUS &3&lKEY&8]"
- broadcast "{@p} &c%player%&7 har lige købt &8[&b&lCRIXUS &3&lKEY&8]&7, for &c&n1250 Coins&7!"
- remove 1250 from {coins::%player%}
- updatesign("%player%", "1250", "Crixus Key")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 22:
- if {coins::%player%} >= 1500:
- give player 1 name tag named "&8[&e&lDOMINA &6&lKEY&8]"
- broadcast "{@p} &c%player%&7 har lige købt &8[&e&lDOMINA &6&lKEY&8]&7, for &c&n1500 Coins&7!"
- remove 1500 from {coins::%player%}
- updatesign("%player%", "1500", "Domina Key")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 19:
- if {coins::%player%} >= 2000:
- give player 1 name tag named "&8[&c&lZETHYS &4&lKEY&8]"
- broadcast "{@p} &c%player%&7 har lige købt &8[&c&lZETHYS &4&lKEY&8]&7, for &c&n2000 Coins&7!"
- remove 2000 from {coins::%player%}
- updatesign("%player%", "2000", "Zethys Key")
- close player's inventory
- else:
- send "{@fejl}"
- function buyCoins(p: player):
- open chest with 3 rows named "&8✩ [&e&lCOINS&8] ✩" to {_p}
- set slot (integers from 0 to 9) of {_p}'s current inventory to yellow glass named "&a"
- set slot (integers from 17 to 26) of {_p}'s current inventory to yellow glass named "&a"
- set slot 13 of {_p}'s current inventory to glowing double plant named "&8✩ [&e&lCOINS&8] ✩" with lore "&7Læs her!||||&7For at købe coins, skal du altså||&7skrive kommandoen, &e/købcoins <antal>&7.||&7Prisen for &e1 mønt &7er &e1 emerald&7."
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 40:
- wait 3 tick
- buyCoins(player)
- function buyRanks(p: player):
- wait 3 tick
- open chest with 5 rows named "&8[&c&lRANKS&8]" to {_p}
- set slot (integers from 0 to 44) of {_p}'s current inventory to glowing light blue glass named "&A"
- clear slot (integers from 9 to 35) of {_p}'s current inventory
- set slot 19 of {_p}'s current inventory to {olympiacrate} named "&b&lOLYMPIA" with lore "&7Klik her!||||&7Her kan du købe olympia!||&7Indeholder:||&8➥ &b/Kit Olympia||&8➥ &b/Fly||&8➥ &b/Pv 1||&8➥ &b/AutoSell||&8➥ &b1.25 multiplier||||&7Tab: &b&lOLYMPIA &7%{_p}%||&7Chat: &8[&b&lOLYMPIA&8] &7%{_p}% &8[&3&l%{rank.%{_p}%}%&8] [&3&lP&b&l%{prestige::%{_p}%}%&8] » &7Jeg har olympia rank!||||&7Pris: &e4.500 Coins"
- set slot 21 of {_p}'s current inventory to {dragoncrate} named "&e&lDRAGON" with lore "&7Klik her!||||&7Her kan du købe dragon!||&7Indeholder:||&8➥ &e/Kit Olympia||&8➥ &e/Kit Dragon||&8➥ &e/Warp Olympia||&8➥ &e/Warp Dragon||&8➥ &e/Fly||&8➥&e/Plot Merge &8(&72 plots&8)||&8➥ &e/Pv 1 - 5||&8➥ &e/AutoSell||&8➥ &e1.50 multiplier||||&7Tab: &e&lDRAGON &7%{_p}%||&7Chat: &8[&e&lDRAGON&8] &7%{_p}% &8[&6&l%{rank.%{_p}%}%&8] [&6&lP&e&l%{prestige::%{_p}%}%&8] » &7Jeg har dragon rank!||||&7Pris: &e7.500 Coins"
- set slot 23 of {_p}'s current inventory to {apollocrate} named "&c&lAPOLLO" with lore "&7Klik her!||||&7Her kan du købe apollo!||&7Indeholder:||&8➥ &c/Kit Olympia||&8➥ &c/Kit Dragon||&8➥ &c/Kit Apollo||&8➥ &c/Warp Dragon||&8➥ &c/Warp Apollo||&8➥ &c/Fly||&8➥ &c/Plot Merge &8(&74 plots&8)||&8➥ &c/Pv 1 - 10||&8➥ &c/AutoSell||&8➥ &c1.75 multiplier||||&7Tab: &c&lAPOLLO &7%{_p}%||&7Chat: &8[&c&lAPOLLO&8] &7%{_p}% &8[&4&l%{rank.%{_p}%}%&8] [&4&lP&c&l%{prestige::%{_p}%}%&8] » &7Jeg har apollo rank!||||&7Pris: &e10.000 Coins"
- set slot 25 of {_p}'s current inventory to {ashlocrate} named "&5&lTOKYO" with lore "&7Klik her!||||&7Her kan du købe tokyo!||&7Indeholder:||&8➥ &5/Kit Olympia||&8➥ &5/Kit Dragon||&8➥ &5/Kit Apollo||&8➥ &5/Kit Tokyo||&8➥ &5/Warp Dragon||&8➥ &5/Warp Apollo||&8➥ &5/Warp Tokyo||&8➥ &5/Fly||&8➥ &5/Plot Merge &8(&76 plots&8)||&8➥ &5/Pv 1 - 15||&8➥ &5/AutoSell||&8➥ &52.00 multiplier||||&7Tab: &5&lTOKYO &7%{_p}%||&7Chat: &8[&5&lTOKYO&8] &7%{_p}% &8[&5&l%{rank.%{_p}%}%&8] [&5&lP&d&l%{prestige::%{_p}%}%&8] » &7Jeg har tokyo rank!||||&7Pris: &e15.000 Coins"
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 19:
- buyRanks(player)
- else:
- if name of player's current inventory is "&8[&c&lRANKS&8]":
- cancel event
- if clicked slot is 19:
- if {coins::%player%} >= 4500:
- set player's group to "olympia"
- broadcast "{@p} &c%player%&7 har lige købt &b&lOLYMPIA&7, for &c&n4500 Coins&7!"
- remove 4500 from {coins::%player%}
- updatesign("%player%", "4500", "Olympia")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 21:
- if {coins::%player%} >= 7500:
- set player's group to "dragon"
- broadcast "{@p} &c%player%&7 har lige købt &e&lDRAGON&7, for &c&n7500 Coins&7!"
- remove 7500 from {coins::%player%}
- updatesign("%player%", "7500", "Dragon")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 23:
- if {coins::%player%} >= 10000:
- set player's group to "apollo"
- broadcast "{@p} &c%player%&7 har lige købt &cAPOLLO&7, for &c&n10000 Coins&7!"
- remove 10000 from {coins::%player%}
- updatesign("%player%", "10000", "Apollo")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 25:
- if {coins::%player%} >= 15000:
- set player's group to "tokyo"
- broadcast "{@p} &c%player%&7 har lige købt &5TOKYO&7, for &c&n15000 Coins&7!"
- remove 15000 from {coins::%player%}
- updatesign("%player%", "15000", "Tokyo")
- close player's inventory
- else:
- send "{@fejl}"
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 22:
- wait 3 tick
- open chest with 5 rows named "&8✩ [&6&lCOMMANDS&8] ✩" to player
- set slot (integers from 0 to 44) of player's current inventory to glowing pink glass named "&A"
- clear slot (integers from 9 to 35) of player's current inventory
- set slot 20 of player's current inventory to glowing feather named "&8[ &a&lFLY COMMAND &8]" with lore "&7Klik her!||||&7Her kan du købe adgang til at flyve!||&7Indeholder:||&8➥ &a/Fly||||&7Pris: &e750"
- set slot 22 of player's current inventory to gold pickaxe named "&8[ &b&lAUTOSELL COMMAND &8]" with lore "&7Klik her!||||&7Her kan du købe adgang til autosell!||&7Indeholder:||&8➥ &b/AutoSell||||&7Pris: &e750"
- set slot 24 of player's current inventory to minecart with chest named "&8[ &d&l/PV 1 - 5 &8]" with lore "&7Klik her!||||&7Her kan du købe adgang til pv 1 - 5!||&7Indeholder:||&8➥ &d/PV 1 - 5||||&7Pris: &e750"
- else:
- if name of player's current inventory is "&8✩ [&6&lCOMMANDS&8] ✩":
- cancel event
- if clicked slot is 20:
- if {coins::%player%} >= 750:
- make player run command "manuaddp %player% fly.command" as op
- broadcast "{@p} &c%player%&7 har lige købt &a&lFLY&7, for &c&n750 Coins&7!"
- remove 750 from {coins::%player%}
- updatesign("%player%", "750", "Fly")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 22:
- if {coins::%player%} >= 750:
- make player run command "manuaddp %player% autosell" as op
- broadcast "{@p} &c%player%&7 har lige købt &b&lAUTOSELL&7, for &c&n750 Coins&7!"
- remove 750 from {coins::%player%}
- updatesign("%player%", "750", "Autosell")
- close player's inventory
- else:
- send "{@fejl}"
- if clicked slot is 24:
- if {coins::%player%} >= 750:
- make player run command "manuaddp %player% playervaults.amount.5" as op
- broadcast "{@p} &c%player%&7 har lige købt &d&lPV 1 - 5&7, for &c&n750 Coins&7!"
- remove 750 from {coins::%player%}
- updatesign("%player%", "750", "PV 1 - 5")
- close player's inventory
- else:
- send "{@fejl}"
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 21:
- close player's inventory
- send player title "&7Læs din chat!" with subtitle ""
- send "&8[ &a&lPLOTMINE KØB &8]"
- send "&a &b &7 &a"
- send "&8➼ &aLille Plotmine: &72.5k (3x3x3)"
- send "&8➼ &aMellem Plotmine: &75k (7x7x7) "
- send "&8➼ &aStor Plotmine: &710k (20x20x20)"
- send "&8➼ &aGiga Plotmine: &715k (Hele Plottet)"
- send "&a &b &c &d &e &f"
- send "&8( &7Plotminer vil kun kunne købes, hvis &c&nSqmmer_&r &7eller &c&nGertrod&r &7er online &8)"
- #wait 3 tick
- #open chest with 5 rows named "&8✩ &5&lPLOTMINER &8✩" to player
- #set slot (integers from 0 to 9) of player's current inventory to magenta glass named "&A"
- #set slot (integers from 17 to 18) of player's current inventory to magenta glass named "&A"
- #set slot (integers from 26 to 27) of player's current inventory to magenta glass named "&A"
- #set slot (integers from 35 to 44) of player's current inventory to magenta glass named "&a"
- #set slot 20 of player's current inventory to glowing {bedrock} named "&8✩ &5&lLILLE &d&lPLOTMINE &8✩" with lore "&7Klik her!||||&7Her kan du købe en lille plotmine!||&7Indeholder:||&8➥ &d&l1x &5&lLILLE PLOTMINE &8(7x7x7)||||&7Pris: &e3.500"
- #set slot 21 of player's current inventory to glowing {bedrock} named "&8✩ &5&lMELLEM &d&lPLOTMINE &8✩" with lore "&7Klik her!||||&7Her kan du købe en mellem plotmine!||&7Indeholder:||&8➥ &d&l1x &5&lMELLEM PLOTMINE &8(14x14x14)||||&7Pris: &e5.000"
- #set slot 23 of player's current inventory to glowing {bedrock} named "&8✩ &5&lSTOR &d&lPLOTMINE &8✩" with lore "&7Klik her!||||&7Her kan du købe en stor plotmine!||&7Indeholder:||&8➥ &d&l1x &5&lSTOR PLOTMINE &8(25x25x25)||||&7Pris: &e7.500"
- #set slot 24 of player's current inventory to glowing {bedrock} named "&8✩ &5&lGIGA &d&lPLOTMINE &8✩" with lore "&7Klik her!||||&7Her kan du købe en giga plotmine!||&7Indeholder:||&8➥ &d&l1x &5&lGIGA PLOTMINE &8(1 plot/51x51x65)||||&7Pris: &e11.500"
- else:
- if name of player's current inventory = "&8✩ &5&lPLOTMINER &8✩":
- clicked slot = 20:
- superpay anmod player om 3500.00 emeralder for "Lille Plotmine" med serveren {@serverId}
- clicked slot = 21:
- superpay anmod player om 5000.00 emeralder for "Mellem Plotmine" med serveren {@serverId}
- clicked slot = 23:
- superpay anmod player om 7500.00 emeralder for "Stor Plotmine" med serveren {@serverId}
- clicked slot = 24:
- superpay anmod player om 11500.00 emeralder for "Giga Plotmine" med serveren {@serverId}
- inventory click:
- if name of player's current inventory is "&8[&c&lBUYCRAFT&8]":
- cancel event
- if clicked slot is 24:
- wait 3 tick
- open chest with 5 rows named "&8✩ [&e&lMULTIPLIER&8] ✩" to player
- set slot (integers from 0 to 8) of player's current inventory to glowing yellow glass named "&a"
- set slot (integers from 36 to 44) of player's current inventory to glowing yellow glass named "&a"
- set slot 19 of player's current inventory to {casinoskull} named "&8[ &e&l10x MULTIPLIER &8]" with lore "&7Klik her!||||&7Her kan du købe &e&l10x MULTIPLIER&7!||||&7Pris: &e5000"
- set slot 21 of player's current inventory to {casinoskull} named "&8[ &e&l25x MULTIPLIER &8]" with lore "&7Klik her!||||&7Her kan du købe &e&l25x MULTIPLIER&7!||||&7Pris: &e12500"
- set slot 23 of player's current inventory to {casinoskull} named "&8[ &e&l50x MULTIPLIER &8]" with lore "&7Klik her!||||&7Her kan du købe &e&l50x MULTIPLIER&7!||||&7Pris: &e25000"
- set slot 25 of player's current inventory to {casinoskull} named "&8[ &e&l100x MULTIPLIER &8]" with lore "&7Klik her!||||&7Her kan du købe &e&l100x MULTIPLIER&7!||||&7Pris: &e50000"
- else:
- if name of player's current inventory is "&8✩ [&e&lMULTIPLIER&8] ✩":
- if clicked slot is 19:
- if {coins::%player%} >= 5000:
- add 10 to {multiplier::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n10 Multiplier&7, for &c&n5000 Coins&7!"
- updatesign("%player%", "5000", "10 Multiplier")
- close player's inventory
- remove 5000 from {coins::%player%}
- else:
- send "{@fejl}"
- if clicked slot is 21:
- if {coins::%player%} >= 12500:
- add 25 to {multiplier::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n25 Multiplier&7, for &c&n12500 Coins&7!"
- updatesign("%player%", "12500", "25 Multiplier")
- close player's inventory
- remove 12500 from {coins::%player%}
- else:
- send "{@fejl}"
- if clicked slot is 23:
- if {coins::%player%} >= 25000:
- add 50 to {multiplier::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n50 Multiplier&7, for &c&n25000 Coins&7!"
- updatesign("%player%", "25000", "50 Multiplier")
- close player's inventory
- remove 25000 from {coins::%player%}
- else:
- send "{@fejl}"
- if clicked slot is 25:
- if {coins::%player%} >= 50000:
- add 100 to {multiplier::%player%}
- broadcast "{@p} &c%player%&7 har lige købt &c&n100 Multiplier&7, for &c&n50000 Coins&7!"
- updatesign("%player%", "50000", "100 Multiplier")
- close player's inventory
- remove 50000 from {coins::%player%}
- else:
- send "{@fejl}"
- inventory click:
- if name of player's current inventory contains "✩":
- cancel event
- command /købcoins [<integer>] [<text>]:
- trigger:
- if arg-1 is set:
- if arg-2 is not set:
- set {købmønter.%player%} to arg-1
- open chest with 3 rows named "&8✩ [&e&lCOINS&8] &8✩" to player
- set slot (integers from 0 to 9) of player's current inventory to yellow glass named "&a"
- set slot (integers from 17 to 26) of player's current inventory to yellow glass named "&a"
- set slot 11 of player's current inventory to green glass named "&8✩ &a&lACCEPTER KØB &8✩"
- set slot 15 of player's current inventory to red glass named "&8✩ &c&lANNULLER KØB &8✩"
- if arg-1 is set:
- if arg-2 is set:
- if arg-2 is "confirm":
- superpay anmod player om {købmønter.%player%} emeralder for "%{købmønter.%player%}% Coins" med serveren {@serverId}
- close player's inventory
- inventory click:
- if name of player's current inventory is "&8✩ [&e&lCOINS&8] &8✩":
- cancel event
- if clicked slot is 15:
- send "{@p} &7Du annullerede dit køb."
- close player's inventory
- if clicked slot is 11:
- make player execute command "/købcoins %{købmønter.%player%}% confirm"
- close player's inventory
- on superpay betaling:
- #Event-OfflinePlayer spilleren der har købt
- #Event-string pakken spilleren har købt
- #Event-number antallet spilleren har betalt
- if event-string contains "Coins":
- broadcast "{@p} &c&n%event-OfflinePlayer%&7 har lige købt &c&n%event-number% coins&7, for &c&n%event-number% emeralder&7!"
- make console execute command "/givecoins %event-OfflinePlayer% %event-number%"
- #Hvis du benytter groupmanager, så kan du bruge følgende til at tilføje ranket til spilleren:
- #make console execute command "manuadd %event-OfflinePlayer% fly.command"
- updatesign("%event-offlineplayer%", "%event-number%", "%event-string%")
- command /givecoins [<offline player>] [<number>]:
- permission: admin
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- add arg-2 to {coins::%arg-1%}
- send "&8[&e&lCOINS&8] &7Du tilføjede &e%arg-2%&7 mønter til &e%arg-1%'s&7 konto. &8(&7I alt: %{coins::%arg-1%}%&8)"
- command /setcoins [<offline player>] [<number>]:
- permission: admin
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- set {coins::%arg-1%} to arg-2
- send "&8[&e&lCOINS&8] &7Du satte &e%arg-1%'s&7 mønter til &e%arg-2%&7. &8(&7I alt: %{coins::%arg-1%}%&8)"
- every minute:
- #Henter betalinger fra SuperPay
- #Betalingerne ville komme i eventet "on superpay betaling"
- superpay hent betalinger fra serveren {@serverId}
- command /setskilt:
- permission: *
- trigger:
- set {sætterbuyskilt.%player%} to true
- set {buyskiltsat.%player%} to 1
- send "Du sætter lokationen for skiltet %{buyskiltsat.%player%}%"
- send "Højreklik for på skiltet for at gå videre til næste"
- rightclick on sign:
- {sætterbuyskilt.%player%} = true:
- {buyskiltsat.%player%} != 5:
- send "Du har sat lokationen for skiltet %{buyskiltsat.%player%}%"
- send "Debug: %location of event-block%"
- set {buyskilt.%{buyskiltsat.%player%}%} to location of event-block
- add 1 to {buyskiltsat.%player%}
- send "Du sætter lokationen for skiltet %{buyskiltsat.%player%}%"
- send "Højreklik for på skiltet for at gå videre til næste"
- else:
- send "Du har sat lokationen for skiltet %{buyskiltsat.%player%}%"
- send "Debug: %location of event-block%"
- set {buyskilt.%{buyskiltsat.%player%}%} to location of event-block
- send "Du er nu færdig"
- set {sætterbuyskilt.%player%} to false
- set {buyskiltsat.%player%} to 0
- command /fly:
- permission: fly.command
- permission message: &8[&4&lFEJL&8]&c Dette har du ikke adgang til. Få adgang via &4/buy&c.
- trigger:
- if player's flight mode is false:
- send "&8[&c&lFLY&8]&f Du har nu slået flytilstand &atil&f."
- set player's flight mode to true
- else:
- if player's flight mode is true:
- send "&8[&c&lFLY&8]&f Du har nu slået flytilstand &cfra&f."
- set player's flight mode to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement