mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
DANIEL: Talkative tyler fix
This commit is contained in:
parent
2c1c6e08c4
commit
be659d24f7
2 changed files with 4 additions and 6 deletions
|
@ -52,17 +52,17 @@ def saveChanges():
|
|||
|
||||
LOCAL_LIST.sort()
|
||||
LOCAL_LIST = removeDuplicates(LOCAL_LIST)
|
||||
addedWords = []
|
||||
|
||||
for word in LOCAL_LIST:
|
||||
|
||||
if word in addedWords or '\\' in word:
|
||||
if '\\' in word:
|
||||
print 'Word contains illegal characters: %s' % word
|
||||
continue
|
||||
try:
|
||||
word.decode('ascii')
|
||||
except:
|
||||
print 'Word cannot be decoded in ASCII mode: %s' % word
|
||||
continue
|
||||
addedWords.append(word)
|
||||
|
||||
if "'" in word:
|
||||
f.write(' "%s",\n' % word)
|
||||
|
@ -73,10 +73,8 @@ def saveChanges():
|
|||
|
||||
print 'Your changes have been saved! Make sure to push your changes!'
|
||||
|
||||
|
||||
LOCAL_LIST = WhiteListData.WHITELIST
|
||||
|
||||
|
||||
print 'Welcome to the Toontown Stride Whitelist Tool!'
|
||||
print 'Type any word you want to add to the whitelist.'
|
||||
print 'If you wish to remove a word, type "r <word>".'
|
||||
|
|
|
@ -30,7 +30,7 @@ class DistributedSmartNPC(DistributedNPCToonBase):
|
|||
def handleCollisionSphereEnter(self, collEntry):
|
||||
self.sendUpdate('avatarEnter', [])
|
||||
|
||||
def chatUpdate(self, message):
|
||||
def chatUpdate(self, message, chatFlags):
|
||||
self.sendUpdate('talkMessage', [base.localAvatar.doId, message])
|
||||
|
||||
def greet(self, npcId, avId):
|
||||
|
|
Loading…
Reference in a new issue