Skocz do zawartości
  • 0

Skrypt na marihuane i metamfetaminy


Pytanie

Siemka chciałbym ,aby ktoś z was napisał mi skrypt jeżeli oczywiście możecie skrypt na te 2 substancje 1 miałaby wglądać jako "grass" a metamfetamina jako "sugar" 

Marihuana nosiła by nazwa &2&lMARIHUANA lecz Metamfetamina &f&lMETAMFETAMINA

Marihuana dawała by efekt nudności na 15 sekund oraz speed 3 na 15 sekund ( po naciśnięciu prawym przyciskiem myszy na nią wtedy ona by również znikałą)

Metamfetamina dawała by efekt siły (2) na 2 minuty ,widzenie w ciemności na 3 minuty  oraz regeneracje (1) na 2 minuty ( po naciśnięciu prawym przyciskiem myszy na nią wtedy ona by również znikałą)

 

Oby te dwie substancje bym mógł je przywołać komendą /narkotyk (1 lub 2) (gracz) (ilość) oraz jeżeli by była możliwość to 5% szans na dropnięcie marihuany poprzez rozwalania trawy a metamfetamine by tworzyło się w taki sposób

19w7buS.png

 

1 = Marihuana

2 = Metamfetamina

Komenda fajne by było jak by miał dostęp do niej tylko ktoś z permisjami

Jeżeli wymagało by to jakiś dodatków to po prostu dopisz jak możesz ja je pobiore :) mam tylko wersje Skript 2.5 wersja mc 1.16.1

Edytowane przez Wojciu
zapomniałem o permisjach
Wojciu

Zmieniam link na obraz.

Notatka dodana przez Wojciu

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/
Udostępnij na innych stronach

16 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
2 godziny temu, Jakubk15 napisał:

Proszę bardzo.
Jak coś nie będzie działać, to mów.

