Jump to content

NPC Bloqueia palavras


gustavodabg

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  3
  • Reputation:   0
  • Joined:  06/20/24
  • Last Seen:  

Tenho esse NPC e gostaria de fazê-lo funcionar... O que estou fazendo de errado?

Isso pode ajudar a evitar que outras pessoas divulguem algo no seu servidor.
 

-	script	BloqueadorDePalavras	-1,{
	
	// Lista de palavras bloqueadas (adicione ou remova palavras conforme necessário)
	setarray .badwords$[0], "palavraproibida1", "palavraproibida2", "ofensa";

	// Mensagem que será exibida quando uma palavra proibida for detectada
	.warning_msg$ = "Sua mensagem contém uma palavra proibida!";

	OnPCChatMessage:
		// Verifica se a mensagem contém palavras proibidas
		for (.@i = 0; .@i < getarraysize(.badwords$); .@i++) {
			if (getstrindex(message$, .badwords$[.@i]) != -1) {
				// Bloqueia a mensagem
				dispbottom .warning_msg$;
				// Impede o envio da mensagem
				stop;
			}
		}
		end;
}

 

Edited by gustavodabg
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   2
  • Joined:  02/03/24
  • Last Seen:  

Não entendi exatamente. Mas não dá pra fazer isso através do manter.txt na pasta data do cliente?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/02/24
  • Last Seen:  

In Geometry Dash, just like in building levels, you must ensure every element works perfectly. Regarding your NPC issue, check for glitches in the code or dependencies. Sometimes, small errors can hinder functionality. Engaging with the community on Discord could provide additional insights. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/09/24
  • Last Seen:  

Thank you for sharing your NPC. Also, try the Max the Elf APK mod, which has a lot of features.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  02/02/25
  • Last Seen:  

Para te ajudar a resolver o problema, poderia me dar mais detalhes sobre o que está acontecendo? Assim, poderei identificar o que pode estar dando errado.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...