87aCk_X

My WorKing In python

Sep 8th, 2013
228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //@shahrukh's courtesy@
  2. //@Use them at your own risk@
  3.                        ------Server Bot-------
  4.    import toontown
  5.    NumToonBots = 0
  6.    from direct.distributed.PyDatagram import PyDatagram
  7.    from direct.interval.IntervalGlobal import Func, Wait, Sequence
  8.    from toontown.distributed.ToontownMsgTypes import CLIENT_SET_AVATAR
  9.    def createAvatarAndAvList():
  10.        try:base.cr.exitWaitForAvatarList()
  11.        except:pass
  12.        ToonDNA = toontown.toon.ToonDNA.ToonDNA()
  13.        ToonDNA.makeFromNetString('t\x09\x01\x00\x01\x00\x1b\x00\x1b\x00\x1b\x09\x00\x09\x09')
  14.        base.cr.sendCreateAvatarMsg(ToonDNA, 'Toon', 5)
  15.        base.cr.enterWaitForAvatarList()
  16.    def createAvatarNPCBot():
  17.        try:
  18.            global NumToonBots
  19.            NumToonBots += 1
  20.            base.cr.exitWaitForAvatarList()
  21.            LocalX = base.localAvatar.getX()
  22.            LocalY = base.localAvatar.getY()
  23.            LocalZ = base.localAvatar.getZ()
  24.            base.localAvatar.stopPosHprBroadcast()
  25.            ToonAvatarId = base.cr.avList[1].id
  26.            NORMAL_TOON_ID = base.localAvatar.doId
  27.            NORMAL_TOON_ZONE = base.localAvatar.getZoneId()
  28.            RefreshAvatar = PyDatagram()
  29.            RefreshAvatar.addUint16(CLIENT_SET_AVATAR)
  30.            RefreshAvatar.addUint32(ToonAvatarId)
  31.            base.localAvatar.doId = ToonAvatarId
  32.            base.cr.avData.id = ToonAvatarId
  33.            base.cr.sendDatagram(RefreshAvatar)
  34.            base.cr.sendSetZoneMsg(NORMAL_TOON_ZONE)
  35.            base.localAvatar.d_setParent(2)
  36.            base.localAvatar.sendUpdate('setPos', [LocalX, LocalY, LocalZ])
  37.            RefreshAvatar = PyDatagram()
  38.            RefreshAvatar.addUint16(CLIENT_SET_AVATAR)
  39.            RefreshAvatar.addUint32(NORMAL_TOON_ID)
  40.            base.localAvatar.doId = NORMAL_TOON_ID
  41.            base.cr.avData.id = NORMAL_TOON_ID
  42.            base.cr.sendDatagram(RefreshAvatar)
  43.            base.cr.sendSetZoneMsg(NORMAL_TOON_ZONE)
  44.            base.localAvatar.d_setParent(2)
  45.            base.localAvatar.startPosHprBroadcast()
  46.        except:pass
  47.    def deleteCreatedAvatar():
  48.        try:
  49.            ToonAvatarId = base.cr.avList[1].id
  50.            base.cr.sendDeleteAvatarMsg(ToonAvatarId)
  51.            base.cr.enterWaitForAvatarList()
  52.        except:pass
  53.    def createAvatarInCurrPosition():
  54.        avt = Sequence()
  55.        avt.append(Func(createAvatarAndAvList))
  56.        avt.append(Wait(1))
  57.        avt.append(Func(createAvatarNPCBot))
  58.        avt.append(Wait(1))
  59.        avt.append(Func(deleteCreatedAvatar))
  60.        avt.append(Wait(1))
  61.        avt.loop()
  62.    createAvatarInCurrPosition()
  63.    
  64.    
  65.    ----My DNA----
  66.    
  67.    base.localAvatar.setDNAString(''t\x05\x05\x00\x01\x56\x06\x3d\x03\31\x07\x0e\x00\x0e\x0e'')
  68.    base.localAvatar.setDNAString('t\x09\x02\x02\x01\x00\x1b\x00\x1b\x00\x1b\x1b\x00\x1b\x1b')
  69.    base.localAvatar.setDNAString('t\x09\x01\x00\x01\x63\x1b\x00\x1b\x27\x1b\x09\x00\x09\x09')
  70.    
  71.    ---DC Code-----
  72.    import toontown
  73.    try:newToonRandom
  74.    except:newToonRandom = toontown.toon.ToonDNA.ToonDNA.newToonRandom
  75.    def createNewRandomToon(self, **kwds):
  76.     newToonRandom(self)
  77.     self.torso='s';self.gender=kwds['gender']
  78.    toontown.toon.ToonDNA.ToonDNA.newToonRandom = createNewRandomToon
  79.    
  80.    
  81.    -----Server Transfer Money To Bank-----
  82.    base.cr.doFindAll("DistributedBank")[0].sendUpdate("transferMoney", [21])
  83.    
  84.    ---Server Invisible----
  85.    base.cr.doFindAll("DistributedFurnitureManager")[0].d_avatarEnter()
  86.    base.cr.sendSetZoneMsg(6000)
  87.    
  88.    -----Server Party List Gui-----
  89.    base.cr.doFindAll("DistributedPartyGate")[0].sendUpdate("getPartyList", [base.localAvatar.doId])
  90.    
  91.    
  92.    ----Server Needs Help In Battle Message---
  93.    messenger.send('nameTagShowAvId')
  94.    
  95.    def broadcast(includingSelf=True):
  96.            startingToon = 0
  97.            toonOn = 0
  98.            listToonIds = base.localAvatar.getNearbyPlayers(1000000000000000, includingSelf)
  99.            endingToon = len(listToonIds)
  100.            print listToonIds
  101.            while startingToon != endingToon:
  102.                base.localAvatar.d_battleSOS(435100057, listToonIds[toonOn])
  103.                print toonOn
  104.                toonOn = toonOn + 1
  105.                startingToon = startingToon + 1
  106.    
  107.    
  108.    broadcast(True)
  109.    
  110.    
  111.    -----Server Toon Up-----
  112.    base.cr.doFindAll("Treasure")[0].d_requestGrab()
  113.    base.cr.doFindAll("Treasure")[1].d_requestGrab()
  114.    base.cr.doFindAll("Treasure")[2].d_requestGrab()
  115.    base.cr.doFindAll("Treasure")[3].d_requestGrab()
  116.    
  117.    
  118.    
  119.    
  120.    
  121.    -----Server Take Over Pond-----
  122.    base.cr.doFindAll("DistributedFishingSpot")[0].sendUpdate("requestEnter", [])
  123.    base.cr.doFindAll("DistributedFishingSpot")[1].sendUpdate("requestEnter", [])
  124.    base.cr.doFindAll("DistributedFishingSpot")[2].sendUpdate("requestEnter", [])
  125.    base.cr.doFindAll("DistributedFishingSpot")[3].sendUpdate("requestEnter", [])
  126.    
  127.    -----Server Take Over Toon HQ-----
  128.    base.cr.doFindAll("HQ Officer")[0].sendUpdate("avatarEnter", [])
  129.    base.cr.doFindAll("HQ Officer")[1].sendUpdate("avatarEnter", [])
  130.    base.cr.doFindAll("HQ Officer")[2].sendUpdate("avatarEnter", [])
  131.    base.cr.doFindAll("HQ Officer")[3].sendUpdate("avatarEnter", [])
  132.    
  133.    
  134.    -----Server Scarecrow-----
  135.    from direct.distributed.PyDatagram import PyDatagram
  136.    from direct.distributed.MsgTypes import CLIENT_SET_AVATAR
  137.    RefreshedAvatar = PyDatagram()
  138.    base.localAvatar.collisionsOff()
  139.    RefreshedAvatar.addUint16(CLIENT_SET_AVATAR)
  140.    RefreshedAvatar.addUint32(base.localAvatar.doId)
  141.    base.cr.sendDatagram(RefreshedAvatar)
  142.    base.cr.sendSetZoneMsg(base.localAvatar.getZoneId())
  143.    base.localAvatar.b_setParent(2)
  144.    base.localAvatar.b_setAnimState('off')
  145.    
  146.    
  147.    
  148.    -----Server Name Pattern List-----
  149.    [{'Sir': 6, 'Little': 23, 'Baron': 0, 'Cool': 15, 'Doctor': 20, 'Colonel': 16, 'Master': 3, 'Weird': 33, 'Sheriff': 28, 'Big': 13, 'Fat': 21, 'Dippy': 19, 'Prof.': 27, 'Noisy': 26,
  150.    'King': 2, 'Ugly': 32, 'Silly': 30, 'Skinny': 29, 'Loud': 25, 'Duke': 1, 'Crazy': 17, "Good ol'": 22, 'Deputy': 18, 'Super': 31, 'Loopy': 24, 'Captain': 14, 'Mister': 4,
  151.    'Prince': 5}, {'Barney': 35, 'Curly': 156, 'Murky': 186, 'Furball': 175, 'Dudley': 52, 'Lefty': 181, 'Slappy': 201, 'Spike': 89, 'Cricket': 154, 'Tubby': 214, 'Oscar': 75,
  152.     'Buford': 39, 'Skipper': 87, 'Fleabag': 168, 'Huddles': 177, 'Poppy': 194, 'Binky': 136, 'Corky': 150, 'Moe': 70, 'Tricky': 213, 'Winky': 218, 'Dinky': 159, 'Wilbur': 94,
  153.    'Cuckoo': 157, 'Buzz': 43, 'Batty': 132, 'Fireball': 167, 'Louie': 67, 'Bizzy': 141, 'Coconut': 148, 'Chirpy': 146, 'Zowie': 226, 'Skip': 86, 'Orville': 74, 'Crumbly': 155,
  154.    'Zilly': 223, 'Buster': 41, 'Freckles': 173, 'Oswald': 76, 'Pickles': 191, 'Milton': 72, 'Drippy': 162, 'Butch': 42, 'Knuckles': 62, 'Flapjack': 169, 'Rhubarb': 195, 'Peanut': 189,
  155.     'Ned': 73, 'C.J.': 144, 'C.W.': 145, 'Lionel': 65, 'Bert': 37, 'Goopy': 176, 'Cranky': 152, 'Rusty': 84, 'Romeo': 83, 'Dizzy': 160, 'Lollipop': 182, 'Zippety': 225, 'Soupy': 200,
  156.    'Dusty': 164, 'Biscuit': 137, 'Flip': 171, 'Ziggy': 222, 'Chipper': 47, 'Chester': 45, 'Bunky': 40, 'Skippy': 88, 'Smirky': 204, 'Loopy': 184, 'Beany': 133, 'Alvin': 34,
  157.     'Bonzo': 38, 'Chip': 46, 'Peppy': 190, 'Sammie': 85, 'Fangs': 166, 'J.C.': 178, 'Fluffy': 172, 'Graham': 56, 'Monty': 71, 'Bingo': 135, 'Zippy': 224, 'Harvey': 57, 'Scooter':
  158.     197, 'Clyde': 51, 'Zany': 221, 'Tom': 91, 'Beppo': 36, 'Skimpy': 199, 'Mildew': 185, 'Clarence': 49, 'Stripey': 211, 'Spunky': 210, 'Fritz': 55, 'Loony': 183, 'Clancy': 48, 'Yippie': 219, 'Wally': 93, 'Reggie': 79, 'Rocco': 81, 'Stinky': 90, 'Sniffy': 206, 'Blinky': 142, 'Rollie': 82, 'Waldo': 92, 'Lancelot': 63, 'Spotty': 209, 'B.D.': 130, 'Bonkers': 140, 'Duke': 53, 'Crazy': 153, 'Nutty': 187, 'Von': 215, 'Wacky': 216, 'Boo Boo': 139, 'Pinky': 192, 'Chunky': 147, 'Salty': 196, 'Corny': 151, 'Wacko': 217, 'Cecil': 44, 'Droopy': 163, 'Z.Z.': 220, 'Ernie': 54, 'Slippy': 202, 'Ricky': 80, 'Hector': 58, 'Snappy': 205, 'Huey': 59, 'Spiffy': 208, 'Bebop': 134, 'Banjo': 131, 'Max': 69, 'Mac': 68, 'Snuffy': 207, 'Frizzy': 174, 'Pancake': 188, 'Bumpy': 143, 'Cliff': 50, 'Slumpy': 203, 'Flappy': 170, 'Leroy': 64, 'Jake': 61, 'Popcorn': 193, 'Comet': 149, 'Ozzie': 77, 'Skids': 198, 'Jacques': 60, 'Bongo': 138, 'Kippy': 180, 'Stubby': 212, 'Domino': 161, 'Pierre': 78, 'Fancy': 165, 'Daffy': 158, 'Lloyd': 66, 'Jellyroll': 179}, {'Bizzen': 234, 'Funny': 259, 'Nickel': 275, 'Lemon': 269, 'Purple': 287, 'Twinkle': 302, 'Huckle': 263, 'Thunder': 298, 'Poodle': 285, 'Paddle': 278, 'Pinker': 284, 'Bagel': 229, 'Boingen': 236, 'Fumble': 258, 'Crunchen': 243, 'Mizzen': 274, 'Blubber': 235, 'Feather': 252, 'Electro': 251, 'Banana': 230, 'Ruffle': 291, 'Zippen': 311, 'Bumble': 238, 'Biggen': 233, 'Dingle': 246, 'Hula': 264, 'Mega': 273, 'Whistle': 306, 'Poppen': 288, 'Sparkle': 295, 'Mac': 271, 'Octo': 277, 'Bean': 231, 'Snorkel': 293, 'Jeeper': 266, 'Dyno': 250, 'Fuzzy': 260, 'Precious': 286, 'Wrinkle': 309, 'Super': 296, 'Pedal': 280, 'Frinkel': 254, 'Giggle': 261, 'Beanie': 232, 'Bumpen': 239, 'Ziller': 310, 'Flippen': 256, 'Mc': 272, 'Dandy': 245, 'Tricky': 300, 'Crunchy': 244, 'Pepper': 281, 'Cheezy': 240, 'Zooble': 312, 'Sour': 294, 'Fiddle': 253, 'Pale': 279, 'Dizzen': 247, 'Crinkle': 241, 'Wild': 307, 'Flipper': 257, 'Whisker': 305, 'Rhino': 289, 'Pickle': 283, 'Spackle': 297, 'Petal': 282, 'Kooky': 268, 'Google': 262, 'Wacky': 303, 'Sniffle': 292, 'Nutty': 276, 'Bumber': 237, 'Jumble': 267, 'Doggen': 249, 'Crumble': 242, 'Rocken': 290, 'Dizzy': 248, 'Weasel': 304, 'Twiddle': 301, 'Loopen': 270, 'Fizzle': 255, 'Toppen': 299, 'Jabber': 265, 'Wonder': 308}, {'flapper': 340, 'muffin': 365, 'hopper': 355, 'fink': 341, 'crumbs': 330, 'speed': 389, 'phooey': 372, 'scooter': 381, 'spinner': 390, 'woof': 404, 'crash': 329, 'klunk': 357, 'gadget': 347, 'muddle': 364, 'pocket': 373, 'socks': 388, 'foot': 345, 'flinger': 342, 'nugget': 370, 'pretzel': 376, 'zaner': 405, 'nose': 369, 'gloop': 350, 'gargle': 348, 'grooven': 353, 'bump': 324, 'fish': 337, 'chomp': 327, 'goose': 352, 'burger': 326, 'whip': 402, 'pounce': 377, 'knees': 358, 'smirk': 384, 'crunch': 332, 'toes': 397, 'corn': 328, 'snooker': 386, 'dorf': 334, 'phew': 371, 'fuddy': 339, 'quack': 379, 'mash': 360, 'screech': 382, 'berry': 314, 'bumper': 325, 'poof': 378, 'blabber': 315, 'wig': 403, 'pow': 375, 'pop': 374, 'zap': 406, 'mooch': 362, 'roni': 380, 'monkey': 361, 'snoop': 385, 'zilla': 408, 'doodle': 333, 'ton': 398, 'bubble': 322, 'bumble': 323, 'mush': 366, 'flap': 338, 'toon': 399, 'brains': 321, 'bounce': 319, 'fussen': 346, 'tooth': 400, 'flip': 343, 'bee': 313, 'crump': 331, 'marble': 359, 'stink': 393, 'sticks': 392, 'jinks': 356, 'twist': 401, 'seed': 383, 'zapper': 407, 'thud': 396, 'nerd': 367, 'hoffer': 354, 'snout': 387, 'boom': 318, 'swirl': 394, 'goober': 351, 'boing': 317, 'mouth': 363, 'flipper': 344, 'glop': 349, 'splat': 391, 'noodle': 368, 'bouncer': 320, 'face': 335, 'bocker': 316, 'teeth': 395, 'fidget': 336}]
  159.    
  160.    
  161.    
  162.    -----Server White Toon-----
  163.    import toontown
  164.    try:getGenderColorList
  165.    except:getGenderColorList = toontown.makeatoon.ColorShop.ColorShop.getGenderColorList
  166.    def returnColorList(self, *args):
  167.     return range(-1, 26, 1)
  168.    toontown.makeatoon.ColorShop.ColorShop.getGenderColorList = returnColorList
  169.    
  170.    
  171.    -----Server No Name Ingame-----
  172.    base.localAvatar.setName('') #Set name for appending
  173.    from direct.distributed.PyDatagram import PyDatagram
  174.    from toontown.makeatoon.NameGenerator import NameGenerator
  175.    from direct.distributed.MsgTypes import CLIENT_SET_NAME_PATTERN, CLIENT_SET_AVATAR
  176.    ToontownNameDictionary = NameGenerator().nameDictionary
  177.    ToontownNameIndexList = list(NameGenerator().nameDictionary)
  178.    PatternList = [-1, 4, -1, 4, -1]
  179.    NamePatternDatagram = PyDatagram()
  180.    NamePatternDatagram.addUint16(CLIENT_SET_NAME_PATTERN)
  181.    NamePatternDatagram.addUint32(base.localAvatar.getDoId())
  182.    for PatternItem in PatternList:
  183.        if PatternItem != -1:
  184.            if PatternItem != 4:
  185.                base.localAvatar.name += ToontownNameDictionary[PatternItem][1]
  186.                if PatternList.index(PatternItem) <= 2:base.localAvatar.name += ' '
  187.        NamePatternDatagram.addInt16(PatternItem)
  188.    base.localAvatar.setName(base.localAvatar.name)
  189.    base.cr.sendDatagram(NamePatternDatagram)
  190.    RefreshedAvatar = PyDatagram()
  191.    RefreshedAvatar.addUint16(CLIENT_SET_AVATAR)
  192.    RefreshedAvatar.addUint32(base.localAvatar.doId)
  193.    base.cr.sendDatagram(RefreshedAvatar)
  194.    base.cr.sendSetZoneMsg(base.localAvatar.getZoneId())
  195.    base.localAvatar.b_setParent(2)
  196.    base.localAvatar.b_setAnimState('neutral')
  197.    
  198.    
  199.    ----Server Name Pattern Ingame Changer----
  200.    base.localAvatar.setName('') #Set name for appending
  201.    from direct.distributed.PyDatagram import PyDatagram
  202.    from toontown.makeatoon.NameGenerator import NameGenerator
  203.    from direct.distributed.MsgTypes import CLIENT_SET_NAME_PATTERN, CLIENT_SET_AVATAR
  204.    ToontownNameDictionary = NameGenerator().nameDictionary
  205.    ToontownNameIndexList = list(NameGenerator().nameDictionary)
  206.    PatternList = [2, 4, 3, 4, 84]
  207.    NamePatternDatagram = PyDatagram()
  208.    NamePatternDatagram.addUint16(CLIENT_SET_NAME_PATTERN)
  209.    NamePatternDatagram.addUint32(base.localAvatar.getDoId())
  210.    for PatternItem in PatternList:
  211.        if PatternItem != -1:
  212.            if PatternItem != 4:
  213.                base.localAvatar.name += ToontownNameDictionary[PatternItem][1]
  214.                if PatternList.index(PatternItem) <= 2:base.localAvatar.name += ' '
  215.        NamePatternDatagram.addInt16(PatternItem)
  216.    base.localAvatar.setName(base.localAvatar.name)
  217.    base.cr.sendDatagram(NamePatternDatagram)
  218.    RefreshedAvatar = PyDatagram()
  219.    RefreshedAvatar.addUint16(CLIENT_SET_AVATAR)
  220.    RefreshedAvatar.addUint32(base.localAvatar.doId)
  221.    base.cr.sendDatagram(RefreshedAvatar)
  222.    base.cr.sendSetZoneMsg(base.localAvatar.getZoneId())
  223.    base.localAvatar.b_setParent(2)
  224.    base.localAvatar.b_setAnimState('neutral')
  225.    
  226.    -----Server Goon Stun-----
  227.    base.cr.doFindAll("Goon")[0].sendUpdate("requestStunned", [1])
  228.    
  229.    ---My Yellow Buttons----
  230.    from direct.gui.DirectGui import DirectButton
  231.    def ServerGrabLaff():
  232.       base.cr.doFindAll("Treasure")[0].d_requestGrab()
  233.    ButtonImage = loader.loadModel("phase_3/models/gui/quit_button.bam")
  234.    ImgBtn1 = DirectButton(frameSize=None, text='Server Grab Laff', image=(ButtonImage.find('**/QuitBtn_UP'), \
  235.    ButtonImage.find('**/QuitBtn_DN'), ButtonImage.find('**/QuitBtn_RLVR')), relief=None, command=ServerGrabLaff, text_pos=(0, -0.015), \
  236.    geom=None, pad=(0.01, 0.01), suppressKeys=0, pos = (-.85,-0,-.93), text_scale=0.059999999999999998, borderWidth=(0.015, 0.01))
  237.    
  238.    
  239.    
  240.    ---Yellow Buttons---
  241.    from pandac.PandaModules import VBase4
  242.    from direct.gui.DirectGui import DirectButton
  243.    LAFFMETER_COLORS = {"LIGHTPINK":VBase4(0.969, 0.691, 0.699, 1), "RED":VBase4(0.934, 0.266, 0.281, 1),
  244.    "MAROON":VBase4(0.863, 0.406, 0.418, 1), "CRANBERRY":VBase4(0.711, 0.234, 0.438, 1),
  245.    "WOOD":VBase4(0.57, 0.449, 0.164, 1), "BROWN":VBase4(0.641, 0.355, 0.27, 1),
  246.    "TAN":VBase4(0.996, 0.695, 0.512, 1), "CARAMEL":VBase4(0.832, 0.5, 0.297, 1),
  247.    "ORANGE":VBase4(0.992, 0.48, 0.168, 1), "YELLOW":VBase4(0.996, 0.898, 0.32, 1),
  248.    "CREAM":VBase4(0.996, 0.957, 0.598, 1), "LIME":VBase4(0.855, 0.934, 0.492, 1),
  249.    "GRASS":VBase4(0.551, 0.824, 0.324, 1), "SEAGREEN":VBase4(0.242, 0.742, 0.516, 1),
  250.    "NEONGREEN":VBase4(0.305, 0.969, 0.402, 1), "CYAN":VBase4(0.434, 0.906, 0.836, 1),
  251.    "SKY":VBase4(0.348, 0.82, 0.953, 1), "NAVY":VBase4(0.191, 0.563, 0.773, 1),
  252.    "Periwinkle":VBase4(0.559, 0.59, 0.875, 1), "DARKBLUE":VBase4(0.285, 0.328, 0.727, 1),
  253.    "VIOLET":VBase4(0.461, 0.379, 0.824, 1), "PURPLE":VBase4(0.547, 0.281, 0.75, 1),
  254.    "PINK":VBase4(0.727, 0.473, 0.859, 1), "ROSEPINK":VBase4(0.898, 0.617, 0.906, 1),
  255.    "GRAY":VBase4(0.7, 0.7, 0.8, 1), "BLACK":VBase4(0.3, 0.3, 0.35, 1)}
  256.    LAFFMETER_COLOR_LIST = list(LAFFMETER_COLORS)
  257.    LAFFMETER_COLOR_ON = 0
  258.    def ToggleToonColor():
  259.        try: # To avoid errors if at the Title Screen
  260.            global LAFFMETER_COLOR_ON, LAFFMETER_COLORS, LAFFMETER_COLOR_LIST
  261.            base.localAvatar.laffMeter.color = LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]]
  262.            base.localAvatar.laffMeter.adjustFace(base.localAvatar.hp, base.localAvatar.maxHp)
  263.            base.localAvatar.findAllMatches('**/head-front').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  264.            base.localAvatar.findAllMatches('**/head-front-short').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  265.            base.localAvatar.findAllMatches('**/head').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  266.            base.localAvatar.findAllMatches('**/head-short').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  267.            base.localAvatar.findAllMatches('**/ears').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  268.            base.localAvatar.findAllMatches('**/ears-short').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  269.            base.localAvatar.findAllMatches('**/neck').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  270.            base.localAvatar.findAllMatches('**/arms').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  271.            base.localAvatar.findAllMatches('**/legs').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  272.            base.localAvatar.findAllMatches('**/feet').setColor(LAFFMETER_COLORS[LAFFMETER_COLOR_LIST[LAFFMETER_COLOR_ON]])
  273.            if LAFFMETER_COLOR_ON != 25:LAFFMETER_COLOR_ON += 1
  274.            else:LAFFMETER_COLOR_ON = 0
  275.        except:pass
  276.    ButtonImage = loader.loadModel("phase_3/models/gui/quit_button.bam")
  277.    ImgBtn1 = DirectButton(frameSize=None, text='Toggle Colors', image=(ButtonImage.find('**/QuitBtn_UP'), \
  278.    ButtonImage.find('**/QuitBtn_DN'), ButtonImage.find('**/QuitBtn_RLVR')), relief=None, command=ToggleToonColor, text_pos=(0, -0.015), \
  279.    geom=None, pad=(0.01, 0.01), suppressKeys=0, pos = (-.85,-0,-.93), text_scale=0.059999999999999998, borderWidth=(0.015, 0.01))
  280.    
  281.    
  282.    
  283.    -----Server Furniture Manager Hacks-----
  284.    base.cr.doFindAll("DistributedFurnitureManager")[0].d_suggestDirector(base.localAvatar.doId)
  285.    
  286.    
  287.    
  288.    ----Server Cog Suit Hacks----
  289.    Remove Suit:
  290.    CurrZone = base.localAvatar.getZoneId()
  291.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  292.    parentId = base.localAvatar.defaultShard
  293.    event = base.cr.getNextSetZoneDoneEvent()
  294.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 10000, 'OldSetZoneEmulator'], event)
  295.    base.cr.doFindAll("CogHQDoor")[0].sendUpdate("requestExit", [])
  296.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  297.    base.localAvatar.setCogIndex(-1)
  298.    
  299.    Bossbot Cog Suit:
  300.    CurrZone = base.localAvatar.getZoneId()
  301.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  302.    parentId = base.localAvatar.defaultShard
  303.    event = base.cr.getNextSetZoneDoneEvent()
  304.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 10100, 'OldSetZoneEmulator'], event)
  305.    base.cr.doFindAll("CogHQDoor")[0].sendUpdate("requestExit", [])
  306.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  307.    base.localAvatar.setCogIndex(0)
  308.    
  309.    Lawbot Cog Suit:
  310.    CurrZone = base.localAvatar.getZoneId()
  311.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  312.    parentId = base.localAvatar.defaultShard
  313.    event = base.cr.getNextSetZoneDoneEvent()
  314.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 13100, 'OldSetZoneEmulator'], event)
  315.    base.cr.doFindAll("CogHQDoor")[0].sendUpdate("requestExit", [])
  316.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  317.    base.localAvatar.setCogIndex(1)
  318.    
  319.    Cashbot Cog Suit:
  320.    CurrZone = base.localAvatar.getZoneId()
  321.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  322.    parentId = base.localAvatar.defaultShard
  323.    event = base.cr.getNextSetZoneDoneEvent()
  324.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 12100, 'OldSetZoneEmulator'], event)
  325.    base.cr.doFindAll("CogHQDoor")[0].sendUpdate("requestExit", [])
  326.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  327.    base.localAvatar.setCogIndex(2)
  328.    
  329.    Sellbot Cog Suit:
  330.    CurrZone = base.localAvatar.getZoneId()
  331.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  332.    parentId = base.localAvatar.defaultShard
  333.    event = base.cr.getNextSetZoneDoneEvent()
  334.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 11100, 'OldSetZoneEmulator'], event)
  335.    base.cr.doFindAll("CogHQDoor")[0].sendUpdate("requestExit", [])
  336.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  337.    base.localAvatar.setCogIndex(3)
  338.    
  339.    -----Buy Gags In Battle Bot-----
  340.    base.localAvatar.setSystemMessage(1,'Buy Gags In Battle Bot Activated!')
  341.    
  342.    from direct.interval.IntervalGlobal import *
  343.    def SwitchZone():
  344.       base.cr.sendSetZoneMsg(2519)
  345.    def BuyGags():
  346.       Clerk = base.cr.doFindAll("Clerk")[0]
  347.       Clerk.popupPurchaseGUI(True)
  348.    def GoBackToBattle():
  349.       base.cr.sendSetZoneMsg(2301)
  350.    def GagsInBattle():
  351.       Battle = Sequence()
  352.       Battle.append(Func(SwitchZone))
  353.       Battle.append(Wait(2))
  354.       Battle.append(Func(BuyGags))
  355.       Battle.append(Wait(5))
  356.       Battle.append(Func(GoBackToBattle))
  357.       Battle.append(Wait(1))
  358.       Battle.append(Func(GagsInBattle))
  359.       Battle.start()
  360.    GagsInBattle()
  361.    
  362.    -----Recover Laff In Battle Hack-----
  363.    CurrZone = base.localAvatar.getZoneId()
  364.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  365.    parentId = base.localAvatar.defaultShard
  366.    event = base.cr.getNextSetZoneDoneEvent()
  367.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 60000, 'OldSetZoneEmulator'], event)
  368.    base.cr.doFindAll("Treasure")[0].d_requestGrab()
  369.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  370.    
  371.    ---Party Hacks---
  372.    
  373.    Jump Super High On Trampoline:
  374.    PartyTent = base.cr.doFindAll("PartyManager")[0]
  375.    PartyTent.sendAvatarToParty(base.localAvatar.doId)
  376.    
  377.    
  378.    ----Membership Hack-----
  379.    import otp, toontown
  380.    def returnGameAccess(*args):
  381.        return 2
  382.    base.cr._OTPClientRepository__isPaid = True
  383.    otp.otpbase.OTPGlobals.AccessVelvetRope = True
  384.    otp.otpbase.OTPGlobals.AccessFull = 2
  385.    otp.otpbase.OTPGlobals.createFriendsWithChat = True
  386.    toontown.toon.LocalToon.LocalToon.gameAccess = 2
  387.    base.launcher.setValue(base.launcher.PaidUserLoggedInKey, '1')
  388.    toontown.toon.LocalToon.LocalToon.getGameAccess = returnGameAccess
  389.    def returnAllowedSecretChat(*args, **kwds):return True
  390.    base.cr.allowSecretChat = returnAllowedSecretChat
  391.    base.cr.isParentPasswordSet = returnAllowedSecretChat
  392.    
  393.    ---Buy Gags In Battle Hack---
  394.    
  395.    CurrZone = base.localAvatar.getZoneId()
  396.    from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  397.    parentId = base.localAvatar.defaultShard
  398.    event = base.cr.getNextSetZoneDoneEvent()
  399.    base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 2519, 'OldSetZoneEmulator'], event)
  400.    base.cr.doFindAll("Clerk")[0].popupPurchaseGUI(True)
  401.    use This After You Buy Gags:base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  402.    
  403.    -----SBHQ Lobby Raid-----
  404.    base.localAvatar.setPos(0,0,0)
  405.    
  406.    lobby = loader.loadModel("phase_9/models/cogHQ/SellbotHQLobby.bam")
  407.    lobby.reparentTo(render)
  408.    lobby.setPos(0, 0, 0)
  409.    lobby.setHpr(0,0,0)
  410.    
  411.    elevator = loader.loadModel("phase_9/models/cogHQ/cogHQ_elevator.bam")
  412.    elevator.reparentTo(render)
  413.    elevator.setPos(-1, -78, 28)
  414.    elevator.setHpr(-180,0,0)
  415.    elevator.setScale(1)
  416.    
  417.    
  418.    base.cr.sendSetZoneMsg(11100)
  419.    
  420.    render.find('**/toontownCentral').removeNode()
  421.    
  422.    base.localAvatar.putOnSuit('mh')
  423.    
  424.    
  425.    
  426.    ----Server Name Hacks-----
  427.    toonName = 'Fd hi Fd';avListPos = 0;
  428.    from direct.distributed.PyDatagram import PyDatagram
  429.    datagram1, datagram2 = PyDatagram(), PyDatagram()
  430.    CLIENT_SET_WISHNAME, CLIENT_SET_WISHNAME_RESP = 70, 71
  431.    datagram1.addUint16(CLIENT_SET_WISHNAME)
  432.    datagram2.addUint16(CLIENT_SET_WISHNAME_RESP)
  433.    datagram1.addUint32(base.cr.avList[avListPos].id)
  434.    datagram2.addUint32(base.cr.avList[avListPos].id)
  435.    datagram1.addString(toonName);datagram2.addString(toonName)
  436.    base.cr.send(datagram1);base.cr.send(datagram2)
  437.    
  438.    import toontown, otp
  439.    try:_NameShop__handleDone
  440.    except:_NameShop__handleDone = toontown.makeatoon.NameShop.NameShop._NameShop__handleDone
  441.    def T__NameShop__handleDone(self):
  442.     self.acceptName()
  443.    toontown.makeatoon.NameShop.NameShop._NameShop__handleDone = T__NameShop__handleDone
  444.    
  445.    
  446.    ------Clerk Hacks-------
  447.    Clerk = base.cr.doFindAll("Clerk")[0]
  448.    Clerk._DistributedNPCClerk__handlePurchaseDone()
  449.    
  450.    Clerk = base.cr.doFindAll("Clerk")[0]
  451.    Clerk.freeAvatar()
  452.    
  453.    
  454.    ------Pond Hacks------
  455.    Pond = base.cr.doFindAll("DistributedFishingSpot")[0]
  456.    Pond.d_requestEnter()
  457.    
  458.    ----Report Button Hacks----
  459.    import toontown
  460.    try:handleReport
  461.    except:handleReport = toontown.toon.AvatarPanelBase.AvatarPanelBase.handleReport
  462.    def ReporterRusty(self):self.alreadyReported()
  463.    toontown.toon.AvatarPanelBase.AvatarPanelBase.handleReport = ReporterRusty
  464.    
  465.    
  466.    -------Cheesy Effects-------
  467.    base.localAvatar.setCheesyEffect(1, 0, 0) - Big Head
  468.    base.localAvatar.setCheesyEffect(2, 0, 0) -Small Head
  469.    base.localAvatar.setCheesyEffect(3, 0, 0) -Big Feet
  470.    base.localAvatar.setCheesyEffect(4, 0, 0) -Small Feet
  471.    base.localAvatar.setCheesyEffect(5, 0, 0) -Big Toon
  472.    base.localAvatar.setCheesyEffect(6, 0, 0) -Small Toon
  473.    base.localAvatar.setCheesyEffect(7, 0, 0) -Flat Toon Foward
  474.    base.localAvatar.setCheesyEffect(8, 0, 0) -Flat Toon Side way
  475.    base.localAvatar.setCheesyEffect(9, 0, 0) -Invisible Toon
  476.    base.localAvatar.setCheesyEffect(10, 0, 0) -White Toon
  477.    base.localAvatar.setCheesyEffect(11, 0, 0) -No Head
  478.    base.localAvatar.setCheesyEffect(12, 0, 0) -Pumpkin Head
  479.    base.localAvatar.setCheesyEffect(13, 0, 0) -Big White Toon
  480.    base.localAvatar.setCheesyEffect(14, 0, 0) -Snowman Head
  481.    base.localAvatar.setCheesyEffect(15, 0, 0) -Green Toon
  482.    
  483.    Party Gate Custom Message Hack:
  484.    Party = base.cr.doFindAll("DistributedPartyGate")[0]
  485.    Party.showMessage("Balls Of steel")
  486.    
  487.    ----Server Fast Kart----
  488.    speed = -100
  489.    ttv = base.cr.doFindAll("Vehicle")
  490.    for ttv in ttv:
  491.        try:ttv.windResistance.setAmplitude(speed)
  492.        except:pass
  493.    
  494.    Cannot Leave playground Laff Meter Message Code:
  495.    from toontown.toon.HealthForceAcknowledge import HealthForceAcknowledge
  496.    health = HealthForceAcknowledge(None)
  497.    health.enter(100)
  498.    
  499.    Have All Throw Gags And Squirt Gags:
  500.    base.localAvatar.experience.maxOutExp()
  501.    
  502.    Activate Chat Manager:
  503.    from otp.uberdog.DistributedChatManager import DistributedChatManager
  504.    chat = DistributedChatManager(base.cr)
  505.    chat.online()
  506.    
  507.    Client Random Toon Generator:
  508.    from toontown.toon.ToonDNA import ToonDNA
  509.    tdna = ToonDNA()
  510.    tdna.newToonRandom()
  511.    tdna.torso = 's'
  512.    base.localAvatar.setDNA(tdna)
  513.    
  514.    Server Cog Summons:
  515.    base.localAvatar.d_reqCogSummons('f', 1)
  516.    
  517.    Custom SC Menu For FD Nation:
  518.    import toontown, otp
  519.    otp.speedchat.SCStaticTextTerminal.SpeedChatStaticText[39000] = 'Team FD Rules!'
  520.    otp.speedchat.SCStaticTextTerminal.SpeedChatStaticText[39001] = 'Welcome to FD Nation!'
  521.    otp.speedchat.SCStaticTextTerminal.SpeedChatStaticText[39002] = 'Check this out.'
  522.    otp.speedchat.SCStaticTextTerminal.SpeedChatStaticText[39003] = 'Team FD Has Balls Of Steel Cuz There Just That Epic'
  523.    FDNationCustomIndices = (39000, 39001, 39002, 39003)
  524.    FDNationSCCustomMenu = toontown.speedchat.TTSCCogMenu.TTSCCogMenu(FDNationCustomIndices)
  525.    base.localAvatar.chatMgr.chatInputSpeedChat.fdNationMenu = otp.speedchat.SCMenuHolder.SCMenuHolder('FD NATION', FDNationSCCustomMenu)
  526.    base.localAvatar.chatMgr.chatInputSpeedChat.speedChat[2] = base.localAvatar.chatMgr.chatInputSpeedChat.fdNationMenu
  527.    
  528.    Flashing Laff Meter:
  529.    base.localAvatar.setSystemMessage(1,'Laff Meter Flash Bot Activated!')
  530.    
  531.    from direct.interval.IntervalGlobal import *
  532.    def red():
  533.        base.localAvatar.laffMeter.setColor(0.97,0.3,0.3)
  534.    def pink():
  535.        base.localAvatar.laffMeter.setColor(0.96,0.7,0.7)
  536.    def purple():    
  537.        base.localAvatar.laffMeter.setColor(0.69,0.29,0.95)
  538.    def green():    
  539.        base.localAvatar.laffMeter.setColor(0.4,1,0.4)
  540.    def yellow():    
  541.        base.localAvatar.laffMeter.setColor(0.96,0.7,0.7)
  542.    def dblue():    
  543.        base.localAvatar.laffMeter.setColor(0.35,0.35,0.85)
  544.    def blue():
  545.        base.localAvatar.laffMeter.setColor(0.3,0.64,0.85)
  546.    def orange():
  547.        base.localAvatar.laffMeter.setColor(1,0.5,0.18)
  548.    def cream():    
  549.        base.localAvatar.laffMeter.setColor(1,1,0.57)
  550.    def perwk():    
  551.        base.localAvatar.laffMeter.setColor(0.55,0.55,1)
  552.    def rainglov():
  553.      rain = Sequence()
  554.      rain.append(Func(red))
  555.      rain.append(Wait(0.1))
  556.      rain.append(Func(pink))
  557.      rain.append(Wait(0.1))
  558.      rain.append(Func(purple))
  559.      rain.append(Wait(0.1))
  560.      rain.append(Func(green))
  561.      rain.append(Wait(0.1))
  562.      rain.append(Func(yellow))
  563.      rain.append(Wait(0.1))
  564.      rain.append(Func(dblue))
  565.      rain.append(Wait(0.1))
  566.      rain.append(Func(blue))
  567.      rain.append(Wait(0.1))
  568.      rain.append(Func(orange))
  569.      rain.append(Wait(0.1))
  570.      rain.append(Func(cream))
  571.      rain.append(Wait(0.1))
  572.      rain.append(Func(perwk))
  573.      rain.append(Wait(0.1))
  574.      rain.append(Func(rainglov))
  575.      rain.start()
  576.    rainglov()
  577.    
  578.    Animate Laff Meter Code:
  579.    base.localAvatar.laffMeter.animatedEffect(True)
  580.    
  581.    Team FD Spin Bot:
  582.    base.localAvatar.stopLookAround()
  583.    from pandac.PandaModules import Vec3
  584.    base.localAvatar.laffMeter.hprInterval(0.3, Vec3(0, 0, base.localAvatar.laffMeter.getR() + 360)).loop()
  585.    base.localAvatar.book.hprInterval(5, Vec3(0, 0, base.localAvatar.book.getR() + 360)).loop()
  586.    base.localAvatar.getPart('head', '1000').hprInterval(0.3,  Vec3(base.localAvatar.getPart('head', '1000').getH() + 360, 0, 0)).loop()
  587.    base.localAvatar.getPart('head', '500').hprInterval(0.3,  Vec3(base.localAvatar.getPart('head', '500').getH() + 360, 0, 0)).loop()
  588.    base.localAvatar.bFriendsList.hprInterval(0.3, Vec3(0, 0, base.localAvatar.bFriendsList.getR() + 360)).loop()
  589.    base.localAvatar.book.bookOpenButton.hprInterval(0.3, Vec3(0, 0, base.localAvatar.book.bookOpenButton.getR() + 360)).loop()
  590.    base.localAvatar.chatMgr.scButton.hprInterval(0.5, Vec3(0, 0, base.localAvatar.chatMgr.scButton.getR() + 360)).loop()
  591.    base.localAvatar.chatMgr.normalButton.hprInterval(0.5, Vec3(0, 0, base.localAvatar.chatMgr.normalButton.getR() + 360)).loop()
  592.    
  593.    120 Laff Meter Code:
  594.    import toontown
  595.    try:adjustText
  596.    except:adjustText = toontown.toon.LaffMeter.LaffMeter.adjustText
  597.    def TextAdjustment(self):self.animatedEffect(True)
  598.    toontown.toon.LaffMeter.LaffMeter.adjustText = TextAdjustment
  599.    
  600.    Server Go Back To PLayground in Purchase Manager:
  601.    Purchase = base.cr.doFindAll("PurchaseManager")[0]
  602.    Purchase.d_requestExit()
  603.    
  604.    Global TP:
  605.    import toontown
  606.    base.localAvatar.setTeleportAccess(toontown.toonbase.ToontownGlobals.HoodsForTeleportAll)
  607.    base.localAvatar.setHoodsVisited(toontown.toonbase.ToontownGlobals.HoodsForTeleportAll)
  608.    base.localAvatar.book.pages[1].shardChoiceReject = base.localAvatar.book.pages[1].choseShard
  609.    base.localAvatar.book.pages[1].showPop = 1
  610.    
  611.    
  612.    Make A Toon DC your self code:
  613.    import toontown, otp
  614.    try:_NameShop__handleDone
  615.    except:_NameShop__handleDone = toontown.makeatoon.NameShop.NameShop._NameShop__handleDone
  616.    def T__NameShop__handleDone(self):self.waitForServer()
  617.    toontown.makeatoon.NameShop.NameShop._NameShop__handleDone = T__NameShop__handleDone
  618.    
  619.    
  620.    Rustys Reject Name Hack:
  621.    import toontown, otp
  622.    try:_NameShop__handleDone
  623.    except:_NameShop__handleDone = toontown.makeatoon.NameShop.NameShop._NameShop__handleDone
  624.    def T__NameShop__handleDone(self):self.rejectName("Your Name Has Been Rejected By Master Rusty !")
  625.    toontown.makeatoon.NameShop.NameShop._NameShop__handleDone = T__NameShop__handleDone
  626.    
  627.    
  628.    ---Accessory Hack---
  629.    AccessoryTrunk = base.cr.doFindAll("Trunk")[0]
  630.    AccessoryTrunk.hatList = [16, 0, 0]
  631.    AccessoryTrunk.backpackList = [6, 0, 0]
  632.    AccessoryTrunk.glassesList = [10, 0, 0]
  633.    AccessoryTrunk.shoesList = [2, 8, 0]
  634.    AccessoryTrunk._handleYesImSure()
  635.    
  636.    ------Server Skip Tutorial In Make A Toon------
  637.    import toontown, otp
  638.    try:_NameShop__handleDone
  639.    except:_NameShop__handleDone = toontown.makeatoon.NameShop.NameShop._NameShop__handleDone
  640.    def T__NameShop__handleDone(self):self.promptTutorial()
  641.    toontown.makeatoon.NameShop.NameShop._NameShop__handleDone = T__NameShop__handleDone
  642.    
  643.    Server Skip Tutorial:
  644.    Tut = base.cr.doFindAll("TutorialManager")[0]
  645.    Tut.d_requestSkipTutorial()
  646.    base.cr.gameFSM.request('closeShard')
  647.    
  648.    
  649.    Server kart:
  650.    base.localAvatar.requestKartDNAFieldUpdate(0, 1)
  651.    
  652.    Server Fish Grab:
  653.    pond = base.cr.doFindAll("FishingPond")[0]
  654.    fish = base.cr.doFindAll("FishingTarget")[0]
  655.    pond.d_hitTarget(fish)
  656.    
  657.    Client Enter Sell Fish:
  658.    Pond = base.cr.doFindAll("DistributedFishingSpot")[0]
  659.    Pond.enterSellFish()
  660.    
  661.    Server Exit Pond:
  662.    Pond = base.cr.doFindAll("DistributedFishingSpot")[0]
  663.    Pond.d_requestExit()
  664.    
  665.    Server Enter Pond From Anywhere In Playground:
  666.    Pond = base.cr.doFindAll("DistributedFishingSpot")[0]
  667.    Pond.d_requestEnter()
  668.    
  669.    District Reset:
  670.    dpda = base.cr.doFindAll("DistributedPartyDanceActivity")[0]
  671.    dpda.d_toonExitDemand();dpda.d_toonExitDemand();dpda.d_toonExitDemand()
  672.    
  673.    Sub Button Pop Up Code:
  674.    base.localAvatar._LocalToon__handlePurchase()
  675.    
  676.    Maze Game Hacks:
  677.    Maze = base.cr.doFindAll("Maze")
  678.    Maze[0].claimTreasure(251)
  679.    
  680.    Log More stuff ur toon does:
  681.    base.cr.wantUpdateCalls = True
  682.    
  683.    Control Door Codes:
  684.    Door = base.cr.doFindAll("DistributedDoor")
  685.    Door[0].setState("opening", -15925)
  686.    
  687.    Control Clerk Codes:
  688.    Clerk = base.cr.doFindAll("Clerk")
  689.    Clerk[0].setMovie(2, 2006, 292922198, -26702)
  690.    
  691.    Clerk = base.cr.doFindAll("Clerk")
  692.    Clerk[0].setMovie(1, 2006, 288297323, -6931)
  693.    
  694.    Leave Building Code:
  695.    Interior = base.cr.doFindAll("Interior")
  696.    Interior[0].enterBeingTakenOver(1)
  697.    
  698.    Walk Around With Closet Open:
  699.    Closet = base.cr.doFindAll("closet")
  700.    Closet[0].freeAvatar()
  701.    
  702.    Server Set DNA:
  703.    Closet = base.cr.doFindAll("closet")
  704.    Closet[0].d_setDNA('t\x01\x02\x01\x01\x62\x12\x00\x12\x24\x1b\x14\x00\x14\x14',True,3)
  705.    
  706.    Buy Gags In battle code:
  707.    from toontown.toon.DistributedNPCClerk import *
  708.    Gags = DistributedNPCClerk(base.cr)
  709.    Gags.popupPurchaseGUI(True)
  710.    
  711.    Popup Gui In Gag Shop:
  712.    Clerk = base.cr.doFindAll("Clerk")
  713.    Clerk[0].popupPurchaseGUI(True)
  714.    
  715.    Enter Random Doors your Nearby:
  716.    Door = base.cr.doFindAll("DistributedDoor")
  717.    Door[0].avatarEnter(base.localAvatar.doId)
  718.    
  719.    Client Grab Treasure (Alternate version):
  720.    Treasure = base.cr.doFindAll("Treasure")
  721.    Treasure[0].setGrab(base.localAvatar.doId)
  722.    
  723.    Client Grab Treasure:
  724.    Treasure = base.cr.doFindAll("Treasure")
  725.    Treasure[0].handleGrab(base.localAvatar.doId)
  726.    
  727.    Server Gain Laff:
  728.    Treasure = base.cr.doFindAll("Treasure")
  729.    Treasure[0].d_requestGrab()
  730.    
  731.    Set Clouds In Estate:
  732.    base.cr.doFindAll("Estate")
  733.    Estate[0].setClouds(100)
  734.    
  735.    Make Flower GUI Appear In Estate:
  736.    Estate = base.cr.doFindAll("Estate")
  737.    Estate[0].popupFlowerGUI()
  738.    
  739.    Server Whisper To Avatar:
  740.    sendWhisperTalk(self, message, receiverAvId)
  741.    
  742.    Server Speedchat:
  743.    base.talkAssistant.sendOpenSpeedChat(1,4)
  744.    
  745.    Make Message Appear In Log:
  746.    base.talkAssistant.execMessage('Hmm')
  747.    
  748.    Server Open Talk:
  749.    base.talkAssistant.sendOpenTalk("Hi")
  750.    
  751.    Garble code:
  752.    import otp
  753.    def garble(self, avatar, message):
  754.     otp.chat.ChatInputNormal.sendChat("Balls")
  755.    
  756.    garble('Master Rusty',"Balls")
  757.    
  758.    CLient Cog Suit:
  759.    base.localAvatar.putOnSuit("f",True,True)
  760.    
  761.    client Ghost Mode:
  762.    base.localAvatar.setGhostMode(1)
  763.    
  764.    Fancy Nametag Font:
  765.    base.localAvatar.setFancyNametag("Master Rusty")
  766.    
  767.    Client Set Friends List Code:
  768.    base.localAvatar.setFriendsList([(292947983, 1), (292924149, 1), (292947248, 1), (292925379, 1), (287697056, 1), (292930874, 1), (292029467, 1), (259769325, 1), (292911041, 1), (292878465, 1), (292862934, 1), (292722512, 1), (292952505, 1), (292325782, 1), (267395328, 1)])
  769.    
  770.    Client Whisper:
  771.    base.localAvatar.displayWhisper(None,"Fuck",3)
  772.    
  773.    -----Server Cog Suit Buttons-----
  774.    base.localAvatar.b_setSC(5000)
  775.    base.localAvatar.b_setSC(1)
  776.    base.localAvatar.b_setSC(2)
  777.    base.localAvatar.b_setSC(1000)
  778.    base.localAvatar.b_setSC(100)
  779.    base.localAvatar.b_setSC(20136)
  780.    
  781.    from direct.gui.OnscreenText import OnscreenText
  782.    from direct.gui.DirectGui import *
  783.    from direct.interval.IntervalGlobal import *
  784.    from pandac.PandaModules import TextNode
  785.    
  786.    def bOne():
  787.     CurrZone = base.localAvatar.getZoneId()
  788.     from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  789.     parentId = base.localAvatar.defaultShard
  790.     event = base.cr.getNextSetZoneDoneEvent()
  791.     base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 13100, 'OldSetZoneEmulator'], event)
  792.     base.cr.doFindAll("CogHQDoor")[0].sendUpdate("requestExit", [])
  793.     base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  794.     base.localAvatar.setCogIndex(1)
  795.    def bTwo():
  796.     base.localAvatar.b_setSC(3010)
  797.    def  bThree():
  798.     base.localAvatar.b_setSC(2)
  799.    def bFour():
  800.     base.localAvatar.b_setSC(1000)
  801.    def bFive():
  802.     base.localAvatar.b_setSC(20136)
  803.    def bSix():
  804.     base.localAvatar.b_setSC(3301)
  805.    
  806.    bOne = DirectButton(text = ("Lawbot", "Lawbot", "Lawbot", "Lawbot"), scale=.05, pos = (-.90,0,-.9), command=bOne)
  807.    bTwo = DirectButton(text = ("Race", "Race", "Race", "Race"), scale=.05, pos = (.01,0,-.9), command=bTwo)
  808.    bThree = DirectButton(text = ("No", "No", "No", "No"), scale=.05, pos = (.19,0,-.9), command=bThree)
  809.    bFour = DirectButton(text = ("Lets Go", "Lets Go", "Lets Go", "Lets Go"), scale=.05, pos = (.38,0,-.9), command=bFour)
  810.    bFive = DirectButton(text = ("RAID!", "RAID!", "RAID!", "RAID!"), scale=.05, pos = (.59,0,-.9), command=bFive)
  811.    bSix = DirectButton(text = ("Fast", "Fast", "Fast", "Fast"), scale=.05, pos = (-.60,0,-.9), command=bSix)
  812.    
  813.    Client Say Anything:
  814.    base.localAvatar.displayTalk("Pussy Is Yummy")
  815.    
  816.    Client Big Nametag:
  817.    base.localAvatar.setNametagScale(5)
  818.    
  819.    Client No Nametag:
  820.    base.localAvatar.setNameVisible(False)
  821.    
  822.    Client Change Avatar Size:
  823.    base.localAvatar.setAvatarScale(0.75)
  824.    
  825.    Client Name Change:
  826.    base.localAvatar.setDisplayName("Balls")
  827.    
  828.    client System Warning:
  829.    base.localAvatar.systemWarning("Balls Of Steel")
  830.    
  831.    All Animations:
  832.    ['right-hand-start', 'firehose', 'rotateL-putt', 'slip-forward', 'catch-eatnrun', 'tickle', 'water-gun', 'leverNeutral', 'swim', 'catch-run', 'sad-neutral', 'pet-loop', 'jump-squat', 'wave', 'reel-neutral', 'pole-neutral', 'bank', 'scientistGame', 'takePhone', 'good-putt', 'victory', 'lose', 'cringe', 'right', 'headdown-putt', 'conked', 'jump', 'into-putt', 'fish-end', 'running-jump-land', 'shrug', 'sprinkle-dust', 'hold-bottle', 'right-hand', 'melt', 'pet-start', 'look-putt', 'loop-putt', 'lookloop-putt', 'juggle', 'run', 'pushbutton', 'sidestep-right', 'water', 'right-point-start', 'jump-land', 'struggle', 'running-jump', 'callPet', 'throw', 'catch-eatneutral', 'tug-o-war', 'bow', 'swing', 'climb', 'scientistWork', 'think', 'catch-intro-throw', 'walk', 'down', 'pole', 'periscope', 'duck', 'curtsy', 'bad-putt', 'loop-dig', 'angry', 'bored', 'swing-putt', 'pet-end', 'spit', 'right-point', 'start-dig', 'castlong', 'running-jump-squat', 'neutral', 'jump-idle', 'reel', 'slip-backward', 'sound', 'sidestep-left', 'up', 'fish-again', 'cast', 'phoneBack', 'phoneNeutral', 'scientistJealous', 'battlecast', 'sit-start', 'toss', 'happy-dance', 'confused', 'teleport', 'sit', 'sad-walk', 'give-props-start', 'book', 'fish-neutral', 'scientistEmcee', 'leverPull', 'tutorial-neutral', 'badloop-putt', 'give-props', 'hold-magnet', 'hypnotize', 'left-point', 'leverReach', 'feedPet', 'reel-H', 'applause', 'smooch', 'rotateR-putt', 'running-jump-idle', 'push', 'catch-neutral', 'left']
  833.    
  834.    Client System Message:
  835.    base.localAvatar.setSystemMessage(None,"I Have Balls Of Steel",2)
  836.    
  837.    Server Cog Suit:
  838.    base.localAvatar.wearCogSuit()
  839.    base.localAvatar.getCogParts()
  840.    base.localAvatar.isDisguised = True
  841.    base.localAvatar.isPaidSuitComplete = True
  842.    
  843.    Client Jellybeans:
  844.    base.localAvatar.setMoney(9999)
  845.    
  846.    Rustys Custom Postions:
  847.    base.localAvatar.setSmXYZH(13.6, -59.8, 1.4, 72.9, -802)
  848.    
  849.    Server Animations:
  850.    base.localAvatar.b_setAnimState("ReadBook")
  851.    base.localAvatar.b_setAnimState("jumpAirborne")
  852.    
  853.    Client Animations:
  854.    base.localAvatar.loop("phoneBack")
  855.    base.localAvatar.loop("battlecast")
  856.    
  857.    Log Everything your toon does + anything around your toon:
  858.    base.cr.toggleVerbose()
  859.    
  860.    Server Teleport Greeting:
  861.    teleportToon = base.cr.doFindAll("Tutorial Tom")
  862.    base.localAvatar.d_teleportGreeting(teleportToon[0].doId)
  863.    base.localAvatar.setSystemMessage(None, "Teleport Greeting has been sent to " + str(teleportToon[0].getName()))
  864.    
  865.    Server Teleport Greeting Open Talk:
  866.    base.localAvatar.b_teleportGreeting str(teleportToon[0].getName()))
  867.    base.localAvatar.setCogIndex(2)
  868.    
  869.    -Client Colored Name Tags-
  870.    Red:base.localAvatar.setDisplayName('\x01red\x01Master Rusty')
  871.    3D:base.localAvatar.setDisplayName('\x01shadow\x01Master Rusty')
  872.    Default:base.localAvatar.setDisplayName('\x01purple\x01Master Rusty')
  873.    Green:base.localAvatar.setDisplayName('\x01green\x01Master Rusty')
  874.    Black:base.localAvatar.setDisplayName('\x01black\x01Master Rusty')
  875.    Blue:base.localAvatar.setDisplayName('\x01blue\x01Master Rusty')
  876.    Yellow:base.localAvatar.setDisplayName('\x01yellow\x01Master Rusty')
  877.    
  878.    -Client Colored HP Strings-
  879.    Yellow:base.localAvatar.showHpString('\x01yellow\x01Master Rusty', duration=1, scale=0.5)
  880.    
  881.    
  882.    
  883.    IN-game Toon Switcher:
  884.    from direct.distributed.MsgTypes import *
  885.    from direct.distributed.PyDatagram import PyDatagram
  886.    from direct.interval.IntervalGlobal import Func, Wait, Sequence
  887.    def switchServerToon(avatarId, zoneId):
  888.     Switch = Sequence()
  889.     Switch.append(Func(runSwitchDatagram, avatarId))
  890.     Switch.append(Wait(0.1))
  891.     Switch.append(Func(runSwitchZone, zoneId))
  892.     Switch.start()
  893.    def runSwitchDatagram(avatarId):
  894.     Avatar = PyDatagram()
  895.     Avatar.addUint16(CLIENT_SET_AVATAR)
  896.     Avatar.addUint32(avatarId)
  897.     base.cr.sendDatagram(Avatar)
  898.    def runSwitchZone(zoneId):
  899.     base.cr.sendSetZoneMsg(zoneId)
  900.     base.localAvatar.d_setParent(2)
  901.     avatarId = base.localAvatar.doId
  902.     base.localAvatar.doId = avatarId
  903.     zoneId = base.localAvatar.getZoneId()
  904.     switchServerToon(avatarId, zoneId)
  905.    
  906.    DNA Strings For CLothes in Make a Toon:
  907.    base.localAvatar.setDNAString('t\x01\x02\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01')
  908.    base.localAvatar.setDNAString('t\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
  909.    
  910.    
  911.    Red Chat Text:
  912.    try:T_displayTalkNormal
  913.    except:T_displayTalkNormal = base.talkAssistant.sendOpenTalk
  914.    def displayRedTalk(displayText):
  915.        if str(displayText) == '\x01WLDisplay\x01.\x02' or str(displayText) == '.' or str(displayText) == ' ':
  916.            T_displayTalkNormal('')
  917.        else:
  918.            textArray = ['\x01WLRed\x01']
  919.            textArray.append(displayText)
  920.            textArray.append('\x02')
  921.            displayText = ''
  922.            for text in textArray:
  923.                displayText += text
  924.            T_displayTalkNormal(displayText)
  925.    base.talkAssistant.sendOpenTalk = displayRedTalk
  926.    
  927.    ----Ban Blocker----
  928.    aSendUpdate = base.localAvatar.sendUpdate
  929.    def sendUpdateHook(fieldName, args=[], sendToId=None):
  930.        if fieldName == "logSuspiciousEvent":
  931.            pass
  932.        else:
  933.            aSendUpdate(fieldName, args)
  934.    def keepConnection():
  935.        pass
  936.    def denyDisconnectDetails(newCode, newMsg):
  937.        pass
  938.    base.cr.lostConnection = keepConnection
  939.    base.cr.disconnect = keepConnection
  940.    base.localAvatar.sendUpdate = sendUpdateHook
  941.    base.cr.launcher.setDisconnectDetails = denyDisconnectDetails
  942.    
  943.    Server Whisper:
  944.    def broadcastWhisper(message="", includingSelf=True):
  945.        nearbyToonIds = base.localAvatar.getNearbyPlayers(pow(10, 10), includingSelf)
  946.        for nearbyToonIds in nearbyToonIds:base.talkAssistant.sendWhisperTalk(str(message), nearbyToonIds)
  947.    
  948.    broadcastWhisper("Hi", True)
  949.    
  950.    Server Rainbow Whisper:
  951.    def broadcastWhisper(message="", includingSelf=True):
  952.        nearbyToonIds = base.localAvatar.getNearbyPlayers(pow(10, 10), includingSelf)
  953.        for nearbyToonIds in nearbyToonIds:base.talkAssistant.sendWhisperTalk(str(message), nearbyToonIds)
  954.    
  955.    broadcastWhisper("\x01blue\x01We\x01red\x01are\x01green\x01Team\x01blue\x01FeD\x01red\x01", True)
  956.    
  957.    
  958.    Sparkle Effect Code:
  959.    from toontown.effects.SparksTrail import *
  960.    Me = base.localAvatar
  961.    st = SparksTrail()
  962.    st.setPos(Me.getX(), Me.getY(), Me.getZ())
  963.    st.play()
  964.    
  965.    Create Your Own NPC:
  966.    TTChar = toontown.toon.Toon.Toon();TTChar.reparentTo(render)
  967.    TTChar.doId = base.localAvatar.doId;TTChar.setupToonNodes();TTChar.setName('~ Team FD NPC ~')
  968.    TTChar.setPosHpr(0, -4, 4, 90, 0, 0)
  969.    TTChar.initializeNametag3d();TTChar.startBlink();TTChar.startLookAround();
  970.    TTChar.showNametag3d();TTChar.showNametag2d();TTChar.adjustNametag3d();
  971.    TTChar.initializeBodyCollisions('FD_NPC-Collisions_' + str(TTChar.doId))
  972.    TTChar.setDNAString('t\x05\x05\x00\x01\x56\x06\x3d\x03\31\x07\x0e\x00\x0e\x0e')
  973.    TTChar.loop('neutral')
  974.    
  975.    Create Your Own District:
  976.    from toontown.distributed import ToontownDistrict
  977.    FDNation = ToontownDistrict.ToontownDistrict(base.cr)
  978.    FDNation.generate();FDNation.generateInit();
  979.    FDNation.setName('FD Nation')
  980.    FDNation.doId = 49990000
  981.    FDNation.parentId = 4999
  982.    FDNation.setAvailable(1)
  983.    FDNation.postGenerateMessage();
  984.    base.cr.activeDistrictMap[49990000] = FDNation
  985.    base.localAvatar.book.pages[1].updateScrollList()
  986.    
  987.    Server Gloves (Make A Toon Version):
  988.    import toontown
  989.    try:newToonRandom
  990.    except:newToonRandom = toontown.toon.ToonDNA.ToonDNA.newToonRandom
  991.    def createNewRandomToon(self, **kwds):
  992.     newToonRandom(self)
  993.     self.gloveColor=26;self.gender=kwds['gender']
  994.    toontown.toon.ToonDNA.ToonDNA.newToonRandom = createNewRandomToon
  995.    
  996.    Server Cog Suit:
  997.    playground = base.cr.doFindAll("render/")
  998.    for toon in playground:
  999.    if toon.doId != base.localAvatar.doId:
  1000.    serverCogSuit = base.localAvatar.dclass.clientFormatUpdate("setCogIndex", toon.doId, [0])
  1001.    base.cr.send(serverCogSuit)
  1002.    
  1003.    -----Client Fireworks Show-----
  1004.    import toontown
  1005.    from toontown.effects.DistributedFireworkShow import DistributedFireworkShow
  1006.    fireworks = DistributedFireworkShow(base.cr)
  1007.    fireworks.startShow(toontown.toonbase.ToontownGlobals.JULY4_FIREWORKS, 1, 0, render)
  1008.    
  1009.    
  1010.    Tailor Disconnect Buttons + Tailor Gloves Button Changer:
  1011.    from direct.gui.DirectGui import *
  1012.    from pandac.PandaModules import TextNode
  1013.    from direct.gui.OnscreenText import OnscreenText
  1014.    currentGlove = 0
  1015.    npc = base.cr.doFindAll("Tailor")[0]
  1016.    defaultChatAbsolute = npc.setChatAbsolute
  1017.    base.localAvatar.b_setAnimState('swim')
  1018.    npc.handleCollisionSphereEnter(base.localAvatar.doId)
  1019.    npc.handleCollisionSphereEnter(base.localAvatar.doId)
  1020.    npc.afkTimeout = pow(100, 100)
  1021.    gloveList = ['\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08',\
  1022.    '\x09', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19',\
  1023.    '\x0d', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f', '\x1a']
  1024.    def addGloveIndex(dnaString='t\x05\x02\x00\x00\x56\x1b\x3d\x1b\x20\x1b\x0e\x02\x0e\x0e'):
  1025.        global gloveList, currentGlove, npc
  1026.        if currentGlove != 26:
  1027.            currentGlove += 1
  1028.            npc.sendUpdate("setDNA", [dnaString[:12] + gloveList[currentGlove] + dnaString[13:], 0, 3])
  1029.            base.localAvatar.setDNAString('t\x05\x05' + dnaString[3:12] + gloveList[currentGlove] + dnaString[13:])
  1030.        else:
  1031.            currentGlove = 0
  1032.            npc.sendUpdate("setDNA", [dnaString[:12] + '\x00' + dnaString[13:], 0, 3])
  1033.            base.localAvatar.setDNAString('t\x05\x05' + dnaString[3:12] + '\x00' + dnaString[13:])
  1034.    def subtractGloveIndex(dnaString='t\x05\x02\x00\x00\x56\x1b\x3d\x1b\x20\x1b\x0e\x02\x0e\x0e'):
  1035.        global gloveList, currentGlove, npc
  1036.        if currentGlove != 0:
  1037.            currentGlove -= 1
  1038.            npc.sendUpdate("setDNA", [dnaString[:12] + gloveList[currentGlove] + dnaString[13:], 0, 3])
  1039.            base.localAvatar.setDNAString('t\x05\x05' + dnaString[3:12] + gloveList[currentGlove] + dnaString[13:])
  1040.        else:
  1041.            currentGlove = 26
  1042.            npc.sendUpdate("setDNA", [dnaString[:12] + '\x26' + dnaString[13:], 0, 3])
  1043.            base.localAvatar.setDNAString('t\x05\x05' + dnaString[3:12] + '\x26' + dnaString[13:])
  1044.    def disconnectThroughDNA(dnaString='t\x05\x06\x00\x00\x50\x1b\x45\x1b\x26\x1b\x0e\x02\x0e\x0e'):
  1045.        try:
  1046.            npc = base.cr.doFindAll("Tailor")[0]
  1047.            npc.sendUpdate("setDNA", [dnaString, 0, 3])
  1048.        except:pass
  1049.    def removeGui():
  1050.        try:npc = base.cr.doFindAll("Tailor")[0]
  1051.        except:pass
  1052.        try:
  1053.            addGloveB.removeNode()
  1054.            subtractGloveB.removeNode()
  1055.            disconnectB.removeNode()
  1056.            glovetxt_object.removeNode()
  1057.            removeGuiB.removeNode()
  1058.        except:pass
  1059.        try:npc._DistributedNPCTailor__handleButton()
  1060.        except:pass
  1061.    def hookExit(chatString, chatFlags, dialogue=None, interrupt=1, quiet=0):
  1062.        global npc, defaultChatAbsolute
  1063.        if chatString == 'Need more time to think?':
  1064.            npc.handleCollisionSphereEnter(base.localAvatar.doId)
  1065.            npc.handleCollisionSphereEnter(base.localAvatar.doId)
  1066.            npc.afkTimeout = pow(100, 100)
  1067.        else:
  1068.            defaultChatAbsolute(chatString, chatFlags, dialogue, interrupt, quiet)
  1069.    npc.setChatAbsolute = hookExit
  1070.    glove_text = 'Glove Color'
  1071.    glovetxt_object = OnscreenText(text = glove_text, pos = (0.95,0.2), scale = 0.07, fg=(0, 0, 0, 0.6), align=TextNode.ACenter, mayChange=1)
  1072.    addGloveB = DirectButton(text = (">>", ">>", ">>", ">>"), scale=.06, pos = (1.22,0,0.2), command=addGloveIndex)
  1073.    subtractGloveB = DirectButton(text = ("<<", "<<", "<<", "<<"), scale=.06, pos = (0.7,0,0.2), command=subtractGloveIndex)
  1074.    disconnectB = DirectButton(text = ("Disconnect", "Disconnect", "Disconnect", "Disconnect"), scale=.06, pos=(0.96,0,0.3), command=disconnectThroughDNA)
  1075.    removeGuiB = DirectButton(text = ("No More Disconnect", "No More Disconnect", "No More Disconnect", "No More Disconnect"), scale=.06, pos=(0.96,0,0.4), command=removeGui)
  1076.    
  1077.    Server Splash:
  1078.    toon = base.cr.doFindAll("Put Toon name here")
  1079.    base.localAvatar.d_playSplashEffect(toon[0].getX(), toon[0].getY(), toon[0].getZ())
  1080.    base.localAvatar.playSplashEffect(toon[0].getX(), toon[0].getY(), toon[0].getZ())
  1081.    
  1082.    
  1083.    Server Dust Cloud:
  1084.    toon = base.cr.doFindAll("Put Toon name here")
  1085.    base.localAvatar.d_playDustCloudEffect(toon[0].getX(), toon[0].getY(), toon[0].getZ())
  1086.    base.localAvatar.playDustCloudEffect(toon[0].getX(), toon[0].getY(), toon[0].getZ())
  1087.    
  1088.    Server Friend Notify Whispers:
  1089.    def notifyFriend(friendName, notifyId):
  1090.        toon = base.cr.doFindAll(friendName)[0]
  1091.        toon.sendUpdate("friendsNotify", [base.localAvatar.doId, notifyId])
  1092.        base.localAvatar.friendsNotify(toon.doId, notifyId)
  1093.    
  1094.    notifyFriend('Royal Blue Monkey', 1)
  1095.    notifyFriend('Royal Blue Monkey', 2)
  1096.    
  1097.    Server Control Toons Test:
  1098.    toon = base.cr.doFindAll("Mister Rusty")
  1099.    base.localAvatar.b_setAnimState("Sit",toon[0].getX(), toon[0].getY(), toon[0].getZ())
  1100.    
  1101.    Server Fast Victory Dance:
  1102.    messenger.send([base.localAvatar.b_setAnimState('victory', 10)])
  1103.    
  1104.    Server Teleport Greeting Code:
  1105.    base.localAvatar.b_teleportGreeting(Toon ID # Here)
  1106.    
  1107.    Server Teleport Messages:
  1108.    teleportToon = base.cr.doFindAll("ToonName")
  1109.    base.localAvatar.d_teleportQuery(base.localAvatar.doId, teleportToon[0].doId)
  1110.    base.localAvatar.setSystemMessage(None, "Teleport message has been sent to " + str(teleportToon[0].getName()))
  1111.    
  1112.    teleportToon = base.cr.doFindAll("ToonName")
  1113.    base.localAvatar.d_teleportGiveup(base.localAvatar.doId, teleportToon[0].doId)
  1114.    base.localAvatar.setSystemMessage(None, "Teleport Give Up message has been sent to " + str(teleportToon[0].getName()))
  1115.    
  1116.    Client Mickey Hacks:
  1117.    mickey = base.cr.doFindAll("render/mickey")
  1118.    for mickey in base.cr.doFindAll("render/mickey"):
  1119.        mickey.setName('Ghost Mickey')
  1120.        mickey.hideShadow()
  1121.        mickey.loop('right-point')
  1122.        mickey.setColorScale(0.3)
  1123.        mickey.setChatAbsolute('Fuckers!', 1, None, True)
  1124.        mickey.find('**/MickeycRay').removeNode()
  1125.        mickey.find('**/distAvatarCollNode-415100656').removeNode()
  1126.        mickey.find('**/MickeyBlatherSphere').setScale(5000)
  1127.    
  1128.    Server Rainbow Open Chat:
  1129.    base.talkAssistant.sendOpenTalk('\x01blue\x01We\x01red\x01are\x01green\x01Team\x01blue\x01FeD\x01red\x01')
  1130.    base.talkAssistant.sendOpenTalk('\x01blue\x01\x01\x01we are team FeD\x01green\x01\x01blue\x01\x01red\x01')
  1131.    
  1132.    Client 3D Rainbow Chat:
  1133.    base.localAvatar.displayTalk("\x01shadow\x01We\x01red\x01are\x01green\x01Team\x01blue\x01FD\x01red\x01", mods=True)
  1134.    
  1135.    Client HP String:
  1136.    base.localAvatar.showHpString('Master Rusty pwns', duration=1, scale=0.5)
  1137.    
  1138.    Client Lose Laff:
  1139.    base.localAvatar.takeDamage(10, bonus=0)
  1140.    
  1141.    
  1142.    
  1143.    Get Karts Current Dna String:
  1144.    zone = base.localAvatar.getKartDNA()
  1145.    zone = str(zone)
  1146.    base.localAvatar.setSystemMessage(1, zone)
  1147.    
  1148.    Get Your House ID #:
  1149.    zone = base.localAvatar.getHouseId()
  1150.    zone = str(zone)
  1151.    base.localAvatar.setSystemMessage(1, zone)
  1152.    
  1153.    Get Max # Of NPC Friends:
  1154.    zone = base.localAvatar.getMaxNPCFriends()
  1155.    zone = str(zone)
  1156.    base.localAvatar.setSystemMessage(1, zone)
  1157.    
  1158.    Get Your Toons Current Location:
  1159.    zone = base.localAvatar.getLocation()
  1160.    zone = str(zone)
  1161.    base.localAvatar.setSystemMessage(1, zone)
  1162.    
  1163.    Get Your Request ID #:
  1164.    zone = base.localAvatar.getRequestID()
  1165.    zone = str(zone)
  1166.    base.localAvatar.setSystemMessage(1, zone)
  1167.    
  1168.    Get Your Pet  ID #:
  1169.    zone=base.localAvatar.lookupPetDNA()
  1170.    zone = str(zone)
  1171.    base.localAvatar.setSystemMessage(1, zone)
  1172.    
  1173.    Get Your Geom Info:
  1174.    zone=base.localAvatar.getGeomNode()
  1175.    zone = str(zone)
  1176.    base.localAvatar.setSystemMessage(1, zone)
  1177.    
  1178.    Get Your Zone ID #:
  1179.    zone = base.localAvatar.getZoneId()
  1180.    zone = str(zone)
  1181.    base.localAvatar.displayTalk('.I am in Zone : ' + zone)
  1182.    
  1183.    Toon Valley Shard:
  1184.    base.localAvatar.book.pages[1].choseShard(450000000)
  1185.    
  1186.    Get Never Disable Args?:
  1187.    zone = base.localAvatar.getNeverDisable()
  1188.    zone = str(zone)
  1189.    base.localAvatar.setSystemMessage(1, zone)
  1190.    
  1191.    Get Your Shard Name:
  1192.    zone = base.cr.getShardName(664000000)
  1193.    zone = str(zone)
  1194.    base.localAvatar.setSystemMessage(1, zone)
  1195.    
  1196.    Get Wish Name Response:
  1197.    zone = base.cr.getWishNameResultMsg()
  1198.    zone = str(zone)
  1199.    base.localAvatar.setSystemMessage(1, zone)
  1200.    
  1201.    Get All Intrests Event:
  1202.    zone = base.cr.getAllInterestsCompleteEvent()
  1203.    zone = str(zone)
  1204.    base.localAvatar.setSystemMessage(1, zone)
  1205.    
  1206.    
  1207.    Warning Message Box  Code:
  1208.    Toon = base.cr.doFindAll("ToonName")
  1209.    base.localAvatar.systemWarning("Your ass is Gone",Toon[0].doId)
  1210.    
  1211.    Client Lose Laff:
  1212.    base.localAvatar.takeDamage(10)
  1213.    
  1214.    Server Lose Laff:
  1215.    base.localAvatar.d_squish(5)
  1216.    
  1217.    Client Name Change (Alternate Version):
  1218.    base.localAvatar.setDisplayName('Name You Want Here')
  1219.    
  1220.    Start Chat Code:
  1221.    base.localAvatar.startChat()
  1222.    
  1223.    Server Teleport Greeting (Self Version):
  1224.    base.localAvatar.b_teleportGreeting(base.localAvatar.doId)
  1225.    
  1226.    Get Field Name And Arguments in Log Code:
  1227.    base.cr.wantUpdateCalls = True
  1228.    
  1229.    Client Silly Meter:
  1230.    ---Cardboard Meter---
  1231.    meter = base.cr.doFindAll("Interior")[0]
  1232.    print meter.sillyFSM.request('Flat', force=1)
  1233.    
  1234.    
  1235.    fishman = base.cr.doFindAll("Doctor Surlee")
  1236.    for fishman in base.cr.doFindAll("Doctor Surlee"):
  1237.         fishman.hide()
  1238.    
  1239.    
  1240.    fishman = base.cr.doFindAll("Doctor Dimm")
  1241.    for fishman in base.cr.doFindAll("Doctor Dimm"):
  1242.         fishman.hide()
  1243.    
  1244.    
  1245.    
  1246.    fishman = base.cr.doFindAll("Professor Prepostera")
  1247.    for fishman in base.cr.doFindAll("Professor Prepostera"):
  1248.         fishman.hide()
  1249.    
  1250.    ---Real Meter---
  1251.    meter = base.cr.doFindAll("Interior")[0]
  1252.    print meter.sillyFSM.request('Phase10', force=1)
  1253.    
  1254.    
  1255.    fishman = base.cr.doFindAll("Doctor Surlee")
  1256.    for fishman in base.cr.doFindAll("Doctor Surlee"):
  1257.         fishman.show()
  1258.    
  1259.    
  1260.    fishman = base.cr.doFindAll("Doctor Dimm")
  1261.    for fishman in base.cr.doFindAll("Doctor Dimm"):
  1262.         fishman.show()
  1263.    
  1264.    
  1265.    
  1266.    fishman = base.cr.doFindAll("Professor Prepostera")
  1267.    for fishman in base.cr.doFindAll("Professor Prepostera"):
  1268.         fishman.show()
  1269.    
  1270.    Auto River Button:
  1271.    from direct.gui.OnscreenText import OnscreenText
  1272.    from direct.gui.DirectGui import *
  1273.    from pandac.PandaModules import TextNode
  1274.    
  1275.    bk_text = ""
  1276.    textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
  1277.    scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)
  1278.    
  1279.    def setText():
  1280.       bk_text = "River"
  1281.       base.localAvatar.book.pages[1].choseShard(414000000)
  1282.    b = DirectButton(text = ("River", "River", "River", "River"), scale=.06, pos = (.75,-0,-.85), command=setText)
  1283.    
  1284.    Skip Toontorial:
  1285.    messenger.send('rejectTutorial')
  1286.    base.cr.gameFSM.request('closeShard')
  1287.    
  1288.    
  1289.    Server Gloves (Tailor Version):
  1290.    Make sure to go to the clerk.
  1291.    Enter this first.
  1292.    
  1293.    base.localAvatar.setDNAString('t\x18\x01\x00\x01\x70\x1b\x63\x1b\x22\x1b\x18\x00\x18\x18')
  1294.    
  1295.    
  1296.    
  1297.    npc = base.cr.doFindAll("Tailor")
  1298.    npc[0]._DistributedNPCTailor__enterConfirmLoss(34, 34)
  1299.    
  1300.    
  1301.    then enter this.
  1302.    
  1303.    
  1304.    base.localAvatar.setDNAString('t\x01\x01\x00\x00\x27\x1b\x42\x1b\x23\x1b\x08\x02\x08\x08')
  1305.    
  1306.    
  1307.    
  1308.    npc = base.cr.doFindAll("Tailor")
  1309.    npc[0]._DistributedNPCTailor__enterConfirmLoss(34, 34)
  1310.    
  1311.    Server Go Sad:
  1312.    base.localAvatar.enterDied(base.localAvatar.doId)
  1313.    
  1314.    Shutdown Toontown:
  1315.    base.cr.enterShutdown()
  1316.    
  1317.    Close Shard:
  1318.    base.cr.enterCloseShard()
  1319.    
  1320.    Turn Off Virtual Toon:
  1321.    base.localAvatar._Toon__doUnVirtual()
  1322.    
  1323.    Turn On Virtual Toon:
  1324.    base.localAvatar._Toon__doVirtual()
  1325.    
  1326.    Abort Game Code:
  1327.    base.cr.gameFSM.request('closeShard')
  1328.    
  1329.    
  1330.    Instant House Teleport:
  1331.    base.localAvatar._LocalToon__handleClarabelleButton()
  1332.    
  1333.    Crash Yourself Codes:
  1334.    base.cr._OTPClientRepository__giveUpWaitingForDatabase(True)
  1335.    base.cr._OTPClientRepository__showWaitingForDatabase(True)
  1336.    base.cr._OTPClientRepository__handleCancelWaiting(True)
  1337.    base.cr._OTPClientRepository_handleOldShardGone(True)
  1338.    
  1339.    AFK Timeout Codes:
  1340.    base.localAvatar._Toon__handleAfkTimeout(True)
  1341.    base.localAvatar._Toon__handleAfkExitTeleport(True)
  1342.    base.localAvatar._LocalToon__handleSwimExitTeleport(True)
  1343.    
  1344.    Server Choose Any Disney Approved Name Code:
  1345.    base.cr.sendWishName(base.localAvatar.doId,("FD Master Rusty FD"))
  1346.    base.cr.gameFSM.request('closeShard')
  1347.    
  1348.    
  1349.    Shows All Active Shards:
  1350.    zone = base.cr.listActiveShards()
  1351.    zone = str(zone)
  1352.    base.localAvatar.setSystemMessage(1, zone)
  1353.    
  1354.    Membership Code:
  1355.    base.cr.setIsPaid(True)
  1356.    
  1357.    Toon Steal:
  1358.    base.cr.sendCreateAvatarMsg(avDNA, avName, avPosition)
  1359.    
  1360.    Possible Delete Toons Code?:
  1361.    def sendDeleteAvatarMsg(avId):
  1362.     pass
  1363.    
  1364.    sendDeleteAvatarMsg(Base.localAvatar.doId)
  1365.    
  1366.    Make SOS Page Appear In Your Book:
  1367.    base.localAvatar.loadSosPages()
  1368.    
  1369.    Exit Tailor Codes:
  1370.    npc = base.cr.doFindAll("Tailor")
  1371.    npc[0]._DistributedNPCTailor__handlePurchaseDone()
  1372.    
  1373.    npc = base.cr.doFindAll("Tailor")
  1374.    npc[0]._DistributedNPCTailor__handleCancel()
  1375.    
  1376.    npc = base.cr.doFindAll("Tailor")
  1377.    npc[0]._DistributedNPCTailor__handleConfirmLossOK(1,1)
  1378.    
  1379.    npc = base.cr.doFindAll("Tailor")
  1380.    npc[0]._DistributedNPCTailor__handleConfirmLossCancel()
  1381.    
  1382.    Tailor Crash Code:
  1383.    npc = base.cr.doFindAll("Tailor")
  1384.    npc[0]._DistributedNPCTailor__handleUnexpectedExit()
  1385.    
  1386.    Tailor Steal Code:
  1387.    npc = base.cr.doFindAll("Tailor")
  1388.    npc[0]._DistributedNPCTailor__enterConfirmLoss(1, 1)
  1389.    
  1390.    Trolley Code:
  1391.    Trolley = base.cr.doFindAll("Trolley")
  1392.    Trolley[0]._handleOffTrolly()
  1393.    
  1394.    npc = base.cr.doFindAll("Tailor")
  1395.    npc[0]._DistributedNPCTailor__handleSwap()
  1396.    
  1397.    Control battles code?:
  1398.    setWantBattles(self, wantBattles)
  1399.    
  1400.    Client Winter Carol Bean Code:
  1401.    base.localAvatar.winterCarolingTargetMet(Bean Amount Here)
  1402.    
  1403.    Client Trick Or Treat Bean Code:
  1404.    base.localAvatar.trickOrTreatTargetMet(Bean Amount Here)
  1405.    
  1406.    Tutorial Tom Message Box:
  1407.    door = base.cr.doFindAll("Door")
  1408.    door[0].rejectEnter(True)
  1409.    
  1410.    Show Not Owner Of Closet Panel:
  1411.    clothes = base.cr.doFindAll("closet")
  1412.    clothes[0]._DistributedCloset__popupNotOwnerPanel()
  1413.    
  1414.    Close Closet Door::
  1415.    clothes = base.cr.doFindAll("closet")
  1416.    clothes[0]._DistributedCloset__closeDoors()
  1417.    
  1418.    Open Closet Door:
  1419.    clothes = base.cr.doFindAll("closet")
  1420.    clothes[0]._DistributedCloset__openDoors()
  1421.    
  1422.    Cancel Closet Code:
  1423.    clothes = base.cr.doFindAll("closet")
  1424.    clothes[0]._DistributedCloset__handleCancel()
  1425.    
  1426.    Closet Are You Sure Panel Code:
  1427.    clothes = base.cr.doFindAll("closet")
  1428.    clothes[0]._DistributedCloset__popupAreYouSurePanel()
  1429.    
  1430.    Closet Timeout Panel Code:
  1431.    clothes = base.cr.doFindAll("closet")
  1432.    clothes[0]._DistributedCloset__popupTimeoutPanel()
  1433.    
  1434.    Closet Swap Code:
  1435.    clothes = base.cr.doFindAll("closet")
  1436.    clothes[0]._DistributedCloset__handleSwap()
  1437.    
  1438.    Disconnect Toons (Tailor Version):
  1439.    base.localAvatar.setDNAString('t\x01\x07\x00\x00\x50\x1b\x45\x1b\x21\x1b\x08\x02\x08\x08')
  1440.    npc = base.cr.doFindAll("Tailor")[0]
  1441.    npc[0]._DistributedNPCTailor__enterConfirmLoss(34, 34)
  1442.    
  1443.    Disconnect Toons (Estate Version):
  1444.    closet = base.cr.doFindAll("closet")[0]
  1445.    closet.sendUpdate("setDNA", ['t\x00\x08\x01\x00\x50\x1b\x45\x1b\x26\x1b\x0e\x04\x0e\x0e', 34, 34])
  1446.    
  1447.    Server 3D Rainbow Open Chat:
  1448.    base.talkAssistant.sendOpenTalk('\x01shadow\x01WE\x01red\x01ARE\x01green\x01TEAM\x01blue\x01FeD!\x01red\x01')
  1449.    
  1450.    
  1451.    pond = base.cr.doFindAll("FishingPond")[0]
  1452.    pond.handleBingoCatch()
  1453.    
  1454.    Server SC Wrapper:
  1455.    class SCWrapper:
  1456.            SCDictionary = {}
  1457.            global defaultDecode
  1458.    
  1459.            def encrypt(self, message):
  1460.                encryption = md5.new()
  1461.                encryption.update(message)
  1462.                return encryption.digest()
  1463.          
  1464.            def registerMessage(self, SpeedchatID, SpeedchatText):
  1465.                self.SCDictionary[SpeedchatID] = SpeedchatText
  1466.    
  1467.            def unregisterMessage(self, SpeedchatID):
  1468.                try:del self.SCDictionary[SpeedchatID]
  1469.                except:print "No Speedchat ID", SpeedchatID
  1470.    
  1471.            def returnDecoded(self, msgIndex):
  1472.                if msgIndex in self.SCDictionary:return str(self.SCDictionary[msgIndex])
  1473.                else:return defaultDecode(msgIndex)
  1474.    
  1475.            def __init__(self):
  1476.                otp.speedchat.SCDecoders.decodeSCStaticTextMsg = self.returnDecoded
  1477.    
  1478.    Script To Run Multihacks:
  1479.    script_path = "C:/Program Files/Disney/Disney Online/ToontownOnline/multihack.py"
  1480.    script_to_run = open(script_path, 'r')
  1481.    full_script = script_to_run.read()
  1482.    exec full_script
  1483.    
  1484.    
  1485.    direct.gui.OnscreenText
  1486.    
  1487.    Estate Manager:
  1488.    base.cr.doFindAll("Estate")[0]
  1489.    
  1490.    Server Name Change:
  1491.    name = 'FD Green Cat FD'
  1492.    from direct.distributed.PyDatagram import PyDatagram
  1493.    CLIENT_SET_WISHNAME,CLIENT_SET_WISHNAME_RESP = 70,71
  1494.    datagram = PyDatagram()
  1495.    datagram.addUint16(CLIENT_SET_WISHNAME)
  1496.    datagram.addUint16(CLIENT_SET_WISHNAME_RESP)
  1497.    datagram.addUint16(70)
  1498.    datagram.addUint16(71)
  1499.    datagram.addString(name)
  1500.    base.cr.send(datagram)
  1501.    
  1502.    
  1503.    Master Rustys Buttons:
  1504.    from direct.gui.OnscreenText import OnscreenText
  1505.    from direct.gui.DirectGui import *
  1506.    from direct.interval.IntervalGlobal import *
  1507.    from pandac.PandaModules import TextNode
  1508.    
  1509.    def bOne():
  1510.     base.localAvatar.collisionsOn()
  1511.    def bTwo():
  1512.     base.localAvatar.collisionsOff()
  1513.    def  bThree():
  1514.     base.localAvatar.b_setAnimState('dive')
  1515.    def bFour():
  1516.     base.localAvatar.b_setAnimState('swim')
  1517.    def bFive():
  1518.     base.localAvatar.b_setSC(20136)
  1519.    def bSix():
  1520.     base.cr.sendSetZoneMsg(7000)
  1521.    def bSeven():
  1522.     base.cr.sendSetZoneMsg(2000)
  1523.    def bEight():
  1524.      base.localAvatar.book.pages[1].shardChoiceReject = base.localAvatar.book.pages[1].choseShard
  1525.      base.localAvatar.setTeleportAccess([1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000])
  1526.      base.localAvatar.setHoodsVisited([1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000])
  1527.      base.localAvatar.setSystemMessage(0,'Global Teleport Activated')
  1528.      base.localAvatar.book._ShtikerBook__pageChange(1)
  1529.      base.localAvatar.book._ShtikerBook__pageChange(-1)
  1530.    def bNine():
  1531.     base.talkAssistant.sendOpenTalk('\n' * 200)
  1532.    def bTen():
  1533.     base.localAvatar.d_squish(3)
  1534.    def bEleven():
  1535.     ttt = base.cr.doFindAll("TTTreasure")
  1536.     for ttt in base.cr.doFindAll("TTTreasure"):
  1537.         ttt.d_requestGrab()
  1538.    def bTwelve():
  1539.     base.localAvatar.b_setAnimState('TeleportOut')
  1540.    def bThirteen():
  1541.     base.localAvatar.b_setAnimState('TeleportIn')
  1542.    def bFourteen():
  1543.     base.localAvatar.enterSitStart()
  1544.    def bFifteen():
  1545.     messenger.send('nameTagShowAvId')
  1546.    def bSixteen():
  1547.     toon = base.localAvatar.getX()
  1548.     toon2 = base.localAvatar.getY()
  1549.     toon3 = base.localAvatar.getZ()
  1550.     base.localAvatar.d_playSplashEffect(toon, toon2, toon3)
  1551.     base.localAvatar.playSplashEffect(toon, toon2, toon3)
  1552.    def bSeventeen():
  1553.     base.localAvatar.b_setAnimState("victory", 10)
  1554.    def bEighteen():
  1555.     base.localAvatar.loop('swing')
  1556.    def bNineteen():
  1557.     base.localAvatar.b_setAnimState("ScientistEmcee")
  1558.    def bTwenty():
  1559.     messenger.send("minigameAbort")
  1560.    def bTwentyone():
  1561.     houseZoneGet = base.localAvatar.getZoneId()
  1562.     houseZoneGet += 10
  1563.     houseZoneGet = int(houseZoneGet)
  1564.     base.cr.sendSetZoneMsg(houseZoneGet)
  1565.    def whisperall(message="", includingSelf=True):
  1566.        startingToon = 0
  1567.        toonOn = 0
  1568.        listToonIds = base.localAvatar.getNearbyPlayers(1000000000000000, includingSelf)
  1569.        endingToon = len(listToonIds)
  1570.        print listToonIds
  1571.        while startingToon != endingToon:
  1572.            base.talkAssistant.sendWhisperTalk(str(message), listToonIds[toonOn])
  1573.            print toonOn
  1574.            toonOn = toonOn + 1
  1575.            startingToon = startingToon + 1
  1576.    def bTwentytwo():
  1577.     whisperall('TP TO ME \n' * 13, True)
  1578.    def bTwentythree():
  1579.     base.localAvatar.b_setAnimState('ScientistWork')
  1580.    def bTwentyfour():
  1581.     base.localAvatar.setDNAString('t\x01\x02\x00\x01\x56\x1d\x54\x1c\x24\x1d\x00\x00\x14\x14')
  1582.    def bTwentyfive():
  1583.     word = base.localAvatar.getZoneId()
  1584.     base.localAvatar.collisionsOff()
  1585.     base.cr.sendSetZoneMsg(7000)
  1586.     base.localAvatar.b_setAnimState('chat')
  1587.     base.cr.sendSetZoneMsg(word)
  1588.    def bTwentysix():
  1589.     ttd = base.cr.doFindAll("DivingGame")
  1590.     for ttd in base.cr.doFindAll("DivingGame"):
  1591.         ttd.setTreasureGrabbed(base.localAvatar.doId, True)
  1592.    def bTwentyseven():
  1593.     zone = base.localAvatar.getZoneId()
  1594.     zone = str(zone)
  1595.     base.localAvatar.setSystemMessage(1, zone)
  1596.    def bTwentyeight():
  1597.     base.localAvatar.physControls.avatarControlForwardSpeed = 100
  1598.    def bTwentynine():
  1599.     base.localAvatar.physControls.avatarControlJumpForce = 100
  1600.    
  1601.    b1 = DirectButton(text = ("CO-on", "CO-on", "CO-on", "CO-on"), scale=.05, pos = (-.1,0,-.9), command=bOne)
  1602.    b2 = DirectButton(text = ("CO-off", "CO-off", "CO-off", "CO-off"), scale=.05, pos = (.08,0,-.9), command=bTwo)
  1603.    b3 = DirectButton(text = ("Dive", "Dive", "Dive", "Dive"), scale=.05, pos = (.22,0,-.9), command=bThree)
  1604.    b4 = DirectButton(text = ("Swim", "Swim", "Swim", "Swim"), scale=.05, pos = (.34,0,-.9), command=bFour)
  1605.    b5 = DirectButton(text = ("RAID!", "RAID!", "RAID!", "RAID!"), scale=.05, pos = (.48,0,-.9), command=bFive)
  1606.    b6 = DirectButton(text = ("Farm", "Farm", "Farm", "Farm"), scale=.05, pos = (-.26,0,-.9), command=bSix)
  1607.    b7 = DirectButton(text = ("TTC", "TTC", "TTC", "TTC"), scale=.05, pos = (-.37,0,-.9), command=bSeven)
  1608.    b8 = DirectButton(text = ("Teleport", "Teleport", "Teleport", "Teleport"), scale=.05, pos = (-.515,0,-.9), command=bEight)
  1609.    b9 = DirectButton(text = ("Bubble", "Bubble", "Bubble", "Bubble"), scale=.05, pos = (-.7,0,-.9), command=bNine)
  1610.    b10 = DirectButton(text = ("Die", "Die", "Die", "Die"), scale=.05, pos = (-.84,0,-.9), command=bTen)
  1611.    b11 = DirectButton(text = ("Laff", "Laff", "Laff", "Laff"), scale=.05, pos = (-.94,0,-.9), command=bEleven)
  1612.    b12 = DirectButton(text = ("T-out", "T-out", "T-out", "T-out"), scale=.05, pos = (-.94,0,-.96), command=bTwelve)
  1613.    b13 = DirectButton(text = ("T-in", "T-in", "T-in", "T-in"), scale=.05, pos = (-.82,0,-.96), command=bThirteen)
  1614.    b14 = DirectButton(text = ("Sit", "Sit", "Sit", "Sit"), scale=.05, pos = (.6,0,-.9), command=bFourteen)
  1615.    b15 = DirectButton(text = ("AVID", "AVID", "AVID", "AVID"), scale=.05, pos = (.72,0,-.9), command=bFifteen)
  1616.    b16 = DirectButton(text = ("Splash", "Splash", "Splash", "Splash"), scale=.05, pos = (-.55,0,-.96), command=bSixteen)
  1617.    b17 = DirectButton(text = (">>Victory", ">>Victory", ">>Victory", ">>Victory"), scale=.05, pos = (-.36,0,-.96), command=bSeventeen)
  1618.    b18 = DirectButton(text = ("Swing", "Swing", "Swing", "Swing"), scale=.05, pos = (-.17,0,-.96), command=bEighteen)
  1619.    b19 = DirectButton(text = ("Emcee", "Emcee", "Emcee", "Emcee"), scale=.05, pos = (-.7,0,-.96), command=bNineteen)
  1620.    b20 = DirectButton(text = ("Skip", "Skip", "Skip", "Skip"), scale=.05, pos = (-.06,0,-.96), command=bTwenty)
  1621.    b21 = DirectButton(text = ("Raid", "Raid", "Raid", "Raid"), scale=.05, pos = (.05,0,-.96), command=bTwentyone)
  1622.    b22 = DirectButton(text = ("TP", "TP", "TP", "TP"), scale=.05, pos = (.14,0,-.96), command=bTwentytwo)
  1623.    b23 = DirectButton(text = ("SciW", "SciW", "SciW", "SciW"), scale=.05, pos = (.23,0,-.96), command=bTwentythree)
  1624.    b24 = DirectButton(text = ("Suit", "Suit", "Suit", "Suit"), scale=.05, pos = (.34,0,-.96), command=bTwentyfour)
  1625.    b25 = DirectButton(text = ("ScaC", "ScaC", "ScaC", "ScaC"), scale=.05, pos = (.45,0,-.96), command=bTwentyfive)
  1626.    b26 = DirectButton(text = ("DiveG", "DiveG", "DiveG", "DiveG"), scale=.05, pos = (-.94,0,-.84), command=bTwentysix)
  1627.    b27 = DirectButton(text = ("Zone", "Zone", "Zone", "Zone"), scale=.05, pos = (-.66,0,-.84), command=bTwentyseven)
  1628.    b28 = DirectButton(text = ("Run", "Run", "Run", "Run"), scale=.05, pos = (-.36,0,-.84), command=bTwentyeight)
  1629.    b29 = DirectButton(text = ("Jump", "Jump", "Jump", "Jump"), scale=.05, pos = (-.22,0,-.84), command=bTwentynine)
  1630.    
  1631.    from direct.interval.IntervalGlobal import *
  1632.    def spinSetup():
  1633.     height = base.localAvatar.getZ()
  1634.     base.localAvatar.collisionsOff()
  1635.     base.localAvatar.setZ(height + 6)
  1636.    def spinOne():
  1637.     base.localAvatar.setHpr(0,10,0)
  1638.    def spinTwo():
  1639.     base.localAvatar.setHpr(0,30,0)
  1640.    def spinThree():
  1641.     base.localAvatar.setHpr(0,50,0)
  1642.    def spinFour():
  1643.     base.localAvatar.setHpr(0,70,0)
  1644.    def spinFive():
  1645.     base.localAvatar.setHpr(0,90,0)
  1646.    def spinSix():
  1647.     base.localAvatar.setHpr(0,110,0)
  1648.    def spinSeven():
  1649.     base.localAvatar.setHpr(0,130,0)
  1650.    def spinEight():
  1651.     base.localAvatar.setHpr(0,150,0)
  1652.    def spinNine():
  1653.     base.localAvatar.setHpr(0,170,0)
  1654.    def spinTen():
  1655.     base.localAvatar.setHpr(0,190,0)
  1656.    def spinEleven():
  1657.     base.localAvatar.setHpr(0,210,0)
  1658.    def spinTwelve():
  1659.     base.localAvatar.setHpr(0,230,0)
  1660.    def spinThirteen():
  1661.     base.localAvatar.setHpr(0,250,0)
  1662.    def spinFourteen():
  1663.     base.localAvatar.setHpr(0,270,0)
  1664.    def spinFifteen():
  1665.     base.localAvatar.setHpr(0,290,0)
  1666.    def spinSixteen():
  1667.     base.localAvatar.setHpr(0,310,0)
  1668.    def spinSeventeen():
  1669.     base.localAvatar.setHpr(0,330,0)
  1670.    def spinEighteen():
  1671.     base.localAvatar.setHpr(0,0,0)
  1672.    def spinEnd():
  1673.     base.localAvatar.collisionsOn()
  1674.    def spinOnTime():
  1675.     seq = Sequence()
  1676.     seq.append(Func(spinSetup))
  1677.     seq.append(Wait(.1))
  1678.     seq.append(Func(spinOne))
  1679.     seq.append(Wait(.1))
  1680.     seq.append(Func(spinTwo))
  1681.     seq.append(Wait(.1))
  1682.     seq.append(Func(spinThree))
  1683.     seq.append(Wait(.1))
  1684.     seq.append(Func(spinFour))
  1685.     seq.append(Wait(.1))
  1686.     seq.append(Func(spinFive))
  1687.     seq.append(Wait(.1))
  1688.     seq.append(Func(spinSix))
  1689.     seq.append(Wait(.1))
  1690.     seq.append(Func(spinSeven))
  1691.     seq.append(Wait(.1))
  1692.     seq.append(Func(spinEight))
  1693.     seq.append(Wait(.1))
  1694.     seq.append(Func(spinNine))
  1695.     seq.append(Wait(.1))
  1696.     seq.append(Func(spinTen))
  1697.     seq.append(Wait(.1))
  1698.     seq.append(Func(spinEleven))
  1699.     seq.append(Wait(.1))
  1700.     seq.append(Func(spinTwelve))
  1701.     seq.append(Wait(.1))
  1702.     seq.append(Func(spinThirteen))
  1703.     seq.append(Wait(.1))
  1704.     seq.append(Func(spinFourteen))
  1705.     seq.append(Wait(.1))
  1706.     seq.append(Func(spinFifteen))
  1707.     seq.append(Wait(.1))
  1708.     seq.append(Func(spinSixteen))
  1709.     seq.append(Wait(.1))
  1710.     seq.append(Func(spinSeventeen))
  1711.     seq.append(Wait(.1))
  1712.     seq.append(Func(spinEighteen))
  1713.     seq.append(Wait(.2))
  1714.     seq.append(Func(spinEnd))
  1715.     seq.start()
  1716.    
  1717.    def stealthGo():
  1718.     zone = base.localAvatar.getZoneId()
  1719.     base.cr.sendSetZoneMsg(zone + 10)
  1720.     base.localAvatar.collisionsOff()
  1721.    def stealthBack():
  1722.     zone = base.localAvatar.getZoneId()
  1723.     base.cr.sendSetZoneMsg(zone - 10)
  1724.     base.localAvatar.collisionsOn()
  1725.    def stealthOnTime():
  1726.     seq = Sequence()
  1727.     seq.append(Func(stealthGo))
  1728.     seq.append(Wait(15))
  1729.     seq.append(Func(stealthBack))
  1730.     seq.start()
  1731.    
  1732.    bot1 = DirectButton(text = ("Spin", "Spin", "Spin", "Spin"), scale=.05, pos = (.57,0,-.96), command=spinOnTime)
  1733.    bot2 = DirectButton(text = ("Stealth", "Stealth", "Stealth", "Stealth"), scale=.05, pos = (-.50,0,-.84), command=stealthOnTime)
  1734.    
  1735.    
  1736.    Rustys Test Area:
  1737.    import toontown
  1738.    Def enterMakeMovie(self, ts=0):
  1739.      toontown.battle.DistributedBattleBase.DistributedBattleBase = enterMakeMovie(0)
  1740.    
  1741.    ChatFeedback_OpenChat = 128
  1742.        ChatFeedback_PassedBlacklist = 32
  1743.        ChatFeedback_Whitelist = 64
  1744.    
  1745.    Red Chat Text:
  1746.    try:T_displayTalkNormal
  1747.    except:T_displayTalkNormal = base.talkAssistant.sendOpenTalk
  1748.    def displayRedTalk(displayText):
  1749.        if str(displayText) == '\x01WLDisplay\x01.\x02' or str(displayText) == '.' or str(displayText) == ' ':
  1750.            T_displayTalkNormal('')
  1751.        else:
  1752.            textArray = ['\x01WLRed\x01']
  1753.            textArray.append(displayText)
  1754.            textArray.append('\x02')
  1755.            displayText = ''
  1756.            for text in textArray:
  1757.                displayText += text
  1758.            T_displayTalkNormal(displayText)
  1759.    base.talkAssistant.sendOpenTalk = displayRedTalk
  1760.    
  1761.    Blue Chat Text:
  1762.    COming Soon
  1763.    
  1764.    Codes i get from Ruberts logs:
  1765.    base.talkAssistant.sendOpenTalk('\x01blue\x01WE WE WE WE WE WE WE WE WE WE WE WE WE WE WE WE WE WE WE \x01red\x01ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE ARE \x01green\x01TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM TEAM \x01blue\x01TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! TRAP! \x01yellow\x01We Are DOMINANT')
  1766.    base.localAvatar.setDNAString('t\x01\x02\x01\x01\x42\x11\x54\x11\x0d\x14\x14\x00\x14\x14')
  1767.    
  1768.    My Kart Dna:
  1769.    [-1, -1, -1, -1, -1, -1, -1, -1, -1]
  1770.    
  1771.    My Request ID:
  1772.    14
  1773.    
  1774.    My Friends List:
  1775.    [(292947983, 0), (292924149, 0), (292947248, 0), (292925379, 0), (287697056, 0), (292930874, 0), (292029467, 0), (259769325, 0), (292911041, 0), (292878465, 0), (292862934, 0), (292722512, 0), (292952505, 0), (292325782, 0), (267395328, 0)]
  1776.    
  1777.    MY Toon Part Names:
  1778.    ['head', 'legs', 'torso']
  1779.    
  1780.    
  1781.    MY test code
  1782.    base.localAvatar.SendUpdate([base.localAvatar.displayTalk("\x01shadow\x01We\x01red\x01are\x01green\x01Team\x01blue\x01FD\x01red\x01", mods=True)])
  1783.    
  1784.    
  1785.    
  1786.    MY location:
  1787.    (636000000, 2000)
  1788.    
  1789.    datagram2.addUint16(CLIENT_SET_NAME_PATTERN_ANSWER)
  1790.    
  1791.    Server System Message:
  1792.    from direct.distributed.MsgTypes import *
  1793.    Message = "I have balls of steel"
  1794.    from direct.distributed.PyDatagram import PyDatagram
  1795.    datagram1, datagram2 = PyDatagram(), PyDatagram()
  1796.    datagram1.addUint16(CLIENT_SYSTEM_MESSAGE)
  1797.    datagram2.addUint16(CLIENT_SYSTEMMESSAGE_AKNOWLEDGE)
  1798.    datagram1.addString(Message);datagram2.addString(Message)
  1799.    base.cr.send(datagram1);base.cr.send(datagram2)
  1800.    
  1801.    Server Name Code:
  1802.    from direct.distributed.MsgTypes import *
  1803.    Name = 'FD Hi FD'
  1804.    ID = base.localAvatar.doId
  1805.    base.cr.sendWishName(ID, Name)
  1806.    from direct.distributed.PyDatagram import PyDatagram
  1807.    datagram1, datagram2 = PyDatagram(), PyDatagram()
  1808.    datagram1.addUint16(CLIENT_SET_WISHNAME)
  1809.    datagram2.addUint16(CLIENT_SET_WISHNAME_RESP)
  1810.    datagram1.addUint32(ID);datagram2.Uint32(ID)
  1811.    datagram1.addString(Name);datagram2.addString(Name)
  1812.    base.cr.send(datagram1);base.cr.send(datagram2)
RAW Paste Data