Skocz do zawartości
  • 0

Dodanie jednej rzeczy do skryptu


vkvbuss
 Udostępnij

Pytanie

Cześć, mam skrypt na skrzynki, które mogę rozdawać każdemu, sobie lub podanemu graczu.

Umiałby ktoś dodać, żeby działało np /caseall 5, że daje każdemu 5 skrzynek?

Tak samo z /casegive <player> <ilosc>

Za pomoc - kilka plusikow :)

 

 

command /casegive [<player>]:

    permission: accase.admin
    permission message: &cNie masz uprawnien.
    trigger:
        send "&7Otrzymales skrzynie &2&lEASY&F&LSB &7od administracji! " to the argument 1
        give 1 chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***"  to the argument 1

command /caseadm:
    permission: accase.admin
    trigger:
        give 64 chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***"  to the player
command /caseall:
    permission: accase.admin
    trigger:
        broadcast ""
        broadcast ""
        broadcast ""
        broadcast ""
        broadcast ""
        broadcast "      &c&lADMINISTRACJA ROZDALA KAZDEMU SKRZYNIE &2&lEASY&F&LSB"
        broadcast "                         &6&lZYCZYMY UDANEGO DROPU"
        broadcast ""
        broadcast ""
        broadcast ""
        broadcast ""
        broadcast ""
        give 1 chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***"  to all players
on place:
    if player's tool is chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***"  :
        cancel event
        remove chest from player

        send "&c%player% &7OTWORZYL SKRZYNIE &2&lEASY&F&LSB &7I WYLOSOWAL " to all players
        chance of 10%:
            drop 8 264
            broadcast "&4» &38 DIAMENTOW &8[&710%%&8]"
        chance of 10%:
            drop 1 278
            broadcast "&4» &3DIAMENTOWY KILOF &8[&710%%&8]"
        chance of 10%:
            drop 1 276
            broadcast "&4» &3DIAMENTOWY MIECZ &8[&710%%&8]"
        chance of 10%:
            drop 1 261
            broadcast "&4» &3LUK &8[&710%%&8]"
        chance of 10%:
            drop 16 266
            broadcast "&4» &316 SZTABEK ZLOTA &8[&710%%&8]"
        chance of 8%:
            drop 8 388
            broadcast "&4» &38 SZMARAGDOW &8[&78%%&8]"
        chance of 10%:
            drop 16 265
            broadcast "&4» &316 SZTABEK ZELAZA &8[&710%%&8]"
        chance of 20%:
            drop 16 352
            broadcast "&4» &316 KOSCI &8[&720%%&8]"
        chance of 20%:
            drop 16 17
            broadcast "&4» &316 DREWNA &8[&720%%&8]"
        chance of 20%:
            drop 64 4
            broadcast "&4» &364 COBBLESTONE'a &8[&720%%&8]"
        chance of 7%:
            drop 1 322:1
            broadcast "&4» &31 KOXA &8[&74%%&8]"
        chance of 16%:
            drop 1 322:0
            broadcast "&4» &31 REFILA &8[&78%%&8]"
        chance of 1%:
            drop 1 52
            broadcast "&4» &2&lMOB&8-&f&lSPAWNER &8[&71%%&8]"
        chance of 1%:
            drop 1 beacon
            broadcast "&4» &9&lB&e&lE&2&lA&c&lC&6&lO&e&lN &8[&71%%&8]"

oczywiscie 5 to przyklad tylko !

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /casegive [<text>] [<text>]:
  	trigger:
  		set {_player} to "%arg-1%"
  		set {_number} to "%arg-2%"
		give {_number} chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***" to {_player} 
command /caseall [<text>]:
  	trigger:
  		set {_number} to "%arg-1%"
		give {_number} chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***" to all

Powinno działać

Edytowane przez Kuba_2003TV
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
18 minut temu, Kuba_2003TV napisał:

command /casegive [<text>] [<text>]:
  	trigger:
  		set {_player} to "%arg-1%"
  		set {_number} to "%arg-2%"
		give {_number} chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***" to {_player} 

command /caseall [<text>]:
  	trigger:
  		set {_number} to "%arg-1%"
		give {_number} chest named "&2&lEASY&F&LSB" with lore "&c&l*** &fPOSTAW NA ZIEMII &c&l***||&6&L*** &2UDANEGO DROPU &6&L***" to all

Powinno działać

wieczorem sprawdze, masz narazie naj

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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