Skocz do zawartości
  • 0

Pomoc w dopisaniu komendy na danie premiumcase


Pytanie

Tak jak w temacie. Potrzebuję pomocy w dopisaniu komendy na danie premiumcase jednemu graczowi i każdemu.

+ permisje na to, np. nazwać ją ''case.give''. PremiumCase nazywa się ''&9premiumkejs'' ( 4fun potem zmienie na coś lepszego, ale narazie prosiłbym o takie ustawienie).

 

Edytowane przez stefanik11
stefanik11

Dodaję brakujące znaki diakrytyczne, oraz interpunkcyjne.

Notatka dodana przez stefanik11

Odnośnik do komentarza
https://skript.pl/temat/30149-pomoc-w-dopisaniu-komendy-na-danie-premiumcase/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /dajcase [<text>] [<integer>]:
	trigger:
		if sender is console:
			set {_pex} to true
		if player has permission "case.give":
			set {_pex} to true
		if {_pex} is true:
			if arg 1 is not set:
				send "/dajcase <gracz|*> <ilosc=1>"
				stop
			if arg 2 is not set:
				if arg 1 is "*":
					give {@item} to all players
					broadcast "dostales premiumkejsa"
					stop
				if "%arg 1%" parsed as player is online:
					give {@item} to "%arg 1%" parsed as player
					send "dostales premiumkejsa" to "%arg 1%" parsed as offlineplayer
					stop
				stop
			if arg 1 is "*":
				give arg 2 of {@item} to all players
				broadcast "dostales %arg 1% premiumkejsow"
				stop
			if "%arg 1%" parsed as player is online:
				give arg 2 of {@item} to "%arg 1%" parsed as player
				send "dostales %arg 1% premiumkejsow" to "%arg 1%" parsed as offlineplayer
				stop
			stop
		send "Nie masz kurla uprawnien case.give"

 

Odnośnik do komentarza
https://skript.pl/temat/30149-pomoc-w-dopisaniu-komendy-na-danie-premiumcase/#findComment-197548
Udostępnij na innych stronach

  • 0

 

[23:56:58 ERROR]: undefined option {@item} (Case.sk, line 23: give {@item} to all players')
[23:56:58 ERROR]: undefined option {@item} (Case.sk, line 27: give {@item} to "%arg 1%" parsed as player')
[23:56:58 ERROR]: undefined option {@item} (Case.sk, line 32: give arg 2 of {@item} to all players')
[23:56:58 ERROR]: undefined option {@item} (Case.sk, line 36: give arg 2 of {@item} to "%arg 1%" parsed as player')
[23:57:00 INFO]: Loaded 2 scripts with a total of 8 triggers and 16 commands in 2.52 seconds
[23:57:00 INFO]: [Skript] Encountered 4 errors while reloading the config and all scripts!

 

variables:
    {premiumcase.notifications.%player%} = true

options:
    tag: &9&lPREMIUMCASE &8»&7
    tagnocheck: &9&lPREMIUMCASE&7
    wwwtag: &9&lWWW&7
    www: soon
    blank: &8

command /dajcase [<text>] [<integer>]:
    trigger:
        if sender is console:
            set {_pex} to true
        if player has permission "case.give":
            set {_pex} to true
        if {_pex} is true:
            if arg 1 is not set:
                send "/dajcase <gracz|*> <ilosc=1>"
                stop
            if arg 2 is not set:
                if arg 1 is "*":
                    give {@item} to all players
                    broadcast "dostales premiumkejsa"
                    stop
                if "%arg 1%" parsed as player is online:
                    give {@item} to "%arg 1%" parsed as player
                    send "dostales premiumkejsa" to "%arg 1%" parsed as offlineplayer
                    stop
                stop
            if arg 1 is "*":
                give arg 2 of {@item} to all players
                broadcast "dostales %arg 1% premiumkejsow"
                stop
            if "%arg 1%" parsed as player is online:
                give arg 2 of {@item} to "%arg 1%" parsed as player
                send "dostales %arg 1% premiumkejsow" to "%arg 1%" parsed as offlineplayer
                stop
            stop
        send "Nie masz kurla uprawnien case.give"

on place:
    if player is holding a chest named "&9premiumkejs":
        cancel event
        remove 1 chest named "&9premiumkejs" from player

        chance of 50%:
            drop 32 emerald blocks
            drop 16 gold block
            loop all players:
                if {premiumcase.notifications.%loop-players%} is true:
                    send "{@blank}"
                    send " &a%player% &7otworzyl {@tagnocheck} i dostal:"
                    send " &4&l» &a32 &7x &aBlokow szmaragdow"
                    send " &4&l» &616 &7x &6Blokow zlota"
                    send "{@blank}"
                    send " {@tagnocheck} zakupisz za &6PSC&7/&6PAYPAL&7/&6SMS"
                    send " {@wwwtag} : {@www}"
                    send "{@blank}"

Podsyłam całosc

Edytowane przez stefanik11
stefanik11

Wstawiam w code (dłuższe skrypty na code.skript.pl) oraz łączę posty. Następnym razem będzie warn.

Notatka dodana przez stefanik11

Odnośnik do komentarza
https://skript.pl/temat/30149-pomoc-w-dopisaniu-komendy-na-danie-premiumcase/#findComment-197552
Udostępnij na innych stronach

  • 0

W sekcji options dodać musisz opcję item, która zawierać będzie dane przedmiotu będącego skrzynką.

options:
(tab) item: chest named "&9premiumkejs"

Na przykład.

Edytowane przez stefanik11
Odnośnik do komentarza
https://skript.pl/temat/30149-pomoc-w-dopisaniu-komendy-na-danie-premiumcase/#findComment-197565
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...