Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- ~White Toon~
- import toontown
- try:getGenderColorList
- except:getGenderColorList = toontown.makeatoon.ColorShop.ColorShop.getGenderColorList
- def returnColorList(self, *args):
- return range(-1,26,1)
- toontown.makeatoon.ColorShop.ColorShop.getGenderColorList = returnColorList
- -------------------------------------------------------------------------------------------------------------------
- ~Black toon~(Clothing ticket way)
- base.localAvatar.setDNAString('t\x01\x02\x01\x01\x5f\x1b\x54\x1b\x23\x1b\x1a\x00\x1a\x1a')
- -------------------------------------------------------------------------------------------------------------------
- ~Sellbot hq Lobby Raid~
- SellbotHQLobby = loader.loadModel("phase_9/models/cogHQ/SellbotHQLobby.bam")
- SellbotHQElevator = loader.loadModel("phase_9/models/cogHQ/cogHQ_elevator.bam")
- SellbotHQElevator.find('**/door_collisions').removeNode()
- SellbotHQLobby.find('**/doorFrameHoleRight').hide()
- SellbotHQElevator.find('**/flashing').removeNode()
- SellbotHQLobby.find('**/doorFrameHoleLeft').hide()
- render.find('**/toontownCentral').removeNode()
- SellbotHQLobby.find('**/rightDoor').hide()
- SellbotHQLobby.find('**/leftDoor').hide()
- SellbotHQElevator.reparentTo(render)
- SellbotHQElevator.setPos(0, -83, 27.8)
- SellbotHQElevator.setHpr(180, 0, 0)
- SellbotHQLobby.reparentTo(render)
- base.cr.sendSetZoneMsg(11100)
- -------------------------------------------------------------------------------------------------------------------
- ~Fast Battle~
- import __main__ # used for executions
- from direct.interval.IntervalGlobal import *
- from toontown.suit.DistributedSuit import DistributedSuit
- from toontown.battle import DistributedBattle
- faceOffHook = lambda self, ts, name, callback:self.d_faceOffDone(self)
- DistributedBattle.DistributedBattle._DistributedBattle__faceOff = faceOffHook
- try:_d_requestAttack
- except:_d_requestAttack = DistributedBattle.DistributedBattle.d_requestAttack
- def attackThem(self, toonId, track, level, av):
- _d_requestAttack(self, toonId, track, level, av)
- self.d_movieDone(toonId)
- self.d_rewardDone(toonId)
- DistributedBattle.DistributedBattle.d_requestAttack = attackThem
- --------------------------------------------------------------------------------------------------------------------
- ~Hotkeys~
- base.accept("f1", base.localAvatar.b_setEmoteState, [1,1])
- base.accept("f2", base.localAvatar.b_setEmoteState, [14,1])
- base.accept("f3", base.localAvatar.b_setEmoteState, [15,1])
- base.accept("f4", base.localAvatar.b_setEmoteState, [17,1])
- base.accept("f5", base.localAvatar.b_setEmoteState, [18,1])
- base.accept("f6", base.localAvatar.b_setEmoteState, [20,1])
- base.accept("f10", base.localAvatar.b_setEmoteState, [22,1])
- base.accept("f11", base.localAvatar.b_setEmoteState, [23,1])
- base.accept("f12", base.localAvatar.b_setEmoteState, [24,1])
- ------------------------------------------------------------------------------------------------------------------------
- ~Collisions~
- base.localAvatar.collisionsOff() Collisions off
- base.localAvatar.collisionsOn Collisions on
- --------------------------------------------------------------------------------------------------------------------
- ~Anim~
- base.localAvatar.b_setAnimState('neutral', -8.6) ~Infinite laugh emotion~
- base.localAvatar.b_setAnimState(('Flattened')) ~Flat~
- base.localAvatar.b_setAnimState(('victory')) ~Dance~
- base.localAvatar.b_setAnimState('Push') ~Push~
- base.localAvatar.b_setAnimState(('ScientistWork')) ~Scientist Work~
- base.localAvatar.b_setAnimState(('ScientistPlay')) ~Scientist Play(Rock paper scissors)~
- base.localAvatar.b_setAnimState(('ScientistEmcee')) ~Scientist Emcee~
- base.localAvatar.b_setAnimState(('ScientistJealous')) ~Scientist Jealous~
- base.localAvatar.b_setAnimState("victory", 10) ~Fast Dance~
- base.localAvatar.b_setAnimState("victory", -1) ~Reverse Dance~
- base.localAvatar.b_setAnimState(('dive')) ~Dive~
- base.localAvatar.b_setAnimState('swim') ~Swim~
- base.localAvatar.b_setAnimState(('Catching')) ~Catching~
- base.localAvatar.b_setAnimState('GolfPuttLoop') ~Golf~
- base.localAvatar.enterSitStart() ~Sit~
- -------------------------------------------------------------------------------------------------------------------
- ~District Teleportation~
- base.localAvatar.book.pages[1].choseShard(522000000) ~Boingy Acres
- base.localAvatar.book.pages[1].choseShard(364000000) ~Boingy Bay
- base.localAvatar.book.pages[1].choseShard(650000000) ~Boingy Summit
- base.localAvatar.book.pages[1].choseShard(432000000) ~Boingyboro
- base.localAvatar.book.pages[1].choseShard(754000000) ~Bouncy Summit
- base.localAvatar.book.pages[1].choseShard(608000000) ~Crazy Grove
- base.localAvatar.book.pages[1].choseShard(756000000) ~Crazy Hills
- base.localAvatar.book.pages[1].choseShard(658000000) ~Crazy Ham
- base.localAvatar.book.pages[1].choseShard(662000000) ~Funny Field
- base.localAvatar.book.pages[1].choseShard(712000000) ~Giggly Bay
- base.localAvatar.book.pages[1].choseShard(664000000) ~Giggly Groove
- base.localAvatar.book.pages[1].choseShard(616000000) ~Giggly Hills
- base.localAvatar.book.pages[1].choseShard(360000000) ~Giggly Point
- base.localAvatar.book.pages[1].choseShard(568000000) ~Gigglyfield
- base.localAvatar.book.pages[1].choseShard(410000000) ~Gigglyham
- base.localAvatar.book.pages[1].choseShard(620000000) ~Goofy Valley
- base.localAvatar.book.pages[1].choseShard(530000000) ~Goofyport
- base.localAvatar.book.pages[1].choseShard(434000000) ~Kooky Grove
- base.localAvatar.book.pages[1].choseShard(750000000) ~Kookyboro
- base.localAvatar.book.pages[1].choseShard(454000000) ~Loopy Harbour
- base.localAvatar.book.pages[1].choseShard(726000000) ~Nutty Hills
- base.localAvatar.book.pages[1].choseShard(414000000) ~Nutty River Teleport
- base.localAvatar.book.pages[1].choseShard(686000000) ~Nutty Summit Teleport
- base.localAvatar.book.pages[1].choseShard(362000000) ~Nuttyville
- base.localAvatar.book.pages[1].choseShard(688000000) ~Nuttywood
- base.localAvatar.book.pages[1].choseShard(734000000) ~Silly Rapids
- base.localAvatar.book.pages[1].choseShard(632000000) ~Silly Valley
- base.localAvatar.book.pages[1].choseShard(316000000) ~Silly Ham Teleport
- base.localAvatar.book.pages[1].choseShard(450000000) ~Toon Valley Teleport
- base.localAvatar.book.pages[1].choseShard(636000000) ~Zany Acres~
- localAvatar.displayTalk("." + str(localAvatar.getLocation())) ~Shows Shards~
- -------------------------------------------------------------------------------------------------------------------
- ~Zones~
- base.cr.sendSetZoneMsg(7000) ~Funny farm~
- base.cr.sendSetZoneMsg(2000) ~Toontown Central~
- base.cr.sendSetZoneMsg(3000) ~The Brrrgh ~
- base.cr.sendSetZoneMsg(3821) ~ Hibernation Vacation Shop in Brrrgh~
- ----------------------------------------------------------------------------------------------------------------------
- ~Name Changer~ (Name approval way)
- base.cr.sendWishName(localAvatar.doId, ('Name'))
- ------------------------------------------------------------------------------------------------------------------
- ~Following Code~(Type a toon's name instead of Spike)
- base.localAvatar.collisionsOn()
- from direct.interval.IntervalGlobal import *
- toonFollowing = base.cr.doFindAll("Spike")
- def updatePos():
- base.localAvatar.setX(toonFollowing[0].getX())
- base.localAvatar.setY(toonFollowing[0].getY())
- base.localAvatar.setZ(toonFollowing[0].getZ())
- base.localAvatar.setH(toonFollowing[0].getH())
- base.localAvatar.setP(toonFollowing[0].getP())
- base.localAvatar.setR(toonFollowing[0].getR())
- def onMovment():
- mov = Sequence()
- mov.append(Func(updatePos))
- mov.append(Func(onMovment))
- mov.start()
- onMovment()
- -----------------------------------------------------------------------------------------------------------------
- ~Heal in Battle~
- CurrZone = base.localAvatar.getZoneId()
- from toontown.distributed.ToontownClientRepository import ToontownClientRepository
- parentId = base.localAvatar.defaultShard
- event = base.cr.getNextSetZoneDoneEvent()
- base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, 60000, 'OldSetZoneEmulator'], event)
- base.cr.doFindAll("Treasure")[0].d_requestGrab()
- base.cr._addInterestOpToQueue(ToontownClientRepository.SetInterest, [parentId, CurrZone, 'OldSetZoneEmulator'], event)
- -----------------------------------------------------------------------------------------------------------------------
- ~Speedchat edits~
- 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])
- import toontown, otp
- 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)
- ColorMenu = toontown.speedchat.TTSCCogMenu.TTSCCogMenu(ColorIndices)
- base.localAvatar.chatMgr.chatInputSpeedChat.colorMenu = otp.speedchat.SCMenuHolder.SCMenuHolder('SPIKE PHRASES', ColorMenu)
- base.localAvatar.chatMgr.chatInputSpeedChat.speedChat[2] = base.localAvatar.chatMgr.chatInputSpeedChat.colorMenu
- ------------------------------------------------------------------------------------------------------------------------
- ~Clothes Stealing~
- closet = base.cr.doFindAll("closet")
- for closet in closet:
- closet.popupChangeClothesGUI(1) CLOSET STEAL
- npc = base.cr.doFindAll("Tailor")
- npc[0]._DistributedNPCTailor__enterConfirmLoss(34, 34) Clothing shop steal
- ---------------------------------------------------------------------------------------------------------------------------
- ~Auto Fish~
- fishCaught = 0
- fishCaught += 20
- from direct.interval.IntervalGlobal import *
- def catch():
- fish = base.cr.doFindAll("FishingTarget")
- for fish in fish:
- print "Activated"
- fp = base.cr.doFindAll("FishingPond")
- for fp in fp:
- fp.d_hitTarget(fish)
- def sell():
- base.localAvatar.setMaxFishTank(fishCaught)
- fishman = base.cr.doFindAll("Fisherman")
- for fishman in fishman:
- fishid = fishman.doId
- base.localAvatar.setMoney(base.localAvatar.bankMoney)
- messenger.send('enterNPCToon-' + str(fishid), [1])
- def onGo():
- seq = Sequence()
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Func(catch))
- seq.append(Wait(1))
- seq.append(Func(sell))
- seq.start()
- onGo()
- --------------------------------------------------------------------------------------------------------------------------------------------
- ~Fast Kart~
- ttv = base.cr.doFindAll("Vehicle")
- speed = -200
- if "windResistance" in str(dir(ttv[0])):
- ttv[0].windResistance.setAmplitude(speed)
- elif "windResistance" in str(dir(ttv[1])):
- ttv[1].windResistance.setAmplitude(speed)
- elif "windResistance" in str(dir(ttv[2])):
- ttv[2].windResistance.setAmplitude(speed)
- elif "windResistance" in str(dir(ttv[3])):
- ttv[3].windResistance.setAmplitude(speed)
- else:
- base.localAvatar.setSystemMessage('Racing Kart was not Found!')
- --------------------------------------------------------------------------------------------------------------------------------------
- ~Lawbot hq raid~
- LawbotHQLobby = loader.loadModel("phase_11/models/lawbotHQ/LB_CH_Lobby.bam")
- LawbotHQElevator = loader.loadModel("phase_11/models/lawbotHQ/LB_Elevator.bam")
- LawbotHQElevator.find('**/door_collisions').removeNode()
- LawbotHQLobby.find('**/doorFrameHoleRight').hide()
- LawbotHQElevator.find('**/flashing').removeNode()
- LawbotHQLobby.find('**/doorFrameHoleLeft').hide()
- render.find('**/toontownCentral').removeNode()
- LawbotHQLobby.find('**/rightDoor').hide()
- LawbotHQLobby.find('**/leftDoor').hide()
- LawbotHQElevator.reparentTo(render)
- LawbotHQElevator.setPos(0, -83, 27.8)
- LawbotHQElevator.setHpr(180, 0, 0)
- LawbotHQLobby.reparentTo(render)
- base.cr.sendSetZoneMsg(13100)
- import toontown, otp;suitType = 'bw'
- indices = range(otp.otpbase.OTPLocalizer.SCMenuCommonCogIndices[0], \
- otp.otpbase.OTPLocalizer.SCMenuCommonCogIndices[1], 1)
- customIndices = otp.otpbase.OTPLocalizer.SCMenuCustomCogIndices[suitType]
- indices = range(customIndices[0], customIndices[1], 1)
- base.localAvatar.chatMgr.chatInputSpeedChat.addCogMenu(indices)
- --------------------------------------------------------------------------------------------------------------------------------------
- ~Membership~
- import toontown
- def new():
- return True
- def new2(*a,**k):
- return 1
- base.cr.isPaid = new
- base.cr.allowSecretChat = new
- base.cr.isParentPasswordSet = new
- base.localAvatar.getGameAccess = new2
- ---------------------------------------------------------------------------------------------------------------------------------------
- ~Global Tp~
- base.localAvatar.setTeleportAccess([1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000])
- base.localAvatar.setHoodsVisited([1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000])
- base.localAvatar.book.pages[1].showPop = 1
- ------------------------------------------------------------------------------------------------------------------------------------------
- ~Clone Code~
- import toontown
- TeamTrapBot = 0
- from direct.distributed.PyDatagram import PyDatagram
- from direct.interval.IntervalGlobal import Func, Wait, Sequence
- from toontown.distributed.ToontownMsgTypes import CLIENT_SET_AVATAR
- global TeamTrapBot
- TeamTrapBot += 1
- TeamTrapXPosition = base.localAvatar.getX()
- TeamTrapYPosition = base.localAvatar.getY()
- TeamTrapZPosition = base.localAvatar.getZ()
- base.localAvatar.stopPosHprBroadcast()
- TEAM_______TRAP___TOON__SLOT______TARGET_ = base.cr.avList[1].id
- ORIGINAL___TEAM____TRAP____AVATAR____ID = base.localAvatar.doId
- ORIGINAL___TEAM____TRAP____AVATAR____ZONE = base.localAvatar.getZoneId()
- REFRESH__TEAM__TRAP__AVATAR__UP2DATE = PyDatagram()
- REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint16(CLIENT_SET_AVATAR)
- REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint32(TEAM_______TRAP___TOON__SLOT______TARGET_)
- base.localAvatar.doId = TEAM_______TRAP___TOON__SLOT______TARGET_
- base.cr.avData.id = TEAM_______TRAP___TOON__SLOT______TARGET_
- base.cr.sendDatagram(REFRESH__TEAM__TRAP__AVATAR__UP2DATE)
- base.cr.sendSetZoneMsg(ORIGINAL___TEAM____TRAP____AVATAR____ZONE)
- base.localAvatar.d_setParent(2)
- base.localAvatar.b_setAnimState('victory', 0.7)
- base.talkAssistant.sendOpenTalk('.-. ' * 15)
- base.localAvatar.sendUpdate('setPos', [TeamTrapXPosition, TeamTrapYPosition, TeamTrapZPosition])
- REFRESH__TEAM__TRAP__AVATAR__UP2DATE = PyDatagram()
- REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint16(CLIENT_SET_AVATAR)
- REFRESH__TEAM__TRAP__AVATAR__UP2DATE.addUint32(ORIGINAL___TEAM____TRAP____AVATAR____ID)
- base.localAvatar.doId = ORIGINAL___TEAM____TRAP____AVATAR____ID
- base.cr.avData.id = ORIGINAL___TEAM____TRAP____AVATAR____ID
- base.cr.sendDatagram(REFRESH__TEAM__TRAP__AVATAR__UP2DATE)
- base.cr.sendSetZoneMsg(ORIGINAL___TEAM____TRAP____AVATAR____ZONE)
- base.localAvatar.d_setParent(2)
- base.localAvatar.startPosHprBroadcast()
- ----------------------------------------------------------------------------------------------------------------------------------
- ~New Raid Code~
- def doRaid():
- houseZoneGet = base.localAvatar.getZoneId()
- houseZoneGet += 10
- houseZoneGet = int(houseZoneGet)
- base.cr.sendSetZoneMsg(houseZoneGet)
- def stayRaid():
- pass
- def leaveRaid():
- base.localAvatar.setSystemMessage(1,'Raid failed, aborting...')
- base.localAvatar._LocalToon__handleClarabelleButton()
- def checkForDoor():
- isDoor = False
- checkingObject = "Door"
- distributedWantedObject = base.cr.doFindAll(checkingObject)
- for distributedWantedObject in distributedWantedObject:
- isDoor = True
- if isDoor == True:
- stayRaid()
- elif isDoor == False:
- leaveRaid()
- else:
- base.localAvatar.setSystemMessage(1,'Something fucked up the code, since the code returned something else than True or False.')
- def houseRaid():
- raiding = Sequence()
- raiding.append(Func(doRaid))
- raiding.append(Wait(0.7))
- raiding.append(Func(checkForDoor))
- raiding.start()
- houseRaid()
- ---------------------------------------------------------------------------------------------------------------------------------------
- ~Whisper to everyone~
- def broadcast(message="", includingSelf=True):
- startingToon = 0
- toonOn = 0
- listToonIds = base.localAvatar.getNearbyPlayers(1000000000000000, includingSelf)
- endingToon = len(listToonIds)
- print listToonIds
- while startingToon != endingToon:
- base.talkAssistant.sendWhisperTalk(str(KYR SP33DY), listToonIds[toonOn])
- print toonOn
- toonOn = toonOn + 1
- startingToon = startingToon + 1
- ~After you used that code erase from the injector then use~
- broadcast("KYR SP33DY ",True)
- from toontown.chat.TTTalkAssistant import TTTalkAssistant
- TalkAssistant = TTTalkAssistant()
- TalkAssistant.clearHistory()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement