예제 #1
0
 def OnServerInitComplete(self):
     xRandom.seed((PtGetDniTime() % 256))
     x = 1
     for resp in RespFishPaths:
         randPath = xRandom.randint(0, (len(listPaths) - 1))
         initPath = listPaths[randPath]
         print 'lakiCreatures.OnAgeDataInitialized(): fish #',
         print x,
         print ' starts with path: ',
         print initPath
         resp.run(self.key, state=('%s' % initPath))
         x += 1
     x = 1
     for fish in RespFishBehs:
         randBeh = xRandom.randint(0, (len(listBehs) - 1))
         initBeh = listBehs[randBeh]
         print 'lakiCreatures.OnAgeDataInitialized(): fish #',
         print x,
         print ' starts with beh: ',
         print initBeh
         fish.run(self.key, state=('%s' % initBeh))
         x += 1
     
     # force the bird over the network, to make sure it's ok to everyone
     soBird.value.netForce(1)
예제 #2
0
    def OnFirstUpdate(self):
        xRandom.seed()
        xRandom.setmaxseries(2)

        vault = ptVault()
        entry = vault.findChronicleEntry("JourneyClothProgress")

        if type(entry) == type(None):
            PtDebugPrint("DEBUG: xJourneyClothsGen2.OnFirstUpdate: Did not find JourneyClothProgress chronicle...creating")
            vault.addChronicleEntry("JourneyClothProgress",0,"")
    def OnFirstUpdate(self):
        xRandom.seed()
        xRandom.setmaxseries(2)

        vault = ptVault()
        entry = vault.findChronicleEntry("JourneyClothProgress")

        if type(entry) == type(None):
            PtDebugPrint("DEBUG: xJourneyClothsGen2.OnFirstUpdate: Did not find JourneyClothProgress chronicle...creating")
            vault.addChronicleEntry("JourneyClothProgress",0,"")
예제 #4
0
파일: dsntQuake.py 프로젝트: Jrius/Drizzle
 def OnServerInitComplete(self):
     xRandom.seed((PtGetDniTime() % 256))
     whrandom.seed()
     PtClearTimerCallbacks(self.key)
     respBaseStop.run(self.key, fastforward=1)
     respPeakStop.run(self.key, fastforward=1)
     self.NextQuakeDelay()
     ageSDL = PtGetAgeSDL()
     ageSDL.sendToClients(sdlCanQuake.value)
     ageSDL.setFlags(sdlCanQuake.value, 1, 1)
     ageSDL.setNotify(self.key, sdlCanQuake.value, 0.0)
예제 #5
0
    def OnFirstUpdate(self):
        PtDebugPrint("DEBUG: bhroBahroYeeshaCave.OnFirstUpdate():\tEverything ok so far")
        xRandom.seed()
        xRandom.setmaxseries(1)

        self.currentYS = "zz"
        PtSendKIMessage(kDisableYeeshaBook,0)

        vault = ptVault()
        entry = vault.findChronicleEntry("BahroCave")

        if entry is None:
            PtDebugPrint("DEBUG: bhroBahroYeeshaCave.OnFirstUpdate: Did not find BahroCave chronicle...creating")
            vault.addChronicleEntry("BahroCave",0,"0")

        self.varMap = {'YeeshaSymbolTouched': 0, 'SolutionSymbol': 1, 'YeeshaSpeech': 2}

        self.ageDict = {
                        'Teledahn': {
                                     'State': 0,
                                     'WedgeAnim': respTeledahnWedge,
                                     'PoleCollider': soTeledahnPoleCollider,
                                     'JCDisable': respTeledahnJCDisable,
                                     'JCClickable': clickTeledahnJC,
                                     'SolutionSymbols': respTeledahnSolutionSymbols,
                                     'YSClickable': clickTeledahnYS,
                                     'YeeshaSpeech': respTeledahnYS,
                                     'PoleRemove': respTeledahnPoleRemove,
                                     'OneShotYS': respTeledahnYSOneShot,
                                     'OneShotJC': respTeledahnJCOneShot
                                    },
                        'Garrison': {
                                     'State': 0,
                                     'WedgeAnim': respGarrisonWedge,
                                     'PoleCollider': soGarrisonPoleCollider,
                                     'JCDisable': respGarrisonJCDisable,
                                     'JCClickable': clickGarrisonJC,
                                     'SolutionSymbols': respGarrisonSolutionSymbols,
                                     'YSClickable': clickGarrisonYS,
                                     'YeeshaSpeech': respGarrisonYS,
                                     'PoleRemove': respGarrisonPoleRemove,
                                     'OneShotYS': respGarrisonYSOneShot,
                                     'OneShotJC': respGarrisonJCOneShot
                                    },
                        'Garden': {
                                     'State': 0,
                                     'WedgeAnim': respGardenWedge,
                                     'PoleCollider': soGardenPoleCollider,
                                     'JCDisable': respGardenJCDisable,
                                     'JCClickable': clickGardenJC,
                                     'SolutionSymbols': respGardenSolutionSymbols,
                                     'YSClickable': clickGardenYS,
                                     'YeeshaSpeech': respGardenYS,
                                     'PoleRemove': respGardenPoleRemove,
                                     'OneShotYS': respGardenYSOneShot,
                                     'OneShotJC': respGardenJCOneShot
                                  },
                        'Kadish': {
                                     'State': 0,
                                     'WedgeAnim': respKadishWedge,
                                     'PoleCollider': soKadishPoleCollider,
                                     'JCDisable': respKadishJCDisable,
                                     'JCClickable': clickKadishJC,
                                     'SolutionSymbols': respKadishSolutionSymbols,
                                     'YSClickable': clickKadishYS,
                                     'YeeshaSpeech': respKadishYS,
                                     'PoleRemove': respKadishPoleRemove,
                                     'OneShotYS': respKadishYSOneShot,
                                     'OneShotJC': respKadishJCOneShot
                                  }
                       }
