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

Skrypt na voucherki


us3rn0tf0und

Rekomendowane odpowiedzi

Opublikowano
Cześć mam taki skrypt : polega on na tym iż można wydropić papier , po kliknięciu ppm wykonuje sie komenda z pexu i gracz dostaje range . Potrzebuje pomocy nad tą czescia : 


on rightclick with paper:

    if player's holding item named is "Voucher":

        execute console command "pex user {Player} group set Vip"

        broadcast "&4{Player} WYKORZYSTAL VOUNCHER NA VIPA"

        remove 1 paper named "&4&lVoucher" from player's inventory 

 

 

 

---------- komenda sie nie wykonuje , prosze o pomoc ,  przepraszam za blędy ale na szybkiego--------


----------------------------------------

 

on mine of stone:

    if player has permissions "drop.on":

        chance of 50%:

            give 1 iron ingot to the player

        chance of 50%:

            give 1 gold ingot to the player

        chance of 50%:

            give 1 diamond to the player

        chance of 50%:

            give 1 emerald to the player

        chance of 25%:

            give 1 obsidian to the player

        chance of 25%:

            give 1 ender pearl to the player

        chance of 6%:

            drop 1 paper named "Voucher"

 

 

 

 

command /drop:    

    trigger:        

        open chest with 1 rows named "&1Drop" to player        

        wait 2 tick        

        format slot 0 of player with 1 of emerald named "&8>>&aSzmaragd" with lore "&8>> &6Szansa &8>> &650 Procent" to close

        format slot 1 of player with 1 of gold ingot named "&8>>&eZloto" with lore "&8>> &6Szansa &8>> &650 Procent" to close

        format slot 2 of player with 1 of diamond named "&8>>&bDiament" with lore "&8>> &6Szansa &8>> &650 Procent"  to close

        format slot 3 of player with 1 of iron ingot named "&8>>&fZelazo" with lore "&8>> &6Szansa &8>> &650 Procent" to close

        format slot 4 of player with 1 of obsidian named "&8>>&7Obsydian" with lore "&8>> &6Szansa &8>> &625 Procent" to close

        format slot 5 of player with 1 of 368 named "&8>>&5Ender Perla" with lore "&8>> &6Szansa &8>> &625 Procent" to close

        format slot 6 of player with 1 of paper named "&4&LVoucher na Vipa" with lore "&8>> &4Kliknij PPM | Szansa 6 procent" to close

        format slot 7 of player with 1 of 35:14 named "&cWylacz Drop" to close then run "pex user %player% remove drop.on"

        format slot 8 of player with 1 of 35:5 named "&aWlacz Drop" to close then run "pex user %player% add drop.on"

#tu dziala ^^^

 

on rightclick with paper:

    if player's holding item named is "Voucher":

        execute console command "pex user {Player} group set Vip"

        broadcast "&4{Player} WYKORZYSTAL VOUNCHER NA VIPA"

        remove 1 paper named "&4&lVoucher" from player's inventory

 

Opublikowano

zamiast {PLAYER} w skript używasz %player%

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

zamiast {PLAYER} w skript używasz %player%

Poprawiłem lecz po naciśnięciu ppm nic się nie dzieje wywala mi tu błąd :     if player's holding item named is "Voucher":

Opublikowano

@ScoreBoard

 

Ehh nie chciało mi się ale masz xD

 

Moim zdaniem inaczej się nie da.

 

UWAGA UWAGA! OTWIERASZ TEN SPOILER NA WŁASNĄ ODPOWIEDZIALNOŚĆ !

 

 

variables:
	{iron.%player%} = true
	{gold.%player%} = true
	{diamond.%player%} = true
	{emerald.%player%} = true
	{obsidian.%player%} = true
	{ep.%player%} = true
	{paper.%player%} = true
on mine of stone:
    if player has permissions "drop.on":
        chance of 50%:
			if {iron.%player%} is true:
				give 1 iron ingot to the player
			else:
				stop
        chance of 50%:
			if {gold.%player%} is true:
				give 1 gold ingot to the player
			else:
				stop
        chance of 50%:
			if {diamond.%player%} is true:
				give 1 diamond to the player
			else:
				stop
        chance of 50%:
			if {emerald.%player%} is true:
				give 1 emerald to the player
			else:
				stop
        chance of 25%:
			if {obsidian.%player%} is true:
				give 1 obsidian to the player
			else:
				stop
        chance of 25%:
			if {ep.%player%} is true:
				give 1 ender pearl to the player
			else:
				stop
        chance of 6%:
			if {paper.%player%} is true:
				drop 1 paper named "Voucher"
			else:
				stop
