Skocz do zawartości
  • 0

Podmiana tekstu z czatu.. Pomocy!


Gość Hitman112

Pytanie

Gość Hitman112

Hej to znowu ja :D.

jak jest takie coś

replace all "%first character loop-value%" in message with "*"

Jest takie sławne przekleństwo kur**

no i ja chem żeby zamiast cenzurowania pierwszej literki czyli k cenzurowało drugą literke czyli u

Z góry dziękuję za pomoc! :D 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/
Udostępnij na innych stronach

18 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość Hitman112
2 minuty temu, Oedeopol napisał:

Może tak?


replace first character of loop-value in message with "*"

Przeczytaj dokładnie temat.

To co napisałeś  cenzuruje pierwszą literkę czyli k

próbowałem replace two character i nadal nico.

 

Edytowane przez Hitman112
Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210712
Udostępnij na innych stronach

  • 0
Gość Hitman112
Teraz, Szifter napisał:

A patrzyłeś na to?

 


replace first and second character of loop-value in message with "*"

 

Jeśli to w ogóle działa

[19:58:18 INFO]: [Skript] Reloading VSwear.sk...
[19:58:18 ERROR]: There's no loop that matches 'loop-value in message with "*"' (VSwear.sk, line 63: replace first and second character of loop-value in message with "*"')

 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210714
Udostępnij na innych stronach

  • 0
8 minut temu, Hitman112 napisał:

Przeczytaj dokładnie temat.

To co napisałeś  cenzuruje pierwszą literkę czyli k

próbowałem replace two character i nadal nico.

 

replace second character of loop-value in message with "*"

Sorki, mój błąd

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210716
Udostępnij na innych stronach

  • 0
Gość Hitman112
1 minutę temu, Oedeopol napisał:

replace second character of loop-value in message with "*"

Sorki, mój błąd

[20:06:15 INFO]: [Skript] Reloading VSwear.sk...
[20:06:15 ERROR]: There's no loop that matches 'loop-value in message with "*"' (VSwear.sk, line 63: replace second character of loop-value in message with "*"')

 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210718
Udostępnij na innych stronach

  • 0
Teraz, Hitman112 napisał:

[20:06:15 INFO]: [Skript] Reloading VSwear.sk...
[20:06:15 ERROR]: There's no loop that matches 'loop-value in message with "*"' (VSwear.sk, line 63: replace second character of loop-value in message with "*"')

 

Podaj cały kod, bo wyskakuje że nie masz loopa

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210719
Udostępnij na innych stronach

  • 0
Gość Hitman112
Teraz, Oedeopol napisał:

Podaj cały kod, bo wyskakuje że nie masz loopa

on chat:
	set {_x::*} to yaml list "test" from file "Folder\config.yml"
	loop {_x::*}:
		replace all first second character of loop-value in message with "*"

 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210720
Udostępnij na innych stronach

  • 0
Gość Hitman112
1 minutę temu, Oedeopol napisał:

on chat:
	set {_x::*} to yaml list "test" from file "Folder\config.yml"
	loop {_x::*}:
		replace second character of loop-value in message with "*"

 

[20:10:48 INFO]: [Skript] Reloading VSwear.sk...
[20:10:48 ERROR]: There's no loop that matches 'loop-value in message with "*"' (VSwear.sk, line 63: replace second character of loop-value in message with "*"')

 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210722
Udostępnij na innych stronach

  • 0
Gość Hitman112
2 minuty temu, Oedeopol napisał:

on chat:
	set {_x::*} to yaml list "test" from file "Folder\config.yml"
	loop {_x::*}:
		replace all %second character of loop-value% in message with "*"

Spróbuj

Teraz tego nie przetestuje bo jestem juz na fonie. Dopiero jutro. A jak ktos chce to niech przetestuje i niech da znać. 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210724
Udostępnij na innych stronach

  • 0
Set {_h} to 2 first character of loop-value
Replace all "%first character of {_h}% with "" In {_h}
Replace all {_h} with "*" In loop-value

Cos pomieszalem chyba ale moze sie polapiesz

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210725
Udostępnij na innych stronach

  • 0
Gość ZiemniaQ
options:
	przod: 1
	tyl: 1

on chat:
	add "kurwa", "dupa" and "qwertyuiop" to {_lista::*}
	loop {_lista::*}:
		if message contains loop-value:
			set {_swear::*} to loop-value split at ""
			loop {_swear::*}:
				set {_} to loop-value-2
				if (loop-index-2 parsed as integer) is between ({@przod} + 1) and ((length of loop-value-1) - {@tyl}):
					replace {_} with "*" in {_}
				add {_} to {_replace::*}
			set {_return} to join {_replace::*} with ""
			replace all loop-value with {_return} in message

 

Odnośnik do komentarza
https://skript.pl/temat/32430-podmiana-tekstu-z-czatu-pomocy/#findComment-210728
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ę...