예제 #6
0
    def OnFirstUpdate(self):
        PtDebugPrint("DEBUG: bhroBahroYeeshaCave.OnFirstUpdate():\tEverything ok so far")
        xRandom.seed()
        xRandom.setmaxseries(1)

        self.currentYS = "zz"
        PtSendKIMessage(kDisableYeeshaBook,0)

        vault = ptVault()
        entry = vault.findChronicleEntry("BahroCave")

        if type(entry) == type(None):
            PtDebugPrint("DEBUG: bhroBahroYeeshaCave.OnFirstUpdate: Did not find BahroCave chronicle...creating")
            vault.addChronicleEntry("BahroCave",0,"0")

        self.varMap = {'YeeshaSymbolTouched': 0, 'SolutionSymbol': 1, 'YeeshaSpeech': 2}

        self.ageDict = {
                        'Teledahn': {
                                     'State': 0,
                                     'WedgeAnim': respTeledahnWedge,
                                     'PoleCollider': soTeledahnPoleCollider,
                                     'JCDisable': respTeledahnJCDisable,
                                     'JCClickable': clickTeledahnJC,
                                     'SolutionSymbols': respTeledahnSolutionSymbols,
                                     'YSClickable': clickTeledahnYS,
                                     'YeeshaSpeech': respTeledahnYS,
                                     'PoleRemove': respTeledahnPoleRemove,
                                     'OneShotYS': respTeledahnYSOneShot,
                                     'OneShotJC': respTeledahnJCOneShot
                                    },
                        'Garrison': {
                                     'State': 0,
                                     'WedgeAnim': respGarrisonWedge,
                                     'PoleCollider': soGarrisonPoleCollider,
                                     'JCDisable': respGarrisonJCDisable,
                                     'JCClickable': clickGarrisonJC,
                                     'SolutionSymbols': respGarrisonSolutionSymbols,
                                     'YSClickable': clickGarrisonYS,
                                     'YeeshaSpeech': respGarrisonYS,
                                     'PoleRemove': respGarrisonPoleRemove,
                                     'OneShotYS': respGarrisonYSOneShot,
                                     'OneShotJC': respGarrisonJCOneShot
                                    },
                        'Garden': {
                                     'State': 0,
                                     'WedgeAnim': respGardenWedge,
                                     'PoleCollider': soGardenPoleCollider,
                                     'JCDisable': respGardenJCDisable,
                                     'JCClickable': clickGardenJC,
                                     'SolutionSymbols': respGardenSolutionSymbols,
                                     'YSClickable': clickGardenYS,
                                     'YeeshaSpeech': respGardenYS,
                                     'PoleRemove': respGardenPoleRemove,
                                     'OneShotYS': respGardenYSOneShot,
                                     'OneShotJC': respGardenJCOneShot
                                  },
                        'Kadish': {
                                     'State': 0,
                                     'WedgeAnim': respKadishWedge,
                                     'PoleCollider': soKadishPoleCollider,
                                     'JCDisable': respKadishJCDisable,
                                     'JCClickable': clickKadishJC,
                                     'SolutionSymbols': respKadishSolutionSymbols,
                                     'YSClickable': clickKadishYS,
                                     'YeeshaSpeech': respKadishYS,
                                     'PoleRemove': respKadishPoleRemove,
                                     'OneShotYS': respKadishYSOneShot,
                                     'OneShotJC': respKadishJCOneShot
                                  }
                       }
