This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 14th, 2013  |  syntax: None  |  size: 19.27 KB  |  views: 286  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -------------------------------------------------------------------------------------------------------------------
  2.     ~White Toon~
  3.  
  4. import toontown
  5. try:getGenderColorList
  6. except:getGenderColorList = toontown.makeatoon.ColorShop.ColorShop.getGenderColorList
  7. def returnColorList(self, *args):
  8.  return range(-1,26,1)
  9. toontown.makeatoon.ColorShop.ColorShop.getGenderColorList = returnColorList
  10.  
  11.  
  12. -------------------------------------------------------------------------------------------------------------------
  13.                           ~Black toon~(Clothing ticket way)
  14.  
  15.  
  16.  
  17. base.localAvatar.setDNAString('t\x01\x02\x01\x01\x5f\x1b\x54\x1b\x23\x1b\x1a\x00\x1a\x1a')
  18.  
  19.  
  20. -------------------------------------------------------------------------------------------------------------------
  21.                       ~Sellbot hq Lobby Raid~
  22.  
  23.  
  24. SellbotHQLobby = loader.loadModel("phase_9/models/cogHQ/SellbotHQLobby.bam")
  25. SellbotHQElevator = loader.loadModel("phase_9/models/cogHQ/cogHQ_elevator.bam")
  26. SellbotHQElevator.find('**/door_collisions').removeNode()
  27. SellbotHQLobby.find('**/doorFrameHoleRight').hide()
  28. SellbotHQElevator.find('**/flashing').removeNode()
  29. SellbotHQLobby.find('**/doorFrameHoleLeft').hide()
  30. render.find('**/toontownCentral').removeNode()
  31. SellbotHQLobby.find('**/rightDoor').hide()
  32. SellbotHQLobby.find('**/leftDoor').hide()
  33. SellbotHQElevator.reparentTo(render)
  34. SellbotHQElevator.setPos(0, -83, 27.8)
  35. SellbotHQElevator.setHpr(180, 0, 0)
  36. SellbotHQLobby.reparentTo(render)
  37. base.cr.sendSetZoneMsg(11100)
  38.  
  39.  
  40. -------------------------------------------------------------------------------------------------------------------
  41.                ~Fast Battle~
  42.  
  43.  
  44.  
  45. import __main__ # used for executions
  46. from direct.interval.IntervalGlobal import *
  47. from toontown.suit.DistributedSuit import DistributedSuit
  48. from toontown.battle import DistributedBattle
  49. faceOffHook = lambda self, ts, name, callback:self.d_faceOffDone(self)
  50. DistributedBattle.DistributedBattle._DistributedBattle__faceOff = faceOffHook
  51. try:_d_requestAttack
  52. except:_d_requestAttack = DistributedBattle.DistributedBattle.d_requestAttack
  53. def attackThem(self, toonId, track, level, av):
  54.     _d_requestAttack(self, toonId, track, level, av)
  55.     self.d_movieDone(toonId)
  56.     self.d_rewardDone(toonId)
  57. DistributedBattle.DistributedBattle.d_requestAttack = attackThem
  58.  
  59.  
  60. --------------------------------------------------------------------------------------------------------------------
  61.                     ~Hotkeys~
  62.  
  63.  
  64. base.accept("f1", base.localAvatar.b_setEmoteState, [1,1])
  65. base.accept("f2", base.localAvatar.b_setEmoteState, [14,1])
  66. base.accept("f3", base.localAvatar.b_setEmoteState, [15,1])
  67. base.accept("f4", base.localAvatar.b_setEmoteState, [17,1])
  68. base.accept("f5", base.localAvatar.b_setEmoteState, [18,1])
  69. base.accept("f6", base.localAvatar.b_setEmoteState, [20,1])
  70. base.accept("f10", base.localAvatar.b_setEmoteState, [22,1])
  71. base.accept("f11", base.localAvatar.b_setEmoteState, [23,1])
  72. base.accept("f12", base.localAvatar.b_setEmoteState, [24,1])
  73.  
  74. ------------------------------------------------------------------------------------------------------------------------
  75.                          ~Collisions~
  76.  
  77.  
  78. base.localAvatar.collisionsOff()           Collisions off
  79. base.localAvatar.collisionsOn            Collisions on
  80.  
  81. --------------------------------------------------------------------------------------------------------------------
  82.                              ~Anim~
  83.  
  84. base.localAvatar.b_setAnimState('neutral', -8.6)            ~Infinite laugh  emotion~
  85. base.localAvatar.b_setAnimState(('Flattened'))              ~Flat~
  86. base.localAvatar.b_setAnimState(('victory'))                ~Dance~
  87. base.localAvatar.b_setAnimState('Push')                     ~Push~
  88. base.localAvatar.b_setAnimState(('ScientistWork'))          ~Scientist Work~
  89. base.localAvatar.b_setAnimState(('ScientistPlay'))          ~Scientist Play(Rock paper scissors)~
  90. base.localAvatar.b_setAnimState(('ScientistEmcee'))         ~Scientist Emcee~
  91. base.localAvatar.b_setAnimState(('ScientistJealous'))       ~Scientist Jealous~
  92. base.localAvatar.b_setAnimState("victory", 10)              ~Fast Dance~
  93. base.localAvatar.b_setAnimState("victory", -1)              ~Reverse Dance~
  94. base.localAvatar.b_setAnimState(('dive'))                   ~Dive~
  95. base.localAvatar.b_setAnimState('swim')                     ~Swim~
  96. base.localAvatar.b_setAnimState(('Catching'))               ~Catching~
  97. base.localAvatar.b_setAnimState('GolfPuttLoop')             ~Golf~
  98. base.localAvatar.enterSitStart()                            ~Sit~
  99.  
  100.  
  101. -------------------------------------------------------------------------------------------------------------------
  102.                         ~District Teleportation~
  103.  
  104.  
  105.  
  106. base.localAvatar.book.pages[1].choseShard(522000000)                              ~Boingy Acres                  
  107. base.localAvatar.book.pages[1].choseShard(364000000)                              ~Boingy Bay
  108. base.localAvatar.book.pages[1].choseShard(650000000)                              ~Boingy Summit
  109. base.localAvatar.book.pages[1].choseShard(432000000)                              ~Boingyboro
  110. base.localAvatar.book.pages[1].choseShard(754000000)                              ~Bouncy Summit
  111. base.localAvatar.book.pages[1].choseShard(608000000)                              ~Crazy Grove                
  112. base.localAvatar.book.pages[1].choseShard(756000000)                              ~Crazy Hills
  113. base.localAvatar.book.pages[1].choseShard(658000000)                              ~Crazy Ham
  114. base.localAvatar.book.pages[1].choseShard(662000000)                              ~Funny Field
  115. base.localAvatar.book.pages[1].choseShard(712000000)                              ~Giggly Bay
  116. base.localAvatar.book.pages[1].choseShard(664000000)                              ~Giggly Groove
  117. base.localAvatar.book.pages[1].choseShard(616000000)                              ~Giggly Hills
  118. base.localAvatar.book.pages[1].choseShard(360000000)                              ~Giggly Point
  119. base.localAvatar.book.pages[1].choseShard(568000000)                              ~Gigglyfield
  120. base.localAvatar.book.pages[1].choseShard(410000000)                              ~Gigglyham
  121. base.localAvatar.book.pages[1].choseShard(620000000)                              ~Goofy Valley
  122. base.localAvatar.book.pages[1].choseShard(530000000)                              ~Goofyport
  123. base.localAvatar.book.pages[1].choseShard(434000000)                              ~Kooky Grove
  124. base.localAvatar.book.pages[1].choseShard(750000000)                              ~Kookyboro                  
  125. base.localAvatar.book.pages[1].choseShard(454000000)                              ~Loopy Harbour                
  126. base.localAvatar.book.pages[1].choseShard(726000000)                              ~Nutty Hills
  127. base.localAvatar.book.pages[1].choseShard(414000000)                              ~Nutty River Teleport
  128. base.localAvatar.book.pages[1].choseShard(686000000)                              ~Nutty Summit Teleport
  129. base.localAvatar.book.pages[1].choseShard(362000000)                              ~Nuttyville
  130. base.localAvatar.book.pages[1].choseShard(688000000)                              ~Nuttywood
  131. base.localAvatar.book.pages[1].choseShard(734000000)                              ~Silly Rapids
  132. base.localAvatar.book.pages[1].choseShard(632000000)                              ~Silly Valley
  133. base.localAvatar.book.pages[1].choseShard(316000000)                              ~Silly Ham Teleport
  134. base.localAvatar.book.pages[1].choseShard(450000000)                              ~Toon Valley Teleport
  135. base.localAvatar.book.pages[1].choseShard(636000000)                              ~Zany Acres~
  136. localAvatar.displayTalk("." + str(localAvatar.getLocation()))                     ~Shows Shards~
  137.  
  138.  
  139. -------------------------------------------------------------------------------------------------------------------
  140.                               ~Zones~
  141.  
  142. base.cr.sendSetZoneMsg(7000)                  ~Funny farm~
  143. base.cr.sendSetZoneMsg(2000)                  ~Toontown Central~
  144. base.cr.sendSetZoneMsg(3000)                  ~The Brrrgh ~
  145. base.cr.sendSetZoneMsg(3821)                  ~ Hibernation Vacation Shop in Brrrgh~
  146.  
  147. ----------------------------------------------------------------------------------------------------------------------
  148.                          ~Name Changer~ (Name approval way)
  149.  
  150. base.cr.sendWishName(localAvatar.doId, ('Name'))            
  151.  
  152. ------------------------------------------------------------------------------------------------------------------
  153.                      ~Following Code~(Type a toon's name instead of Spike)
  154.  
  155. base.localAvatar.collisionsOn()
  156. from direct.interval.IntervalGlobal import *
  157. toonFollowing = base.cr.doFindAll("Spike")
  158. def updatePos():
  159.     base.localAvatar.setX(toonFollowing[0].getX())
  160.     base.localAvatar.setY(toonFollowing[0].getY())
  161.     base.localAvatar.setZ(toonFollowing[0].getZ())
  162.     base.localAvatar.setH(toonFollowing[0].getH())
  163.     base.localAvatar.setP(toonFollowing[0].getP())
  164.     base.localAvatar.setR(toonFollowing[0].getR())
  165. def onMovment():
  166.   mov = Sequence()
  167.   mov.append(Func(updatePos))
  168.   mov.append(Func(onMovment))
  169.   mov.start()
  170. onMovment()
  171.  
  172. -----------------------------------------------------------------------------------------------------------------
  173.                          ~Heal in Battle~
  174.  
  175.  
  176. CurrZone = base.localAvatar.getZoneId()
  177. from toontown.distributed.ToontownClientRepository import ToontownClientRepository
  178. parentId = base.localAvatar.defaultShard
  179. event = base.cr.getNextSetZoneDoneEvent()
  180. base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 60000, 'OldSetZoneEmulator'], event)
  181. base.cr.doFindAll("Treasure")[0].d_requestGrab()
  182. base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
  183.  
  184. -----------------------------------------------------------------------------------------------------------------------
  185.                              ~Speedchat edits~
  186.  
  187.  
  188.                  
  189. base.localAvatar.setCustomMessages([20, 200, 310, 350, 360, 370, 390, 410, 420, 440, 800, 980, 1010, 2000, 2020, 2050, 2170, 2320, 2380, 2600, 2730, 2860, 3230, 3520, 4050, 4150, 7030, 7110])                      
  190.  
  191.  
  192.  
  193.  
  194. import toontown, otp
  195. ColorIndices = (20153, 20150, 4, 20327, 4101, 4202, 4207, 4301, 20004, 10000,20005,20007,20010,20341,20136,20105,20106,20108,20112,20115,20116,20118,20119,20121,20122,20131)
  196. ColorMenu = toontown.speedchat.TTSCCogMenu.TTSCCogMenu(ColorIndices)
  197. base.localAvatar.chatMgr.chatInputSpeedChat.colorMenu = otp.speedchat.SCMenuHolder.SCMenuHolder('SPIKE PHRASES', ColorMenu)
  198. base.localAvatar.chatMgr.chatInputSpeedChat.speedChat[2] = base.localAvatar.chatMgr.chatInputSpeedChat.colorMenu
  199.  
  200.  
  201. ------------------------------------------------------------------------------------------------------------------------
  202.                                     ~Clothes Stealing~
  203.  
  204.  
  205.  
  206.  
  207. closet = base.cr.doFindAll("closet")
  208. for closet in closet:
  209.     closet.popupChangeClothesGUI(1)             CLOSET STEAL
  210.  
  211.  
  212.  
  213.  
  214. npc = base.cr.doFindAll("Tailor")
  215. npc[0]._DistributedNPCTailor__enterConfirmLoss(34, 34)      Clothing shop steal
  216.  
  217.  
  218. ---------------------------------------------------------------------------------------------------------------------------
  219.                              ~Auto Fish~
  220.  
  221.  
  222.  
  223. fishCaught = 0
  224. fishCaught += 20
  225. from direct.interval.IntervalGlobal import *
  226. def catch():
  227.     fish = base.cr.doFindAll("FishingTarget")
  228.     for fish in fish:
  229.         print "Activated"
  230.    
  231.     fp = base.cr.doFindAll("FishingPond")
  232.     for fp in fp:
  233.         fp.d_hitTarget(fish)
  234. def sell():
  235.     base.localAvatar.setMaxFishTank(fishCaught)
  236.     fishman = base.cr.doFindAll("Fisherman")
  237.     for fishman in fishman:
  238.         fishid = fishman.doId
  239.     base.localAvatar.setMoney(base.localAvatar.bankMoney)
  240.     messenger.send('enterNPCToon-' + str(fishid), [1])
  241. def onGo():
  242.   seq = Sequence()
  243.   seq.append(Func(catch))
  244.   seq.append(Func(catch))
  245.   seq.append(Func(catch))
  246.   seq.append(Func(catch))
  247.   seq.append(Func(catch))
  248.   seq.append(Func(catch))
  249.   seq.append(Func(catch))
  250.   seq.append(Func(catch))
  251.   seq.append(Func(catch))
  252.   seq.append(Func(catch))
  253.   seq.append(Func(catch))
  254.   seq.append(Func(catch))
  255.   seq.append(Func(catch))
  256.   seq.append(Func(catch))
  257.   seq.append(Func(catch))
  258.   seq.append(Func(catch))
  259.   seq.append(Func(catch))
  260.   seq.append(Func(catch))
  261.   seq.append(Func(catch))
  262.   seq.append(Func(catch))
  263.   seq.append(Func(catch))
  264.   seq.append(Func(catch))
  265.   seq.append(Func(catch))
  266.   seq.append(Wait(1))
  267.   seq.append(Func(sell))
  268.   seq.start()
  269. onGo()
  270.  
  271.  
  272. --------------------------------------------------------------------------------------------------------------------------------------------
  273.                               ~Fast Kart~
  274.  
  275.  
  276. ttv = base.cr.doFindAll("Vehicle")
  277. speed = -200
  278. if "windResistance" in str(dir(ttv[0])):
  279.     ttv[0].windResistance.setAmplitude(speed)
  280. elif "windResistance" in str(dir(ttv[1])):
  281.     ttv[1].windResistance.setAmplitude(speed)
  282. elif "windResistance" in str(dir(ttv[2])):
  283.     ttv[2].windResistance.setAmplitude(speed)
  284. elif "windResistance" in str(dir(ttv[3])):
  285.     ttv[3].windResistance.setAmplitude(speed)
  286. else:
  287.     base.localAvatar.setSystemMessage('Racing Kart was not Found!')
  288.  
  289. --------------------------------------------------------------------------------------------------------------------------------------
  290.                    ~Lawbot hq raid~
  291.  
  292. LawbotHQLobby = loader.loadModel("phase_11/models/lawbotHQ/LB_CH_Lobby.bam")
  293. LawbotHQElevator = loader.loadModel("phase_11/models/lawbotHQ/LB_Elevator.bam")
  294. LawbotHQElevator.find('**/door_collisions').removeNode()
  295. LawbotHQLobby.find('**/doorFrameHoleRight').hide()
  296. LawbotHQElevator.find('**/flashing').removeNode()
  297. LawbotHQLobby.find('**/doorFrameHoleLeft').hide()
  298. render.find('**/toontownCentral').removeNode()
  299. LawbotHQLobby.find('**/rightDoor').hide()
  300. LawbotHQLobby.find('**/leftDoor').hide()
  301. LawbotHQElevator.reparentTo(render)
  302. LawbotHQElevator.setPos(0, -83, 27.8)
  303. LawbotHQElevator.setHpr(180, 0, 0)
  304. LawbotHQLobby.reparentTo(render)
  305. base.cr.sendSetZoneMsg(13100)
  306.  
  307.  
  308. import toontown, otp;suitType = 'bw'
  309. indices = range(otp.otpbase.OTPLocalizer.SCMenuCommonCogIndices[0], \
  310. otp.otpbase.OTPLocalizer.SCMenuCommonCogIndices[1], 1)
  311. customIndices = otp.otpbase.OTPLocalizer.SCMenuCustomCogIndices[suitType]
  312. indices = range(customIndices[0], customIndices[1], 1)
  313. base.localAvatar.chatMgr.chatInputSpeedChat.addCogMenu(indices)
  314.  
  315.  
  316. --------------------------------------------------------------------------------------------------------------------------------------
  317.                       ~Membership~
  318.  
  319.  
  320. import toontown
  321. def new():
  322.     return True
  323. def new2(*a,**k):
  324.     return 1
  325. base.cr.isPaid = new
  326. base.cr.allowSecretChat = new
  327. base.cr.isParentPasswordSet = new
  328. base.localAvatar.getGameAccess = new2
  329.  
  330.  
  331. ---------------------------------------------------------------------------------------------------------------------------------------
  332.                         ~Global Tp~
  333.  
  334.  
  335. base.localAvatar.setTeleportAccess([1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000])
  336. base.localAvatar.setHoodsVisited([1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000])
  337. base.localAvatar.book.pages[1].showPop = 1
  338.  
  339. ------------------------------------------------------------------------------------------------------------------------------------------
  340.                         ~Clone Code~
  341.  
  342.  
  343.  
  344. import toontown
  345. TeamTrapBot = 0
  346. from direct.distributed.PyDatagram import PyDatagram
  347. from direct.interval.IntervalGlobal import Func, Wait, Sequence
  348. from toontown.distributed.ToontownMsgTypes import CLIENT_SET_AVATAR
  349. global TeamTrapBot
  350. TeamTrapBot += 1
  351. TeamTrapXPosition = base.localAvatar.getX()
  352. TeamTrapYPosition = base.localAvatar.getY()
  353. TeamTrapZPosition = base.localAvatar.getZ()
  354. base.localAvatar.stopPosHprBroadcast()
  355. TEAM_______TRAP___TOON__SLOT______TARGET_ = base.cr.avList[1].id
  356. ORIGINAL___TEAM____TRAP____AVATAR____ID = base.localAvatar.doId
  357. ORIGINAL___TEAM____TRAP____AVATAR____ZONE = base.localAvatar.getZoneId()
  358. REFRESH__TEAM__TRAP__AVATAR__UP2DATE = PyDatagram()
  359. REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint16(CLIENT_SET_AVATAR)
  360. REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint32(TEAM_______TRAP___TOON__SLOT______TARGET_)
  361. base.localAvatar.doId = TEAM_______TRAP___TOON__SLOT______TARGET_
  362. base.cr.avData.id = TEAM_______TRAP___TOON__SLOT______TARGET_
  363. base.cr.sendDatagram(REFRESH__TEAM__TRAP__AVATAR__UP2DATE)
  364. base.cr.sendSetZoneMsg(ORIGINAL___TEAM____TRAP____AVATAR____ZONE)
  365. base.localAvatar.d_setParent(2)
  366. base.localAvatar.b_setAnimState('victory', 0.7)
  367. base.talkAssistant.sendOpenTalk('.-. ' * 15)
  368. base.localAvatar.sendUpdate('setPos', [TeamTrapXPosition, TeamTrapYPosition, TeamTrapZPosition])
  369. REFRESH__TEAM__TRAP__AVATAR__UP2DATE = PyDatagram()
  370. REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint16(CLIENT_SET_AVATAR)
  371. REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint32(ORIGINAL___TEAM____TRAP____AVATAR____ID)
  372. base.localAvatar.doId = ORIGINAL___TEAM____TRAP____AVATAR____ID
  373. base.cr.avData.id = ORIGINAL___TEAM____TRAP____AVATAR____ID
  374. base.cr.sendDatagram(REFRESH__TEAM__TRAP__AVATAR__UP2DATE)
  375. base.cr.sendSetZoneMsg(ORIGINAL___TEAM____TRAP____AVATAR____ZONE)
  376. base.localAvatar.d_setParent(2)
  377. base.localAvatar.startPosHprBroadcast()
  378.  
  379.  
  380. ----------------------------------------------------------------------------------------------------------------------------------
  381.                                      ~New Raid Code~
  382.  
  383.  
  384.  
  385. def doRaid():
  386.     houseZoneGet = base.localAvatar.getZoneId()
  387.     houseZoneGet += 10
  388.     houseZoneGet = int(houseZoneGet)
  389.     base.cr.sendSetZoneMsg(houseZoneGet)
  390. def stayRaid():
  391.     pass
  392. def leaveRaid():
  393.     base.localAvatar.setSystemMessage(1,'Raid failed, aborting...')
  394.     base.localAvatar._LocalToon__handleClarabelleButton()
  395. def checkForDoor():
  396.     isDoor = False
  397.     checkingObject = "Door"
  398.     distributedWantedObject = base.cr.doFindAll(checkingObject)
  399.     for distributedWantedObject in distributedWantedObject:
  400.         isDoor = True
  401.     if isDoor == True:
  402.         stayRaid()
  403.     elif isDoor == False:
  404.         leaveRaid()
  405.     else:
  406.         base.localAvatar.setSystemMessage(1,'Something fucked up the code, since the code returned something else than True or False.')
  407. def houseRaid():
  408.     raiding = Sequence()
  409.     raiding.append(Func(doRaid))
  410.     raiding.append(Wait(0.7))
  411.     raiding.append(Func(checkForDoor))
  412.     raiding.start()
  413. houseRaid()
  414.  
  415. ---------------------------------------------------------------------------------------------------------------------------------------
  416.                             ~Whisper to everyone~
  417.  
  418.  
  419.  
  420.  
  421. def broadcast(message="", includingSelf=True):
  422.     startingToon = 0
  423.     toonOn = 0
  424.     listToonIds = base.localAvatar.getNearbyPlayers(1000000000000000, includingSelf)
  425.     endingToon = len(listToonIds)
  426.     print listToonIds
  427.     while startingToon != endingToon:
  428.         base.talkAssistant.sendWhisperTalk(str(KYR SP33DY), listToonIds[toonOn])
  429.         print toonOn
  430.         toonOn = toonOn + 1
  431.         startingToon = startingToon + 1
  432.  
  433.  
  434.  
  435. ~After you used that code erase from the injector then use~
  436.  
  437.  
  438.  
  439. broadcast("KYR SP33DY ",True)
  440. from toontown.chat.TTTalkAssistant import TTTalkAssistant
  441. TalkAssistant = TTTalkAssistant()
  442. TalkAssistant.clearHistory()
clone this paste RAW Paste Data