command /drop:    
    trigger:        
        open chest with 1 rows named "&1Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald named "&8>>&aSzmaragd" with lore "&8>> &6Szansa &8>> &650 Procent" to close
        format slot 1 of player with 1 of gold ingot named "&8>>&eZloto" with lore "&8>> &6Szansa &8>> &650 Procent" to close
        format slot 2 of player with 1 of diamond named "&8>>&bDiament" with lore "&8>> &6Szansa &8>> &650 Procent"  to close
        format slot 3 of player with 1 of iron ingot named "&8>>&fZelazo" with lore "&8>> &6Szansa &8>> &650 Procent" to close
        format slot 4 of player with 1 of obsidian named "&8>>&7Obsydian" with lore "&8>> &6Szansa &8>> &625 Procent" to close
        format slot 5 of player with 1 of ender pearl named "&8>>&5Ender Perla" with lore "&8>> &6Szansa &8>> &625 Procent" to close
        format slot 6 of player with 1 of paper named "&4&LVoucher na Vipa" with lore "&8>> &4Kliknij PPM | Szansa 6 procent" to close
on rightclick:
    if player's tool is paper named "Voucher":
        execute console command "pex user %player% group set Vip"
        broadcast "&4%player% WYKORZYSTAL VOUNCHER NA VIPA"
        remove 1 paper named "Voucher" from player's inventory
command /drop-wylacz [<text>]:
	trigger:
		if arg 1 is "iron":
			set {iron.%player%} to false
		if arg 1 is "gold":
			set {gold.%player%} to false
		if arg 1 is "coal":
			set {coal.%player%} to false
		if arg 1 is "diamond":
			set {diamond.%player%} to false
		if arg 1 is "emerald":
			set {emerald.%player%} to false
		if arg 1 is "obsidian":
			set {obsidian.%player%} to false
		if arg 1 is "ep":
			set {ep.%player%} to false
		if arg 1 is "paper":
			set {paper.%player%} to false
command /drop-wlacz [<text>]:
	trigger:
		if arg 1 is "iron":
			set {iron.%player%} to true
		if arg 1 is "gold":
			set {gold.%player%} to true
		if arg 1 is "coal":
			set {coal.%player%} to true
		if arg 1 is "diamond":
			set {diamond.%player%} to true
		if arg 1 is "emerald":
			set {emerald.%player%} to true
		if arg 1 is "obsidian":
			set {obsidian.%player%} to true
		if arg 1 is "ep":
			set {ep.%player%} to true
		if arg 1 is "paper":
			set {paper.%player%} to true