예제 #7
0
    def OnFirstUpdate(self):
        PtDebugPrint("DEBUG: bhroBahroYeeshaCave.OnFirstUpdate():\tEverything ok so far")
        xRandom.seed()
        xRandom.setmaxseries(1)

        self.currentYS = "zz"
        PtSendKIMessage(kDisableYeeshaBook, 0)

        vault = ptVault()
        entry = vault.findChronicleEntry("BahroCave")

        if type(entry) == type(None):
            PtDebugPrint("DEBUG: bhroBahroYeeshaCave.OnFirstUpdate: Did not find BahroCave chronicle...creating")
            vault.addChronicleEntry("BahroCave", 0, "0")

        self.varMap = {"YeeshaSymbolTouched": 0, "SolutionSymbol": 1, "YeeshaSpeech": 2}

        self.ageDict = {
            "Teledahn": {
                "State": 0,
                "WedgeAnim": respTeledahnWedge,
                "PoleCollider": soTeledahnPoleCollider,
                "JCDisable": respTeledahnJCDisable,
                "JCClickable": clickTeledahnJC,
                "SolutionSymbols": respTeledahnSolutionSymbols,
                "YSClickable": clickTeledahnYS,
                "YeeshaSpeech": respTeledahnYS,
                "PoleRemove": respTeledahnPoleRemove,
                "OneShotYS": respTeledahnYSOneShot,
                "OneShotJC": respTeledahnJCOneShot,
            },
            "Garrison": {
                "State": 0,
                "WedgeAnim": respGarrisonWedge,
                "PoleCollider": soGarrisonPoleCollider,
                "JCDisable": respGarrisonJCDisable,
                "JCClickable": clickGarrisonJC,
                "SolutionSymbols": respGarrisonSolutionSymbols,
                "YSClickable": clickGarrisonYS,
                "YeeshaSpeech": respGarrisonYS,
                "PoleRemove": respGarrisonPoleRemove,
                "OneShotYS": respGarrisonYSOneShot,
                "OneShotJC": respGarrisonJCOneShot,
            },
            "Garden": {
                "State": 0,
                "WedgeAnim": respGardenWedge,
                "PoleCollider": soGardenPoleCollider,
                "JCDisable": respGardenJCDisable,
                "JCClickable": clickGardenJC,
                "SolutionSymbols": respGardenSolutionSymbols,
                "YSClickable": clickGardenYS,
                "YeeshaSpeech": respGardenYS,
                "PoleRemove": respGardenPoleRemove,
                "OneShotYS": respGardenYSOneShot,
                "OneShotJC": respGardenJCOneShot,
            },
            "Kadish": {
                "State": 0,
                "WedgeAnim": respKadishWedge,
                "PoleCollider": soKadishPoleCollider,
                "JCDisable": respKadishJCDisable,
                "JCClickable": clickKadishJC,
                "SolutionSymbols": respKadishSolutionSymbols,
                "YSClickable": clickKadishYS,
                "YeeshaSpeech": respKadishYS,
                "PoleRemove": respKadishPoleRemove,
                "OneShotYS": respKadishYSOneShot,
                "OneShotJC": respKadishJCOneShot,
            },
        }
예제 #8
0
파일: kverQuake.py 프로젝트: Jrius/Drizzle
 def OnFirstUpdate(self):
     xRandom.seed((PtGetDniTime() % 256))
     whrandom.seed()
     PtClearTimerCallbacks(self.key)
     self.NextQuakeDelay()