base.cr.sendSetZoneMsg(6969) from pandac.PandaModules import * from direct.actor.Actor import Actor from direct.showbase.DirectObject import DirectObject from direct.showbase.ShowBase import ShowBase from direct.interval.IntervalGlobal import Func, Wait, Sequence #Toon HQ Message Sequence def toonHQMsg1(): base.localAvatar.setSystemMessage(1,'You Have Just Activated A Land Made By greencathacks') def toonHQMsg2(): base.localAvatar.setSystemMessage(1,'Have Fun!') def msgHQ(): hqs = Sequence() hqs.append(Func(toonHQMsg1)) hqs.append(Wait(1)) hqs.append(Func(toonHQMsg2)) hqs.start() msgHQ() #Teleportation Sequence def openBook(): base.localAvatar.b_setAnimState('OpenBook') def readBook(): base.localAvatar.b_setAnimState('ReadBook') def closeBook(): base.localAvatar.b_setAnimState('CloseBook') def teleportOut(): base.localAvatar.b_setAnimState('TeleportOut') def teleportIn(): base.localAvatar.setXYZH(744, 1044, 142, -766) base.localAvatar.b_setAnimState('TeleportIn') def teleportAnims(): tps = Sequence() tps.append(Wait(2)) tps.append(Func(openBook)) tps.append(Wait(1)) tps.append(Func(readBook)) tps.append(Wait(1.0)) tps.append(Func(closeBook)) tps.append(Wait(2.0)) tps.append(Func(teleportOut)) tps.append(Wait(4.0)) tps.append(Func(teleportIn)) tps.start() teleportAnims() #Land Hotkeys def collisionsOff(): base.localAvatar.collisionsOff() base.localAvatar.setSystemMessage(base.localAvatar.doId, "Collisions De-activated!") base.accept("f1", collisionsOn, []) def collisionsOn(): base.localAvatar.collisionsOn() base.localAvatar.setSystemMessage(base.localAvatar.doId, "Collisions Activated!") base.accept("f1", collisionsOff, []) base.accept("f1", collisionsOff, []) #Sky Color gloves = loader.loadTexture("phase_5.5/maps/windowView_Stars2.jpg") base.localAvatar.findAllMatches('**/').setTexture(gloves, 1) base.localAvatar.findAllMatches('**/Sky').setTexture(gloves, 1) #Land Music bgMusic1 = base.loader.loadSfx("phase_2/audio/will_and_elizabeth.mp3") bgMusic1.setLoop(True) bgMusic1.play() #Land Objects pier = loader.loadModel("phase_5/models/islands/pier_1_kings.bam") pier.reparentTo(render) pier.setPos(906, 1212, 126) pier.setHpr(90, 0, 0)