Skocz do zawartości

Ntools - skrypt typu essentials


Rekomendowane odpowiedzi

Na 1.9 bez problemu dziala spigot-essentials.
 


command /zapisz:
	permission: Ntools.zapis
	trigger:
		broadcast "{@tag} &9Zapisywanie swiata..."
		wait 2 seconds
		execute console command "save-all"
		broadcast "{@tag} &9Zapisywanie swiata zakonczone!"


Widzę, że autorski system zapisu map ( ͡° ͜ʖ ͡°)

 

every 5 minutes:
	broadcast "{@tag} &9Zapisywanie gildii..."
	wait 2 seconds
	execute console command "funnyguilds save-all"
	broadcast "{@tag} &9Zapisywanie gildii zakonczone!"

Fajnie, ale wiesz, że czas do auto-zapisu funnyguilds jest w config.yml? A co jak ktoś nie ma FunnyGuilds?

 

command /helpop [<text>]:
        trigger:
                if arg 1 is set:
                        send "{@tag} &9HelpOP &c%player%: &f%arg%" to all ops
                        send "{@tag} &7Twoja wiadomosc zostala wyslana na helpop." to player
                        set {helpop.%player%} to false
                        wait {@spamhelpop} minute
                        set {helpop.%player%} to true
                if arg 1 is not set:
                        send "{@tag} &8Prawidlowe uzycie /helpop <wiadomosc>"

Co jeżeli serwer zostanie zatrzymany akurat po tym jak napisze wiadomość na helpop? Już nigdy nie będę mogł jej napisać.

 

every 3 minutes:
	broadcast "{@tag} &7Pozostawione przedmioty zostana usuniete za &910 &7sekund!"
	wait 10 seconds
	execute console command "remove item 99999999"
	broadcast "{@tag} &aPrzedmioty zostaly usuniete!"

Przecież to jest WorldEdit.. Myślałem, że istnieje coś takiego jak "remove all dropped items"

command /r [<text>]:
        trigger:
                if {ostatni.wysylajacy.chat.%name of player%} is set:
                        if arg 1 is set:
                                send "&9%player% &e-> &f: &7%arg 1%" to {ostatni.wysylajacy.chat.%name of player%}
                                send "&9%{ostatni.wysylajacy.chat.%name of player%}% &e<- &f: &7%arg 1%"
                        else:
                                send "&c&lMuszisz podac wiadmosc !"
                else:
                        send "&c&lNie pisales z nikim wczesniej!"
 
command /msg [<player>] [<text>]:
        trigger:
                if arg 1 is set:
                        if arg player is online:
                                if arg 2 is set:
                                        if player has permission "*":
                                                send "&9%player% &e-> &f: &7%arg 2%" to arg 1
                                                send "&9%arg 1% &e<- &f: &7%arg 2%"
                                                set {ostatni.wysylajacy.chat.%name of player%} to arg 1
                                        else:
                                                send "&9%player% &e-> &f: &7%arg 2%" to arg 1
                                                send "&9%arg 1% &e-< &f: &7%arg 2%"
                                                set {ostatni.wysylajacy.chat.%name of player%} to arg 1
                                else:
                                        send "&c&lMuszisz podac wiadmosc !"
                        else:
                                send "&c&lNie ma takiego gracza online!"
                else:
                        send "&C&lMusisz podac nick gracza!"


Jeżeli to zadziała to gratulacje, ale z tego co widzę można odpowiadać tylko sobie.. Albo nie rozumiem tej logiki.

 

				if arg 1 is "clear":
                        if player has permission "Ntools.clear":
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast ""
                                broadcast "{@tag} &Cchat zozstal wyczyszczony przez:  %player%."
                                broadcast "                         &cIlosc TPS: &a%tps% "
                                broadcast ""
                                stop

Ta ilość TPS to żeby wiedzieć czy od wyczyszczenia czatu się serwer nie zcrashuje ( ͡° ͜ʖ ͡°)?
Nie wiem czy wiesz, ale jest coś takiego jak pętla.

