Scrap/Toontown Buttons/Official Jake Buttons.txt
Richard Wright 5f35433c9b Scrap codes
2015-03-01 17:03:11 +00:00

423 lines
No EOL
14 KiB
Text

from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode
bk_text = "Button Hack Ready"
textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)
def normal1():
bk_text = "Button Hack Ready"
textObject.setText(bk_text)
def setText1():
bk_text = "Collisions Off"
textObject.setText(bk_text)
base.localAvatar.collisionsOff()
var = 0
def setText2():
bk_text = "Suit"
textObject.setText(bk_text)
base.localAvatar.setDNAString('t\x01\x02\x01\x01\x37\x09\x61\x09\x29\x09\x14\x00\x14\x14')
var = 1
def setText3():
bk_text = "Laff"
textObject.setText(bk_text)
ttt = base.cr.doFindAll("TTTreasure")
for ttt in base.cr.doFindAll("TTTreasure"):
ttt.d_requestGrab()
var = 1
def setText4():
bk_text = "Die"
textObject.setText(bk_text)
base.localAvatar.d_squish(3)
var = 1
def setText5():
bk_text = "Collisons On"
textObject.setText(bk_text)
base.localAvatar.collisionsOn()
var = 0
def setText6():
bk_text = "Member"
textObject.setText(bk_text)
def new():
return True
base.cr.isPaid = new
base.cr.isParentPasswordSet = new
var = 1
def setText7():
bk_text = "Splash"
toon = base.localAvatar.getX()
toon2 = base.localAvatar.getY()
toon3 = base.localAvatar.getZ()
base.localAvatar.d_playSplashEffect(toon, toon2, toon3)
base.localAvatar.playSplashEffect(toon, toon2, toon3)
var = 1
def setText8():
bk_text = "Funny"
textObject.setText(bk_text)
base.cr.sendSetZoneMsg(7000)
var = 1
def setText9():
bk_text = "Port Out"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState('TeleportOut')
var = 1
def setText10():
bk_text = "Port In"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState('TeleportIn')
var = 1
def setText11():
bk_text = "Global"
textObject.setText(bk_text)
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
var = 1
def setText12():
bk_text = "Fail"
textObject.setText(bk_text)
base.talkAssistant.sendOpenTalk('Fail\n' *1)
var = 1
def setText13():
bk_text = "Sit"
textObject.setText(bk_text)
base.localAvatar.enterSitStart()
var = 1
def setText14():
bk_text = "Dance"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState("victory", 10)
var = 1
def setText15():
bk_text = "Swim"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState('swim')
var = 1
def setText16():
bk_text = "Push"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState('Push')
var = 1
def setText17():
bk_text = "Squish"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState('Squish')
var = 1
def setText18():
bk_text = "Delighted"
textObject.setText(bk_text)
base.accept("f11", base.localAvatar.b_setEmoteState, [22,1])
var = 1
def setText19():
bk_text = "Laugh"
textObject.setText(bk_text)
base.localAvatar.b_setSC(20320)
var = 1
def setText20():
bk_text = "Bored"
textObject.setText(bk_text)
base.localAvatar.b_setSC(20283)
var = 1
def setText21():
bk_text = "Work"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState(('ScientistWork'))
var = 1
def setText22():
bk_text = "Play"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState(('ScientistPlay'))
var = 1
def setText23():
bk_text = "Jealous"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState(('ScientistJealous'))
var = 1
def setText24():
bk_text = "Victory"
textObject.setText(bk_text)
base.localAvatar.b_setAnimState('victory', -0.6)
var = 1
def setText25():
bk_text = "Normal"
textObject.setText(bk_text)
base.localAvatar.setHpr((0,0,0))
var = 1
def setText26():
bk_text = "UpD"
textObject.setText(bk_text)
base.localAvatar.setHpr((0,0,180))
base.localAvatar.collisionsOff()
var = 1
def setText27():
bk_text = "SID"
textObject.setText(bk_text)
base.localAvatar.setHpr(0,0,90)
base.localAvatar.collisionsOff()
var = 1
base.accept("escape", normal1, [])
b1 = DirectButton(text = ("C.Off", "c.off", "c.off", "C.Off"), scale=.06, pos = (-.98,-0,-.95), command=setText1)
b2 = DirectButton(text = ("Suit", "suit", "suit", "Suit"), scale=.06, pos = (-.8,-0,-.95), command=setText2)
b3 = DirectButton(text = ("Laff", "laff", "laff", "Laff"), scale=.06, pos = (-.6,-0,-.95), command=setText3)
b4 = DirectButton(text = ("Die", "-3", "-3", "Die"), scale=.06, pos = (-.28,-0,-.95), command=setText4)
b5 = DirectButton(text = ("C.On", "c.on", "c.on", "C.On"), scale=.06, pos = (-0,-0,-.95), command=setText5)
b6 = DirectButton(text = ("Mem", "Mem", "Mem", "Mem"), scale=.06, pos = (.16,-0,-.95), command=setText6)
b7 = DirectButton(text = ("Splash", "Splash", "Splash", "Splash"), scale=.07, pos = (.35,-0,-.95), command=setText7)
b8 = DirectButton(text = ("Funny", "farms", "farms", "Funny"), scale=.06, pos = (.565,-0,-.95), command=setText8)
b9 = DirectButton(text = ("TPo", "ani", "ani", "TPo"), scale=.05, pos = (-.18,-.0,-.97), command=setText9)
b10= DirectButton(text = ("TPi", "ani", "ani", "TPi"), scale=.05, pos = (-.37,-.0,-.97), command=setText10)
b11= DirectButton(text = ("Global", "tp", "tp", "Global"), scale=.07, pos = (-.43,-.0,-.90), command=setText11)
b12= DirectButton(text = ("Fail", "fail", "fail", "Fail"), scale=.06, pos = (-.14,-.0,-.90), command=setText12)
b13= DirectButton(text = ("Sit", "sit", "sit", "Sit"), scale=.06, pos = (-.98,-.0,-.87), command=setText13)
b14= DirectButton(text = ("Dance", "Fast", "Fast", "Dance"), scale=.06, pos = (.15,-.0,-.86), command=setText14)
b15= DirectButton(text = ("Swim", "Emot", "Emot", "Swim"), scale=.06, pos = (-.70,-.0,.93), command=setText15)
b16= DirectButton(text = ("Push", "Emot", "Emot", "Push"), scale=.06, pos = (-.55,-.0,.93), command=setText16)
b17= DirectButton(text = ("Squish", "Emot", "Emot", "Squish"), scale=.05, pos = (-.40,-.0,.94), command=setText17)
b18= DirectButton(text = ("Delighted", "F11", "F11", "Delighted"), scale=.05, pos = (-.22,-.0,.94), command=setText18)
b19= DirectButton(text = ("Robbed", "Robbed", "Robbed", "Robbed"), scale=.06, pos = (-.0,-.0,.93), command=setText19)
b20= DirectButton(text = ("Bored", "Bored", "Bored", "Bored"), scale=.06, pos = (.20,-.0,.93), command=setText20)
b21= DirectButton(text = ("Work*", "Work", "Work", "Work*"), scale=.06, pos = (.38,-.0,.93), command=setText21)
b22= DirectButton(text = ("Play*", "Play", "Play", "Play*"), scale=.05, pos = (.54,-.0,.94), command=setText22)
b23= DirectButton(text = ("Jealous*", "Jealous", "Jealous", "Jealous*"), scale=.05, pos = (.71,-.0,.94), command=setText23)
b24 = DirectButton(text = ("Dance", "Slow", "Slow", "Dance"), scale=.06, pos = (.71,-0,-.77), command=setText24)
b25 = DirectButton(text = ("Normal", "Pos", "Pos", "Normal"), scale=.05, pos = (-.99999,-.0,.86), command=setText25)
b26 = DirectButton(text = ("Upside", "Down", "Down", "Upside"), scale=.05, pos = (-.83,-.0,.86), command=setText26)
b27 = DirectButton(text = ("Side", "Pos", "Pos", "Side"), scale=.06, pos = (-.68,-.0,.86), command=setText27)
from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode
bk_text = ""
textObject = OnscreenText(text = bk_text, pos = (3,3),
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)
def setText():
bk_text = "ZoneFound"
textObject.setText(bk_text)
houseZoneGet = base.localAvatar.getZoneId()
houseZoneGet += 10
houseZoneGet = int(houseZoneGet)
base.cr.sendSetZoneMsg(houseZoneGet)
b = DirectButton(text = ("Raid House", "Activate", "Activate", "Raid House"), scale=.06, pos = (-.75,-0,-.87), command=setText)
from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode
bk_text = " "
textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)
def normal1():
bk_text = " "
textObject.setText(bk_text)
def setText1():
bk_text = "Purple"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2000)
var = 0
def setText2():
bk_text = "BLUE!"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2001)
var = 1
def setText3():
bk_text = "Cyan"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2002)
var = 1
def setText4():
bk_text = "Teal"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2003)
var = 1
def setText5():
bk_text = "Green"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2004)
var = 0
def setText6():
bk_text = "Yellow"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2005)
var = 1
def setText7():
bk_text = "Orange"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2006)
var = 1
def setText8():
bk_text = "Red"
textObject.setText(bk_text)
base.localAvatar.b_setSC(2007)
var = 1
base.accept("escape", normal1, [])
b1 = DirectButton(text = ("Purple", "Purple", "Purple", "Purple"), scale=.06, pos = (-.99,-0,-.78), command=setText1)
b2 = DirectButton(text = ("Blue", "Blue", "Blue", "Blue"), scale=.06, pos = (-.8,-0,-.79), command=setText2)
b3 = DirectButton(text = ("Cyan", "Cyan", "Cyan", "Cyan"), scale=.06, pos = (-.6,-0,-.78), command=setText3)
b4 = DirectButton(text = ("Teal", "Teal", "Teal", "Teal"), scale=.06, pos = (-.4,-0,-.81), command=setText4)
b5 = DirectButton(text = ("Green", "Green", "Green", "Green"), scale=.06, pos = (-.2,-0,-.80), command=setText5)
b6 = DirectButton(text = ("Yellow", "Yellow", "Yellow", "Yellow"), scale=.06, pos = (.1,-0,-.78), command=setText6)
b7 = DirectButton(text = ("Orange", "Orange", "Orange", "Orange"), scale=.06, pos = (.35,-0,-.80), command=setText7)
b8 = DirectButton(text = ("Red", "Red", "Red", "Red"), scale=.07, pos = (.53,-0,-.80), command=setText8)
from direct.interval.IntervalGlobal import *
def spinSetup():
height = base.localAvatar.getZ()
base.localAvatar.collisionsOff()
base.localAvatar.setZ(height + 6)
def spinOne():
base.localAvatar.setHpr(0,10,0)
def spinTwo():
base.localAvatar.setHpr(0,30,0)
def spinThree():
base.localAvatar.setHpr(0,50,0)
def spinFour():
base.localAvatar.setHpr(0,70,0)
def spinFive():
base.localAvatar.setHpr(0,90,0)
def spinSix():
base.localAvatar.setHpr(0,110,0)
def spinSeven():
base.localAvatar.setHpr(0,130,0)
def spinEight():
base.localAvatar.setHpr(0,150,0)
def spinNine():
base.localAvatar.setHpr(0,170,0)
def spinTen():
base.localAvatar.setHpr(0,190,0)
def spinEleven():
base.localAvatar.setHpr(0,210,0)
def spinTwelve():
base.localAvatar.setHpr(0,230,0)
def spinThirteen():
base.localAvatar.setHpr(0,250,0)
def spinFourteen():
base.localAvatar.setHpr(0,270,0)
def spinFifteen():
base.localAvatar.setHpr(0,290,0)
def spinSixteen():
base.localAvatar.setHpr(0,310,0)
def spinSeventeen():
base.localAvatar.setHpr(0,330,0)
def spinEighteen():
base.localAvatar.setHpr(0,0,0)
def spinEnd():
base.localAvatar.collisionsOn()
def spinOnTime():
seq = Sequence()
seq.append(Func(spinSetup))
seq.append(Wait(.1))
seq.append(Func(spinOne))
seq.append(Wait(.1))
seq.append(Func(spinTwo))
seq.append(Wait(.1))
seq.append(Func(spinThree))
seq.append(Wait(.1))
seq.append(Func(spinFour))
seq.append(Wait(.1))
seq.append(Func(spinFive))
seq.append(Wait(.1))
seq.append(Func(spinSix))
seq.append(Wait(.1))
seq.append(Func(spinSeven))
seq.append(Wait(.1))
seq.append(Func(spinEight))
seq.append(Wait(.1))
seq.append(Func(spinNine))
seq.append(Wait(.1))
seq.append(Func(spinTen))
seq.append(Wait(.1))
seq.append(Func(spinEleven))
seq.append(Wait(.1))
seq.append(Func(spinTwelve))
seq.append(Wait(.1))
seq.append(Func(spinThirteen))
seq.append(Wait(.1))
seq.append(Func(spinFourteen))
seq.append(Wait(.1))
seq.append(Func(spinFifteen))
seq.append(Wait(.1))
seq.append(Func(spinSixteen))
seq.append(Wait(.1))
seq.append(Func(spinSeventeen))
seq.append(Wait(.1))
seq.append(Func(spinEighteen))
seq.append(Wait(.2))
seq.append(Func(spinEnd))
seq.start()
bot1 = DirectButton(text = ("Spin", "Spin", "Spin", "Spin"), scale=.06, pos = (.70,0,-.85), command=spinOnTime)
def bFive():
base.localAvatar.b_setSC(20136)
b5 = DirectButton(text = ("Raid!", "Raid!", "Raid!", "Raid!"), scale=.05, pos = (-.0,0,-.87), command=bFive)
from direct.interval.IntervalGlobal import *
def b28():
base.localAvatar.physControls.avatarControlForwardSpeed = 50
def b29():
base.localAvatar.physControls.avatarControlJumpForce = 60
b28 = DirectButton(text = ("Speed", "Run", "Run", "Speed"), scale=.05, pos = (-.99999,-.0,.94), command=b28)
b29 = DirectButton(text = ("Jump", "High", "High", "Jump"), scale=.05, pos = (-.85,-.0,.94), command=b29)
def whisperall(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(message), listToonIds[toonOn])
print toonOn
toonOn = toonOn + 1
startingToon = startingToon + 1
def b1():
whisperall('Hi! \n' * 25, True)
b1 = DirectButton(text = ("Hi!", "xD", "xD", "Hi!"), scale=.06, pos = (.86,-.0,.94), command=b1)