def __call__(self,room,subnodes):
		Script.__call__(self,room,subnodes)
		import VS
		if VS.networked():
			return True
		import universe
		universe.addTechLevel(self.tech)
Пример #2
0
	def Join(self):
		plr=VS.getPlayer()
		plrnum=plr.isPlayerStarship()
		if self.CanPay():
			quest.removeQuest(plrnum,self.savestring,1)
			plr.addCredits(-1*self.membership)
			for tt in self.tech:
				import universe
				universe.addTechLevel(tt)
			self.MakeMissions()
			return ["success"]
		else:
			return ["failure"]
Пример #3
0
 def Join(self):
     plr = VS.getPlayer()
     plrnum = plr.isPlayerStarship()
     if self.CanPay():
         quest.removeQuest(plrnum, self.savestring, 1)
         plr.addCredits(-1 * self.membership)
         for tt in self.tech:
             import universe
             universe.addTechLevel(tt)
         self.MakeMissions()
         return ["success"]
     else:
         return ["failure"]
Пример #4
0
    def Join(self):
        plr=VS.getPlayer()
        plrnum=plr.isPlayerStarship()
        VS.StopAllSounds()
        if self.CanPay():
            quest.removeQuest(plrnum,self.savestring,1)
            plr.addCredits(-1*self.membership)
            for tt in self.tech:
                universe.addTechLevel(tt)

            Base.Message('Thank you for joining the '+str(self.name)+' Guild! Feel free to accept any of our large quantity of high-paying missions.')
            VS.playSound("guilds/"+str(self.name).lower()+"accept.wav",(0,0,0),(0,0,0))
        else:
            Base.Message('We have checked your account and it apperas that you do not have nough credits to join this guild. Please come back and reconsider our offer when you have recieved more credits.')
            VS.playSound("guilds/"+str(self.name).lower()+"notenoughmoney.wav",(0,0,0),(0,0,0))
Пример #5
0
    def Join(self):
        plr = VS.getPlayer()
        plrnum = plr.isPlayerStarship()
        VS.StopAllSounds()
        if self.CanPay():
            quest.removeQuest(plrnum, self.savestring, 1)
            plr.addCredits(-1 * self.membership)
            for tt in self.tech:
                universe.addTechLevel(tt)

            Base.Message(
                'Thank you for joining the ' + str(self.name) +
                ' Guild! Feel free to accept any of our large quantity of high-paying missions.'
            )
            VS.playSound("guilds/" + str(self.name).lower() + "accept.wav",
                         (0, 0, 0), (0, 0, 0))
        else:
            Base.Message(
                'We have checked your account and it apperas that you do not have nough credits to join this guild. Please come back and reconsider our offer when you have recieved more credits.'
            )
            VS.playSound(
                "guilds/" + str(self.name).lower() + "notenoughmoney.wav",
                (0, 0, 0), (0, 0, 0))