mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
0d9949b86a
Signed-off-by: Daniel <denialmc@outlook.com>
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
import string
|
|
import sys
|
|
from direct.showbase import DirectObject
|
|
from otp.otpbase import OTPLocalizer
|
|
from toontown.toonbase import TTLocalizer
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
from otp.otpbase import OTPGlobals
|
|
from otp.speedchat import SCDecoders
|
|
from pandac.PandaModules import *
|
|
from otp.chat.ChatGlobals import *
|
|
from otp.chat.TalkGlobals import *
|
|
from otp.speedchat import SpeedChatGlobals
|
|
from otp.chat.TalkMessage import TalkMessage
|
|
from otp.chat.TalkAssistant import TalkAssistant
|
|
from toontown.speedchat import TTSCDecoders
|
|
import time
|
|
|
|
class TTTalkAssistant(TalkAssistant):
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('TTTalkAssistant')
|
|
|
|
def __init__(self):
|
|
TalkAssistant.__init__(self)
|
|
|
|
def clearHistory(self):
|
|
TalkAssistant.clearHistory(self)
|
|
|
|
def sendPlayerWhisperToonTaskSpeedChat(self, taskId, toNpcId, toonProgress, msgIndex, receiverId):
|
|
# TODO: Remove Player system.
|
|
return None
|
|
|
|
def sendToonTaskSpeedChat(self, taskId, toNpcId, toonProgress, msgIndex):
|
|
error = None
|
|
messenger.send(SCChatEvent)
|
|
messenger.send('chatUpdateSCToontask', [taskId,
|
|
toNpcId,
|
|
toonProgress,
|
|
msgIndex])
|
|
return error
|