def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.enteringWorld = True self.darkness = False self.monster = False self.party = None self.premium = False self.guildName = "" self.guildInfo = "" self.guildMOTD = "" self.guildRank = 0 self.guildInvite = None self.auctioneer = 0 #not persistent, because I don't want to update the database right now, some day #these should actually be client side maybe self.channelGlobal = True self.channelWorld = True self.channelZone = True self.channelCombat = False self.channelClan = True self.channelHelp = True self.channelOffTopic = True #whatever the most recent character name is self.charName = "" self.overrideScale = False self.reset()
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) if len(self.permanentStats): self.hasPermanentStats = True else: self.hasPermanentStats = False
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.enteringWorld = True self.darkness = False self.monster = False self.party = None self.premium = False self.guildName = "" self.guildInfo = "" self.guildMOTD = "" self.guildRank = 0 self.guildInvite = None self.auctioneer = 0 #not persistent, because I don't want to update the database right now, some day #these should actually be client side maybe self.channelGlobal = True self.channelWorld = True self.channelZone = True self.channelCombat = False self.channelClan = True self.channelHelp = True self.channelOffTopic = True #whatever the most recent character name is self.charName = "" self.overrideScale = False self.reset()
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.raceRequirements = [] for r in list(self.raceRequirementsInternal): self.raceRequirements.append(r.race) self.questRequirements = [] for qreq in list(self.questRequirementsInternal): self.questRequirements.append((qreq.choiceIdentifier,qreq.levelBarrier))
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.shuttingDown = False self.liveZoneInstances = [] self.waitingZoneInstances = [] self.activePlayers = [] self.globalPlayers = {} self.mutedPlayers = {} self.time = Time() #from db self.time.second = 0 self.time.minute = self.minute self.time.hour = self.hour self.time.day = self.day self.time.ticks = 0 self.lasttime = -1 self.transaction = False self.tickTransaction = None self.singlePlayer = False self.singlePlayerBackupTimer = 120 # Once every minute self.liveZoneCallback = None self.usedZonePorts = [] self.running = False self.dbFile = None self.backupTick = 30 #once every 30 minutes self.paused = False self.pauseTime = sysTime() self.daemonPerspective = None self.daemonMind = None self.AHPerspective = None self.MailServerPerspective = None self.clusterNum = -1 self.worldPort = -1 self.staticZoneNames = [] self.priority = 1 self.deathMarkers = {} self.characterInfos = {} self.allowConnections = True self.cpuSpawn = 0 self.cpuDespawn = 0 self.spawnZoneIndex = 0 self.isShuttingDown = False
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.raceRequirements = [] for r in list(self.raceRequirementsInternal): self.raceRequirements.append(r.race) self.questRequirements = [] for qreq in list(self.questRequirementsInternal): self.questRequirements.append( (qreq.choiceIdentifier, qreq.levelBarrier))
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.shuttingDown = False self.liveZoneInstances = [] self.waitingZoneInstances = [] self.activePlayers = [] self.globalPlayers = {} self.mutedPlayers = {} self.time = Time() #from db self.time.second = 0 self.time.minute = self.minute self.time.hour = self.hour self.time.day = self.day self.time.ticks = 0 self.lasttime = -1 self.transaction = False self.tickTransaction = None self.singlePlayer = False self.singlePlayerBackupTimer = 120 # Once every minute self.liveZoneCallback = None self.usedZonePorts = [] self.running = False self.dbFile = None self.backupTick = 30 #once every 30 minutes self.paused = False self.pauseTime = sysTime() self.daemonPerspective = None self.daemonMind = None self.AHPerspective = None self.MailServerPerspective = None self.clusterNum = -1 self.worldPort = -1 self.staticZoneNames = [] self.priority = 1 self.deathMarkers = {} self.characterInfos = {} self.allowConnections = True self.cpuSpawn = 0 self.cpuDespawn = 0 self.spawnZoneIndex = 0 self.isShuttingDown = False
def _init(self, *args, **kwargs): Persistent._init(self, *args, **kwargs) ## @brief (AdvancementExclusion List) List containing # AdvancementExclusions. # @remarks The reassignment prevents having to query the database each # time related ExclusionInternals are checked. self.exclusions = self.exclusionsInternal
def _init(self, *args, **kwargs): Persistent._init(self, *args, **kwargs) ## @brief (AdvancementExclusion List) List containing # AdvancementExclusions. # @remarks The reassignment prevents having to query the database each # time related ExclusionInternals are checked. self.exclusions = self.exclusionsInternal
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.spawnGroupSets = None self.setRealms = {} self.spawnpoints = {} self.realm = RPG_REALM_UNDEFINED self.currentSpawnSet = None self.activeSpawns = 0 self.killerRealms = defaultdict(int) self.lastKillerRealm = RPG_REALM_UNDEFINED
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.spawnGroupSets = None self.setRealms = {} self.spawnpoints = {} self.realm = RPG_REALM_UNDEFINED self.currentSpawnSet = None self.activeSpawns = 0 self.killerRealms = defaultdict(int) self.lastKillerRealm = RPG_REALM_UNDEFINED
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.level = self.plevel self.modifiedScale = self.scale # Modified scale may get changed, but should not persist. from spell import SpellProto self.spawnSpells = [] for s in self.spawnSpellsInternal: try: spell = SpellProto.byName(s.spellname) self.spawnSpells.append(spell) except: print "Warning: Unknown Spawn Spell -> %s" % s.spellname self.spawnStats = [] for s in self.spawnStatsInternal: self.spawnStats.append(s) self.spawnInfoMale = None self.spawnInfoFemale = None self.sndProfileOverride = None
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) #setup numSndIdleLoop, etc sndattribs = ['sndIdleLoop','sndIdleRandom','sndAlert','sndAttack','sndPain','sndDeath'] for snd in sndattribs: num = 0 for x in xrange(1,5): if not getattr(self,snd+str(x)): break num+=1 setattr(self,"numS"+snd[1:],num) sounds = self.sounds = {} sounds["sndPain"]=self.numSndPain sounds["sndIdleLoop"]=self.numSndIdleLoop sounds["sndIdleRandom"]=self.numSndIdleRandom sounds["sndAlert"]=self.numSndAlert sounds["sndAttack"]=self.numSndAttack sounds["sndDeath"]=self.numSndDeath
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.level = self.plevel self.modifiedScale = self.scale # Modified scale may get changed, but should not persist. from spell import SpellProto self.spawnSpells = [] for s in self.spawnSpellsInternal: try: spell = SpellProto.byName(s.spellname) self.spawnSpells.append(spell) except: print "Warning: Unknown Spawn Spell -> %s"%s.spellname self.spawnStats = [] for s in self.spawnStatsInternal: self.spawnStats.append(s) self.spawnInfoMale = None self.spawnInfoFemale = None self.sndProfileOverride = None
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) #setup numSndIdleLoop, etc sndattribs = [ 'sndIdleLoop', 'sndIdleRandom', 'sndAlert', 'sndAttack', 'sndPain', 'sndDeath' ] for snd in sndattribs: num = 0 for x in xrange(1, 5): if not getattr(self, snd + str(x)): break num += 1 setattr(self, "numS" + snd[1:], num) sounds = self.sounds = {} sounds["sndPain"] = self.numSndPain sounds["sndIdleLoop"] = self.numSndIdleLoop sounds["sndIdleRandom"] = self.numSndIdleRandom sounds["sndAlert"] = self.numSndAlert sounds["sndAttack"] = self.numSndAttack sounds["sndDeath"] = self.numSndDeath
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.spawninfosList = None
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.spawninfosList = None
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) if User.doPasswordHack: self.tempPassword = GenPasswd()
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.tableClass = classregistry.registry(None).getClass(self.name)
def _init(self,*args,**kw): Persistent._init(self, *args, **kw) self.itemDetails = dict((item.itemProto.name,item.flags) for item in self.lootItems)
def _init(self,*args,**kw): Persistent._init(self,*args,**kw) self.tableClass=classregistry.registry(None).getClass(self.name)
def _init(self,*args,**kw): Persistent._init(self,*args,**kw) if User.doPasswordHack: self.tempPassword = GenPasswd()
def _init(self, *args, **kw): Persistent._init(self, *args, **kw) self.itemDetails = dict( (item.itemProto.name, item.flags) for item in self.lootItems)
def _init(self,*args,**kw): Persistent._init(self, *args, **kw)