With this script you can add any tape you want to check text such as:
- - Box friendship request
- - Box declaring war
- - Box quest input
- - Special character
- - You can block other value like a number 9,123,42,etc etc, or other sentence or words etc.
- - Any other box that includes a InputValue
Perl
- #1.) You can use this function where youwant if u put
- import dbg, app, chat
- szText = self.GetText()
- #szText = self.inputValue.GetText() ## If you have a box with inputvalue or something
- try:
- szGetFile = app.OpenTextFile("locale/en/block_words_python.txt")
- count_words = app.GetTextFileLineCount(szGetFile)
- except IOError:
- dbg.LogBox("Error: Loading words !")
- app.Abort()
- for line in xrange(count_words):
- lineText = app.GetTextFileLine(szGetFile, line)
- szGetTextFromFile = str(lineText).split("\t")
- if len(szGetTextFromFile) == 0 or not szGetTextFromFile[0]:
- continue
- if szText == szGetTextFromFile[0]:
- chat.AppendChat(chat.CHAT_TYPE_INFO, "[SYSTEM-ERROR] Blocked words were introduced!")
- return
Download:
- Bitte melden Sie sich an, um diesen Link zu sehen.