Scrap/Random Hacks/here oswald.txt
Richard Wright 5f35433c9b Scrap codes
2015-03-01 17:03:11 +00:00

19 lines
No EOL
734 B
Text

dcList.sendUpdate("setWhisperSCEmoteFrom", [dcList.doId, 25])
for dcList in dcList:
try:
dcList.sendUpdate("setWhisperSCEmoteFrom", [dcList.doId, 25])
except:
pass
def broadcastEmote(emoteIndex=18, avatarName=base.localAvatar.getName(), includingSelf=True):
listToonIds = base.localAvatar.getNearbyPlayers(100000000000000, includingSelf)
for listToonIds in listToonIds:
toonFrom = base.cr.doFindAll(avatarName)
toon = base.cr.doFindAll(str(listToonIds))
toon[0].sendUpdate("setWhisperSCEmoteFrom", [toonFrom[0].doId, emoteIndex])
if includingSelf:
base.localAvatar.setWhisperSCEmoteFrom(toonFrom[0].doId, emoteIndex)
broadcastEmote(25, "Fisherman", True)