command "gui":
	trigger:
		if {iron.%player%} is false:
			if {gold.%player%} is false:
				if {diamond.%player%} is false:
					if {emerald.%player%} is false:
						if {obsidian.%player%} is false:
							if {ep.%player%} is false:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWlacz drop zelaza" to close then run [make player execute "/drop-wlacz iron"]
									format slot 1 of player with block of gold named "&cWlacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWlacz drop diamentow" to close then run [make player execute "/drop-wlacz diamond"]
									format slot 3 of player with block of emerald named "&cWlacz drop szmaragdow" to close then run [make player execute "/drop-wlacz emerald"]
									format slot 4 of player with obsidian named "&cWlacz drop obsydianu" to close then run [make player execute "/drop-wlacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is false:
				if {diamond.%player%} is false:
					if {emerald.%player%} is false:
						if {obsidian.%player%} is false:
							if {ep.%player%} is false:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWlacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWlacz drop diamentow" to close then run [make player execute "/drop-wlacz diamond"]
									format slot 3 of player with block of emerald named "&cWlacz drop szmaragdow" to close then run [make player execute "/drop-wlacz emerald"]
									format slot 4 of player with obsidian named "&cWlacz drop obsydianu" to close then run [make player execute "/drop-wlacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is false:
					if {emerald.%player%} is false:
						if {obsidian.%player%} is false:
							if {ep.%player%} is false:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWlacz drop diamentow" to close then run [make player execute "/drop-wlacz diamond"]
									format slot 3 of player with block of emerald named "&cWlacz drop szmaragdow" to close then run [make player execute "/drop-wlacz emerald"]
									format slot 4 of player with obsidian named "&cWlacz drop obsydianu" to close then run [make player execute "/drop-wlacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is false:
						if {obsidian.%player%} is false:
							if {ep.%player%} is false:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWlacz drop szmaragdow" to close then run [make player execute "/drop-wlacz emerald"]
									format slot 4 of player with obsidian named "&cWlacz drop obsydianu" to close then run [make player execute "/drop-wlacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is false:
							if {ep.%player%} is false:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWlacz drop obsydianu" to close then run [make player execute "/drop-wlacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is false:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is false:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWlacz drop zelaza" to close then run [make player execute "/drop-wlacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wylacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is false:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWlacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is false:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWlacz drop diamentow" to close then run [make player execute "/drop-wlacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is false:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWlacz drop szmaragdow" to close then run [make player execute "/drop-wlacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is false:
							if {ep.%player%} is true:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWlacz drop obsydianu" to close then run [make player execute "/drop-wlacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is false:
								if {paper.%player%} is true:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWlacz drop ender perel" to close then run [make player execute "/drop-wlacz ep"]
									format slot 6 of player with block paper named "&cWylacz drop voucheru" to close then run [make player execute "/drop-wylacz paper"]
		if {iron.%player%} is true:
			if {gold.%player%} is true:
				if {diamond.%player%} is true:
					if {emerald.%player%} is true:
						if {obsidian.%player%} is true:
							if {ep.%player%} is true:
								if {paper.%player%} is false:
									open chest with 1 row named "&a&l|&cDrop&a&l|&f" to player
									format slot 0 of player with block of iron named "&cWylacz drop zelaza" to close then run [make player execute "/drop-wylacz iron"]
									format slot 1 of player with block of gold named "&cWylacz drop zlota" to close then run [make player execute "/drop-wlacz gold"]
									format slot 2 of player with block of diamond named "&cWylacz drop diamentow" to close then run [make player execute "/drop-wylacz diamond"]
									format slot 3 of player with block of emerald named "&cWylacz drop szmaragdow" to close then run [make player execute "/drop-wylacz emerald"]
									format slot 4 of player with obsidian named "&cWylacz drop obsydianu" to close then run [make player execute "/drop-wylacz obsidian"]
									format slot 5 of player with ender pearl named "&cWylacz drop ender perel" to close then run [make player execute "/drop-wylacz ep"]
									format slot 6 of player with block paper named "&cWlacz drop voucheru" to close then run [make player execute "/drop-wlacz paper"] 

 

 

Opublikowano

@AlexsanderARG skandal! jak można tak psuć kod? Przecież od tego komputer wybuchnie xD

 

Naucz się myśleć logicznie i rozważnie bo to nie był 

 

 

Moim zdaniem inaczej się nie da.

 

jedyny pomysł z tym rozwiązaniem (mówię o twoich, multum, warunkach).

 

A tutaj przedstawiam 3 razy krótszy kod i działa o wiele lepiej :)

 

 

 

variables:
	{ironingot.%player%} = true
	{goldeningot.%player%} = true
	{diamond.%player%} = true
	{emerald.%player%} = true
	{obsidian.%player%} = true
	{enderpearl.%player%} = true
	{paper.%player%} = true
	
on mine of stone:
	if player has permissions "drop.on":
		if {ironingot.%player%} is true:
			chance of 50%:
				give 1 iron ingot to the player
		if {goldeningot.%player%} is true:
			chance of 50%:
				give 1 gold ingot to the player
		if {diamond.%player%} is true:	
			chance of 50%:
				give 1 diamond to the player
		if {emerald.%player%} is true:		
			chance of 50%:
				give 1 emerald to the player
		if {obsidian.%player%} is true:		
			chance of 25%:
				give 1 obsidian to the player
		if {enderpearl.%player%} is true:		
			chance of 25%:
				give 1 ender pearl to the player
		if {paper.%player%} is true:		
			chance of 6%:
				drop 1 paper named "Voucher"

#
command /drop:
	trigger:
		if sender is player:
			close player's inventory
			wait 3 tick
			open chest with 1 rows named "&1Drop" to player
			wait 2 tick
			if {ironingot.%player%} is true:
				set player's current inventory's slot 0 to iron ingot named "&8>>&fZelazo" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 0 to iron ingot named "&8>>&fZelazo" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &cNie"
			if {goldeningot.%player%} is true:
				set player's current inventory's slot 1 to gold ingot named "&8>>&eZloto" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 1 to gold ingot named "&8>>&eZloto" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &cNie"
			if {diamond.%player%} is true:
				set player's current inventory's slot 2 to diamond named "&8>>&bDiament" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 2 to diamond named "&8>>&bDiament" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &cNie"
			if {emerald.%player%} is true:
				set player's current inventory's slot 3 to emerald named "&8>>&aSzmaragd" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 3 to emerald named "&8>>&aSzmaragd" with lore "&8>> &6Szansa &8>> &650 Procent||&6Aktywny: &cNie"
			if {obsidian.%player%} is true:
				set player's current inventory's slot 4 to obsidian named "&8>>&7Obsydian" with lore "&8>> &6Szansa &8>> &625 Procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 4 to obsidian named "&8>>&7Obsydian" with lore "&8>> &6Szansa &8>> &625 Procent||&6Aktywny: &cNie"
			if {enderpearl.%player%} is true:
				set player's current inventory's slot 5 to ender pearl named "&8>>&5Ender Perla" with lore "&8>> &6Szansa &8>> &625 Procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 5 to ender pearl named "&8>>&5Ender Perla" with lore "&8>> &6Szansa &8>> &625 Procent||&6Aktywny: &cNie"
			if {paper.%player%} is true:
				set player's current inventory's slot 8 to paper named "&4&LVoucher na Vipa" with lore "&8>> &4Kliknij PPM | Szansa 6 procent||&6Aktywny: &aTak"
			else:
				set player's current inventory's slot 8 to paper named "&4&LVoucher na Vipa" with lore "&8>> &4Kliknij PPM | Szansa 6 procent||&6Aktywny: &cNie"

on inventory click:
	if "%inventory name of player's current inventory%" is "&1Drop":
		if slot is smaller than 0:
			stop
		cancel event
		if "%3 last characters of uncoloured lore of player's current inventory's slot slot%" is "Tak":
			set {_name} to "%type of player's current inventory's slot slot%"
			replace all " " in {_name} with ""
			set {%{_name}%.%player%} to false
			send "%{_name}%, %3 last characters of uncoloured lore of player's current inventory's slot slot%"
			execute player command "drop"
		if "%3 last characters of uncoloured lore of player's current inventory's slot slot%" is "Nie":
			set {_name} to "%type of player's current inventory's slot slot%"
			replace all " " in {_name} with ""
			set {%{_name}%.%player%} to true
			execute player command "drop"

on rightclick:
	if player's tool is paper named "Voucher":
		execute console command "pex user %player% group set Vip"
		broadcast "&4%player% WYKORZYSTAL VOUNCHER NA VIPA"
		remove 1 paper named "Voucher" from player's inventory	 

 

 

Moim zdaniem inaczej się nie da.

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

Pokaz te errory xD od razu testowalem i u mnie wszystko smigalo, zas gdy wklepalem kod alexsandra mialem 42

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

@knugi

 

[15:27:47 INFO]: [skript] Reloading drop.sk...
[15:27:47 ERROR]: 'smaller than 0' is not an entity type (drop.sk, line 73: if slot is smaller than 0:')
[15:27:47 ERROR]: 'slot' is not a number (drop.sk, line 76: if "%3 last characters of uncoloured lore of player's current inventory's slot slot%" is "Tak":')
[15:27:47 ERROR]: 'slot' is not a number (drop.sk, line 82: if "%3 last characters of uncoloured lore of player's current inventory's slot slot%" is "Nie":')
[15:27:47 INFO]: [skript] Encountered 3 errors while reloading drop.sk!

 

Jakbyś chciał wbij i przetestuj - killaura.maxc.pl 1.8

 

I jakbyś mógł to napisz mi linijkę na drop do eq

  • 2 tygodnie później...
Opublikowano

Coś mi się tutaj nie podoba... Masz skquerry 3 czy 4? Ja testowałem to na:

CraftBukkit 1.7.2, WildSkript 1.8, SkQuerry 3

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...