Skocz do zawartości
  • 0

Case


anarchista_

Pytanie

Witam, pisze kod na skrzynki na serwer. Wyglada on tak... Chodzi o to ze gdy otworze 2 case i wyrzuce to co mi wylecialo i otworze kolejnego to wraca mi to do eq + leza stare itemy na ziemi HELP

on rightclick with chest:
    if player's tool is chest named "&dZM&6CASE":
        if name of player's tool is "&dZM&6CASE":
            cancel event
            clear {%player%.skrzynia.v}
            remove 1 chest named "&dZM&6CASE" from player's inventory
            set {%player%.skrzynia.v} to a random integer from 1 to 2
            if {%player%.skrzynia.v} is 1:
                add 1 beacon to player's inventory
            if {%player%.skrzynia.v} is 2:
                add 1 diamond pickaxe of unbreaking 3 and efficiency 6 and fortune 3 named "&4Kilof Kopaczov" to player's inventory


command /case [<text>] [<text>] [<integer>]:
    permission: rozdaj.case
    trigger:
        if arg 1 is "all":
            if arg 2 is "all":
                if arg 3 is set:
                    loop all players:
                        give arg 3 of chest named "&dZM&6CASE" to loop-player

 

Edytowane przez TakiJakTy
TakiJakTy

Dodaje w code.
Temat został zamknięty z powodu braku aktywności autora.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
https://skript.pl/temat/36617-case/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	item: chest named "&6PremiumCase"
command /case [<offline player>] [<integer=1>]:
	permission: case
	trigger:
		if arg 1 is "all" or "*":
			add arg 2 of {@item} to all players
			send "&7Caly serwer otrzymal: &6%arg 2% &7case!" to all players
		else:
			set {_p} to "%arg 1%" parsed as player
			add arg 2 of {@item} to {_p}
			send "&7Otrzymales case! &6%arg 2%" to {_p}
			send "&7Dales case: &6%{_p}%"
on right click:
	if name of player's tool is name of {@item}:
		cancel event
		remove 1 of player's tool from player's tool
		if (random integer between 1 and 2) is 1:
			add beacon to player
		else:
			add diamond pickaxe of unbreaking 3 and efficiency 6 and fortune 3 named "&4Kilof Kopaczov" to player

 

Odnośnik do komentarza
https://skript.pl/temat/36617-case/#findComment-233949
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ę...