Cytuj

if arg 1 is "clear":
    if player has permission "Ntools.clear":
        loop 107 times:
            broadcast ""
        broadcast "{@tag} &Cchat zozstal wyczyszczony przez:  %player%."
        broadcast "                         &cIlosc TPS: &a%tps% "
        broadcast ""
        stop

 

on chat:
        replace all "[ciach]a" with "k***a" in the message
        replace all "chuj" with "c**j" in the message
        replace all "[ciach]ony" with "p********y" in the message
        replace all "pedal" with "p***l" in the message
        replace all "gej" with "g*j" in the message
        replace all "suka" with "s**a" in the message
        replace all "cipa" with "c**a" in the message
        replace all "dupa" with "d**a" in the message
        replace all "[ciach]ona" with "pi*******a" in the message
        replace all "pojebalo" with "p*****lo" in the message
        replace all "zajebe cie" with "z****e cie" in the message
        replace all "debil" with "d***l" in the message
on chat:
        if player is not op:
                replace all "A" with "a" in the message
                replace all "B" with "b" in the message
                replace all "C" with "c" in the message
                replace all "D" with "d" in the message
                replace all "E" with "e" in the message
                replace all "F" with "f" in the message
                replace all "G" with "g" in the message
                replace all "H" with "h" in the message
                replace all "I" with "i" in the message
                replace all "J" with "j" in the message
                replace all "K" with "k" in the message
                replace all "L" with "l" in the message
                replace all "M" with "m" in the message
                replace all "N" with "n" in the message
                replace all "O" with "o" in the message
                replace all "P" with "p" in the message
                replace all "R" with "r" in the message
                replace all "S" with "s" in the message
                replace all "T" with "t" in the message
                replace all "U" with "u" in the message
                replace all "W" with "w" in the message
                replace all "Y" with "y" in the message
                replace all "Z" with "z" in the message
on chat:
        replace all "wbijac na moj server" with "localhost" in the message
        replace all "IP mojego servera" with "localhost" in the message
        replace all "zapraszam na moj server" with "localhost" in the message
        replace all "zapraszam na server mojego kolegi" with "localhost" in the message
        replace all "moj server IP:" with "localhost" in the message

Zaawansowana anty-reklama, anty-caps, anty-swear, szkoda tylko, że nie uwzględniłeś tego, że nie wszyscy piszą "server" i że istnieje coś takiego jak domena :)
 

command /afk:
	trigger:
		if player has permission "Ntools.afk":
			if {afk.%player%} is not set:
				set {afk.%player%} to true
				send "{@tag} &9Wlaczono komende afk!"
				stop
			if {afk.%player%} is true:					
				set {afk.%player%} to false
				broadcast "<yellow>%player% <pink>jest teraz &fAFK"
				stop
			if {afk.%player%} is false:
				set {afk.%player%} to true
				broadcast "<yellow>%player% <pink>juz nie jest &fAFK"
				stop
		else:
			send "&4Blad: &cNie posiadasz uprawnienia &8(Ntools.afk)"
			stop

Yy, jak mam "AFK" true czyli włączone i wpiszę /afk --> Wszyscy otrzymują wiadomość o tym, ze jestem teraz AFK?

 

command /sreload:
	trigger:
		send "{@tag} &cPrzeladowanie serwera za 5 sekund."
		wait 5 second
		make player execute command "sk reload all"
		wait 10 second
		send "{@tag} &9Pomyslnie przeladowano caly serwer"

Haha, Skript-Core - serwer tylko opiera się na skript? Ciekawe ( ͡° ͜ʖ ͡°)

 