Pozdrawiam.


 
[15:03:27] [Server thread/ERROR]: indentation error: expected 28 spaces, but found 29 spaces (narkotyki.sk, line 38: give arg 2 arg 3 grass named "&2&lMARIHUANA"')
[15:03:27] [Server thread/ERROR]: indentation error: expected 28 spaces, but found 29 spaces (narkotyki.sk, line 39: stop')
[15:03:27] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (narkotyki.sk, line 37: if arg 1 is "1":')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply nausea 1 for 15 seconds to player (narkotyki.sk, line 7: apply nausea 1 for 15 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply speed 3 for 15 seconds to player (narkotyki.sk, line 8: apply speed 3 for 15 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply strength 2 for 120 seconds to player (narkotyki.sk, line 12: apply strength 2 for 120 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply regeneration 1 for 120 seconds to player (narkotyki.sk, line 13: apply regeneration 1 for 120 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply night vision 1 for 180 seconds to player (narkotyki.sk, line 14: apply night vision 1 for 180 seconds to player')
[15:03:27] [Server thread/ERROR]: 'argument(s)' cannot be used if the command has multiple arguments. Use 'argument 1', 'argument 2', etc. instead (narkotyki.sk, line 42: give arg 2 arg 3 sugar named "&f&lMETAMFETAMINA"')

 

Edytowane przez Wojciu
Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259411
Udostępnij na innych stronach

  • 0
options:
    perm: server.cmd
    
on right click:
    if player's held item is grass named "&2&lMARIHUANA":
        remove 1 grass named "&2&lMARIHUANA" from player's inventory
        apply nausea 1 for 15 seconds to player
        apply speed 3 for 15 seconds to player
        stop
    if player's held item is sugar named "&f&lMETAMFETAMINA":
        remove 1 sugar named "&f&lMETAMFETAMINA" from player's inventory
        apply strength 2 for 120 seconds to player
        apply regeneration 1 for 120 seconds to player
        apply night vision 1 for 180 seconds to player
        stop

command /narkotyk [<text>] [<player>] [<number>]:
    permission: {@perm}
    permission message: &4Blad: &cNie masz uprawnien!
    trigger:
        if arg 1 is not set:
            send "&4Blad: &cUzycie: /narkotyk [<rodzaj>] [<gracz>] [<liczba>]"
            stop
        else:
            if arg 2 is not set:
                send "&4Blad: &cUzycie: /narkotyk [<rodzaj>] [<gracz>] [<liczba>]"
                stop
            else:
                if arg 3 is not set:
                    send "&4Blad: &cUzycie: /narkotyk [<rodzaj>] [<gracz>] [<liczba>]"
                    stop
                else:
                    if arg 1 is not "1" or "2":
                        send "&4Blad: &cDostępne rodzaje: 1 - Marihuana, 2 - Metamfetamina"
                        stop
                    else:
                        if arg 1 is "1":
                            give arg 2 arg 3 grass named "&2&lMARIHUANA"
                            stop
                        else:
                            if arg 1 is "2":
                                give arg 2 arg 3 sugar named "&f&lMETAMFETAMINA"
                                stop
18 minut temu, NeverWrong_ napisał:


 
[15:03:27] [Server thread/ERROR]: indentation error: expected 28 spaces, but found 29 spaces (narkotyki.sk, line 38: give arg 2 arg 3 grass named "&2&lMARIHUANA"')
[15:03:27] [Server thread/ERROR]: indentation error: expected 28 spaces, but found 29 spaces (narkotyki.sk, line 39: stop')
[15:03:27] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (narkotyki.sk, line 37: if arg 1 is "1":')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply nausea 1 for 15 seconds to player (narkotyki.sk, line 7: apply nausea 1 for 15 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply speed 3 for 15 seconds to player (narkotyki.sk, line 8: apply speed 3 for 15 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply strength 2 for 120 seconds to player (narkotyki.sk, line 12: apply strength 2 for 120 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply regeneration 1 for 120 seconds to player (narkotyki.sk, line 13: apply regeneration 1 for 120 seconds to player')
[15:03:27] [Server thread/ERROR]: Can't understand this condition/effect: apply night vision 1 for 180 seconds to player (narkotyki.sk, line 14: apply night vision 1 for 180 seconds to player')
[15:03:27] [Server thread/ERROR]: 'argument(s)' cannot be used if the command has multiple arguments. Use 'argument 1', 'argument 2', etc. instead (narkotyki.sk, line 42: give arg 2 arg 3 sugar named "&f&lMETAMFETAMINA"')

Przesyłam poprawione taby.

Edytowane przez Jakubk15
Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259416
Udostępnij na innych stronach

  • 0
2 minuty temu, Jakubk15 napisał:

options:
    perm: server.cmd
    
on right click:
    if player's held item is grass named "&2&lMARIHUANA":
        remove 1 grass named "&2&lMARIHUANA" from player's inventory
        apply nausea 1 for 15 seconds to player
        apply speed 3 for 15 seconds to player
        stop
    if player's held item is sugar named "&f&lMETAMFETAMINA":
        remove 1 sugar named "&f&lMETAMFETAMINA" from player's inventory
        apply strength 2 for 120 seconds to player
        apply regeneration 1 for 120 seconds to player
        apply night vision 1 for 180 seconds to player
        stop

command /narkotyk [<text>] [<player>] [<number>]:
    permission: {@perm}
    permission message: &4Blad: &cNie masz uprawnien!
    trigger:
        if arg 1 is not set:
            send "&4Blad: &cUzycie: /narkotyk [<rodzaj>] [<gracz>] [<liczba>]"
            stop
        else:
            if arg 2 is not set:
                send "&4Blad: &cUzycie: /narkotyk [<rodzaj>] [<gracz>] [<liczba>]"
                stop
            else:
                if arg 3 is not set:
                    send "&4Blad: &cUzycie: /narkotyk [<rodzaj>] [<gracz>] [<liczba>]"
                    stop
                else:
                    if arg 1 is not "1" or "2":
                        send "&4Blad: &cDostępne rodzaje: 1 - Marihuana, 2 - Metamfetamina"
                        stop
                    else:
                        if arg 1 is "1":
                            give arg 2 arg 3 grass named "&2&lMARIHUANA"
                            stop
                        else:
                            if arg 1 is "2":
                                give arg 2 arg 3 sugar named "&f&lMETAMFETAMINA"
                                stop

Przesyłam poprawione taby.

Te same błędy oprócz tych 2 z tabami

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259417
Udostępnij na innych stronach

  • 0
1 minutę temu, NeverWrong_ napisał:

Działą lecz skrypt crashuje serwer

Naprawdę? Nie wiem jak to się stało. Jakie dodatki do skripta posiadasz?

 

Edytowane przez Jakubk15
Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259421
Udostępnij na innych stronach

  • 0
2 godziny temu, Jakubk15 napisał:

Spróbuj pobrać SkQuery, skRayFall, skUtilities czy coś, nie znam się na dodatkach ale to moze pomóc.

Nie znam się, ale się wypowiem.

2 godziny temu, NeverWrong_ napisał:

Skript 2.5 oraz tylko vixio

Tutaj moja wersja. Wymagany SkQuery do zarejestrowania nowej receptury.

options:
	permisja: narkotyki.permission
	marihuana: tall grass named "&2&lMARIHUANA"
	metamfetamina: sugar named "&f&lMETAMFETAMINA"

on load:
	register new shaped recipe for {@metamfetamina} using spider eye, sugar, spider eye, sugar, water bucket, sugar, spider eye, sugar, spider eye
	
on right click:
	if player's tool is {@marihuana}:
		apply potion of nausea 1 to player for 15 seconds
		apply potion of speed 3 to player for 15 seconds
		remove 1 of {@marihuana} from player's inventory
	else if player's tool is {@metamfetamina}:
		apply potion of strength 2 to player for 2 minutes
		apply potion of night vision 1 to player for 3 minutes
		apply potion of regeneration 1 to player for 2 minutes
		remove 1 of {@metamfetamina} from player's inventory	
		
command /narkotyk <integer> [<integer=1>] [<player>]:
	permission: {@permisja}
	permission message: &4Nie masz dostepu do tej komendy.
	trigger:
		if arg 1 is 1:
			if arg 3 is not set:
				give arg 2 of {@marihuana} to player
			else:
				give arg 2 of {@marihuana} to arg 3
		else if arg 1 is 2:
			if arg 3 is not set:
				give arg 2 of {@metamfetamina} to player
			else:
				give arg 2 of {@metamfetamina} to arg 3
				
on break of tall grass:
	chance of 5%:
		drop 1 of {@marihuana} at event-block

 

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259439
Udostępnij na innych stronach

  • 0
2 minuty temu, Kormic napisał:

Nie znam się, ale się wypowiem.

Tutaj moja wersja. Wymagany SkQuery do zarejestrowania nowej receptury.


options:
	permisja: narkotyki.permission
	marihuana: tall grass named "&2&lMARIHUANA"
	metamfetamina: sugar named "&f&lMETAMFETAMINA"

on load:
	register new shaped recipe for {@metamfetamina} using spider eye, sugar, spider eye, sugar, water bucket, sugar, spider eye, sugar, spider eye
	
on right click:
	if player's tool is {@marihuana}:
		apply potion of nausea 1 to player for 15 seconds
		apply potion of speed 3 to player for 15 seconds
		remove 1 of {@marihuana} from player's inventory
	else if player's tool is {@metamfetamina}:
		apply potion of strength 2 to player for 2 minutes
		apply potion of night vision 1 to player for 3 minutes
		apply potion of regeneration 1 to player for 2 minutes
		remove 1 of {@metamfetamina} from player's inventory	
		
command /narkotyk <integer> [<integer=1>] [<player>]:
	permission: {@permisja}
	permission message: &4Nie masz dostepu do tej komendy.
	trigger:
		if arg 1 is 1:
			if arg 3 is not set:
				give arg 2 of {@marihuana} to player
			else:
				give arg 2 of {@marihuana} to arg 3
		else if arg 1 is 2:
			if arg 3 is not set:
				give arg 2 of {@metamfetamina} to player
			else:
				give arg 2 of {@metamfetamina} to arg 3
				
on break of tall grass:
	chance of 5%:
		drop 1 of {@marihuana} at event-block

 

Okej tylko jest 1 problem jak instaluje skquery to po restarcie serwera on nie działa tak jakby go nie było ;<

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259440
Udostępnij na innych stronach

  • 0
Teraz, NeverWrong_ napisał:

Okej tylko jest 1 problem jak instaluje skquery to po restarcie serwera on nie działa tak jakby go nie było ;<

A skąd go pobierasz i jaką wersję?

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259441
Udostępnij na innych stronach

  • 0
7 minut temu, NeverWrong_ napisał:

Cóż, ja mam SkQuery 4.1.2, spróbuj jeszcze z tym, być może coś się schrzaniło w najnowszej wersji.

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259447
Udostępnij na innych stronach

  • 0
Godzinę temu, NeverWrong_ napisał:

Również nie działa

Jakie błędy pojawiają się w konsoli, podczas włączania serwera i korzystania ze skryptu (o ile jakiekolwiek są)?

Odnośnik do komentarza
https://skript.pl/temat/41455-skrypt-na-marihuane-i-metamfetaminy/#findComment-259456
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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