command /heal [<player>]:
        aliases: ulecz
        trigger:
                if arg 1 is not set:
                        if player's health is not 10:
                                if player has permission "Ntools.heal":
                                        set the player's food level to 10
                                        heal the player by 10 hearts
                                        send "{@tag} &aUleczono!"
                                        stop
                                else:
                                        send "&4Blad: &cNie posiadasz uprawnienia &8(Ntools.heal)"
                                        stop
                        else:
                                send "{@tag} &cTwoje zycie jest pelne!"
                                stop
                if arg 1 is set:
                        if argument's health is not 10:
                                if player has permission "Ntools.heal":
                                        set the argument's food level to 10
                                        heal the argument by 10 hearts
                                        send "{@tag} &bUleczono!" to arg 1
                                        send "{@tag} &bUleczono gracza &c%arg 1%"
                                        stop
                                else:
                                        send "&4Blad: &cNie posiadasz uprawnienia &8(Ntools.heal)"
                                        stop
                        else:
                                send "{@tag} &cZycie tego gracza jest pelne!"
                                stop

A co jeżeli ktoś ma więcej niż 10 serc, na przykład na takim easyhc gdzie serca się zdobywa?

 

command /hat <material>:
        aliases: czapka
        trigger:
                if player has permission "Ntools.hat":
                        if arg 1 is set:
                                if id of argument 1 is greater than 255:
                                        send "{@tag} &cNie mozesz zalozyc tego itemku tylko bloki!"
                                        stop
                                else:
                                        if helmet slot of the player is not empty:
                                                send "{@tag} &cNajpierw zdejmij przedmiot z glowy!"
                                                stop
                                        else:
                                                set helmet of the player to argument
                                                send "{@tag} &bCiesz sie nowym kapeluszem!"
                                                stop
                        else:
                                send "{@tag} &cWybierz id bloku!"
                                stop
                else:
                        send "&4Blad: &cNie posiadasz uprawnienia &8(Ntools.hat)"
                        stop

To się nadaje jedynie na serwery creative, no chyba że chcesz dać vipom nielimitowany dostęp do itemów.

 

# Nie Dotykaj bo nie bd dzialac caly sk 0o0#

on skript start:
        send "&8Serwer pracuje na wersji: %skript version%" to the console
        send "" to the console
        send "&8--------------------------------------------------------------" to the console
        send "&8|                                                            |" to the console
        send "&8|                  Odpalono &9Ntools                         |" to the console
        send "&8|                                                            |" to the console
        send "&8--------------------------------------------------------------" to the console
        send "" to the console
        send "&8Autor: &aNaciukany" to the console
        send "&8Najnowsza" to the console
        send "" to the console

To chyba.. nie zadziała tak jak myślisz.

 

# tps or players #

command /Ntools:tps:
	description: Ntools » Liczba TPS serwera.
	executable by: players
	aliases: tps
	trigger:
		if player has permission "Ntools.tps":
			send "&7-=-=-=-=-=-=-=-=-=-=-=-=-="
			send ""
			send "&f&lTPS: &a&l%tps%&f&l."
			send ""
			send "&7-=-=-=-=-=-=-=-=-=-=-=-=-="
		else:
			send "&4Blad: &cNie posiadasz uprawnienia &8(Ntools.tps)"

ticks per second lub gracze? ( ͡° ͜ʖ ͡°)
Myślałem ogólnie, że tps często sprawdza się z konsoli, ale może tylko ja tak robię.


WYNIK KOŃCOWY: RAK

Edytowane przez Nieaktywny
Odnośnik do komentarza
https://skript.pl/temat/9075-ntools-skrypt-typu-essentials/#findComment-88253
Udostępnij na innych stronach

  • Norbi zmienił(a) tytuł na Ntools - skrypt typu essentials

Jeśli mam być szczery to skrypt 1/10 . Dlaczego taka ocena a nie 0/10, ponieważ potrudziłeś się trochę z edycją bo to jest przerobione essentials skript nie ty to pisales. Porównałem dwa kody i są bardzo podobne i w tej samej kolejności.

Odnośnik do komentarza
https://skript.pl/temat/9075-ntools-skrypt-typu-essentials/#findComment-89132
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ę...