antiblock
diamwall

Tyler Durden

Membro Plus
  • Content Count

    1,220
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by Tyler Durden


  1. Tenta esta

    quest mestre begin
    	state start begin
    		when 20095.click begin
    			local mestre = select("OldEliteMt2 Banco", "Top-Secret", "Fechar") 
    				if mestre == 3 then
    					return
    				end
    				if mestre == 1 then
    					local bank = select("Pedir Cheque", "Depositar Cheque", "Fechar")    
    						if bank == 1 then    
    							local cost = 1000000000
    							if pc.get_gold() < cost then
    								say("Não tens Yang suficiente.")
    							else
    								pc.give_item2(95002, 1)
    								pc.change_gold(-1000000000)
    							end
    						elseif bank == 2 then
    							if pc.count_item(95002) > 0 then
    								pc.remove_item(95002, 1)
    								pc.change_gold(1000000000)
    							else
    								say("Não tens nenhum Cheque contigo.")
    							end
    						elseif bank == 3 then
    							return
    						end
    					end
    				elseif mestre == 2 then
    					say("segredo")
    				end
    			end
    		end
    	end
    end

     


  2. 1 hora atrás, Cσяvσ⋆ disse:
    
    if pc.count_item(95002) >= 1 then
    	pc.remove_item(95002, 1)
    	pc.change_gold(1000000000)
    else
    	say("Não tens o item necessário")
    end

    Experimenta assim, não estou mesmo a ver qual é o problema do if a nível de programação, talvez seja mesmo algo do metin.

     


  3. Assumindo que não uses source e apenas queres manter o reino azul - se não for o caso é só mudares as letras.

     

    A - reino vermelho

    B - reino amarelo

    C - reino azul

     

    root/introempire.py procuras por

    	EMPIRE_DESCRIPTION_TEXT_FILE_NAME = {	
    		net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A,
    		net.EMPIRE_B : uiScriptLocale.EMPIREDESC_B,
    		net.EMPIRE_C : uiScriptLocale.EMPIREDESC_C, }
    
    substituis por
    
    	EMPIRE_DESCRIPTION_TEXT_FILE_NAME = {	
    		# net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A,
    		# net.EMPIRE_B : uiScriptLocale.EMPIREDESC_B,
    		net.EMPIRE_C : uiScriptLocale.EMPIREDESC_C, }

    a seguir procuras por

    		self.empireID=app.GetRandom(1, 3)
    
    substituis por
    
    		self.empireID=app.GetRandom(1, 1)

    a seguir procuras por

    		self.empireAreaCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    		self.empireAreaDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    		self.empireAreaFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    		self.empireAreaFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    		self.empireFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    		self.empireFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    
    substituis por
    
    		self.empireAreaCurAlpha = { net.EMPIRE_C:0.0 }
    		self.empireAreaDestAlpha = { net.EMPIRE_C:0.0 }
    		self.empireAreaFlagCurAlpha = { net.EMPIRE_C:0.0 }
    		self.empireAreaFlagDestAlpha = { net.EMPIRE_C:0.0 }
    		self.empireFlagCurAlpha = { net.EMPIRE_C:0.0 }
    		self.empireFlagDestAlpha = { net.EMPIRE_C:0.0 }

    a seguir procuras por

    			self.empireArea[net.EMPIRE_A]	= GetObject("EmpireArea_A")
    			self.empireArea[net.EMPIRE_B]	= GetObject("EmpireArea_B")
    			self.empireArea[net.EMPIRE_C]	= GetObject("EmpireArea_C")
    			self.empireAreaFlag[net.EMPIRE_A]	= GetObject("EmpireAreaFlag_A")
    			self.empireAreaFlag[net.EMPIRE_B]	= GetObject("EmpireAreaFlag_B")
    			self.empireAreaFlag[net.EMPIRE_C]	= GetObject("EmpireAreaFlag_C")
    			self.empireFlag[net.EMPIRE_A]	= GetObject("EmpireFlag_A")
    			self.empireFlag[net.EMPIRE_B]	= GetObject("EmpireFlag_B")
    			self.empireFlag[net.EMPIRE_C]	= GetObject("EmpireFlag_C")
    
    substituis por
    
    			# self.empireArea[net.EMPIRE_A]	= GetObject("EmpireArea_A")
    			# self.empireArea[net.EMPIRE_B]	= GetObject("EmpireArea_B")
    			self.empireArea[net.EMPIRE_C]	= GetObject("EmpireArea_C")
    			# self.empireAreaFlag[net.EMPIRE_A]	= GetObject("EmpireAreaFlag_A")
    			# self.empireAreaFlag[net.EMPIRE_B]	= GetObject("EmpireAreaFlag_B")
    			self.empireAreaFlag[net.EMPIRE_C]	= GetObject("EmpireAreaFlag_C")
    			# self.empireFlag[net.EMPIRE_A]	= GetObject("EmpireFlag_A")
    			# self.empireFlag[net.EMPIRE_B]	= GetObject("EmpireFlag_B")
    			self.empireFlag[net.EMPIRE_C]	= GetObject("EmpireFlag_C")

    a seguir procuras por

    	def ClickLeftButton(self):
    		self.empireID-=1
    		if self.empireID<1:
    			self.empireID=3
    
    		self.OnSelectEmpire(self.empireID)
    
    	def ClickRightButton(self):
    		self.empireID+=1
    		if self.empireID>3:
    			self.empireID=1
    
    substituis por
    
    	def ClickLeftButton(self):
    		self.empireID-=1
    		if self.empireID<1:
    			self.empireID=1
    
    		self.OnSelectEmpire(self.empireID)
    
    	def ClickRightButton(self):
    		self.empireID+=1
    		if self.empireID>1:
    			self.empireID=1

    ____________________________________________________________________

     

    root/introselect.py procuras por

    	EMPIRE_NAME = { 
    		net.EMPIRE_A : localeInfo.EMPIRE_A, 
    		net.EMPIRE_B : localeInfo.EMPIRE_B, 
    		net.EMPIRE_C : localeInfo.EMPIRE_C 
    	}
    
    substituis por
    
    	EMPIRE_NAME = { 
    		# net.EMPIRE_A : localeInfo.EMPIRE_A, 
    		# net.EMPIRE_B : localeInfo.EMPIRE_B, 
    		net.EMPIRE_C : localeInfo.EMPIRE_C 
    	}

    a seguir procuras por

    			self.flagDict[net.EMPIRE_A] = GetObject("EmpireFlag_A")
    			self.flagDict[net.EMPIRE_B] = GetObject("EmpireFlag_B")
    			self.flagDict[net.EMPIRE_C] = GetObject("EmpireFlag_C")
    
    substituis por
    
    			# self.flagDict[net.EMPIRE_A] = GetObject("EmpireFlag_A")
    			# self.flagDict[net.EMPIRE_B] = GetObject("EmpireFlag_B")
    			self.flagDict[net.EMPIRE_C] = GetObject("EmpireFlag_C")

    ____________________________________________________________________

     

    uiscript/selectempirewindow.py procuras por

    				## Empire Image
    				{
    					"name" : "EmpireArea_A",
    					"type" : "expanded_image",
    
    					"x" : 43,
    					"y" : 201,
    
    					"image" : "d:/ymir work/ui/intro/empire/empirearea_a.sub"
    				},
    				{
    					"name" : "EmpireArea_B",
    					"type" : "expanded_image",
    
    					"x" : 17,
    					"y" : 16,
    
    					"image" : "d:/ymir work/ui/intro/empire/empirearea_b.sub"
    				},
    				{
    					"name" : "EmpireArea_C",
    					"type" : "expanded_image",
    
    					"x" : 314,
    					"y" : 33,
    
    					"image" : "d:/ymir work/ui/intro/empire/empirearea_c.sub"
    				},
    
    				## Empire Flag
    				{
    					"name" : "EmpireAreaFlag_A",
    					"type" : "expanded_image",
    
    					"x" : 167,
    					"y" : 235,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireareaflag_a.sub"
    				},
    				{
    					"name" : "EmpireAreaFlag_B",
    					"type" : "expanded_image",
    
    					"x" : 70,
    					"y" : 42,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireareaflag_b.sub"
    				},
    				{
    					"name" : "EmpireAreaFlag_C",
    					"type" : "expanded_image",
    
    					"x" : 357,
    					"y" : 78,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireareaflag_c.sub"
    				},
    			),
    
    substituis por
    
    				## Empire Image
    				"""{
    					"name" : "EmpireArea_A",
    					"type" : "expanded_image",
    
    					"x" : 43,
    					"y" : 201,
    
    					"image" : "d:/ymir work/ui/intro/empire/empirearea_a.sub"
    				},
    				{
    					"name" : "EmpireArea_B",
    					"type" : "expanded_image",
    
    					"x" : 17,
    					"y" : 16,
    
    					"image" : "d:/ymir work/ui/intro/empire/empirearea_b.sub"
    				},"""
    				{
    					"name" : "EmpireArea_C",
    					"type" : "expanded_image",
    
    					"x" : 314,
    					"y" : 33,
    
    					"image" : "d:/ymir work/ui/intro/empire/empirearea_c.sub"
    				},
    
    				## Empire Flag
    				"""{
    					"name" : "EmpireAreaFlag_A",
    					"type" : "expanded_image",
    
    					"x" : 167,
    					"y" : 235,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireareaflag_a.sub"
    				},
    				{
    					"name" : "EmpireAreaFlag_B",
    					"type" : "expanded_image",
    
    					"x" : 70,
    					"y" : 42,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireareaflag_b.sub"
    				},"""
    				{
    					"name" : "EmpireAreaFlag_C",
    					"type" : "expanded_image",
    
    					"x" : 357,
    					"y" : 78,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireareaflag_c.sub"
    				},
    			),

    a seguir procuras por

    						## Empire Flag
    						{
    							"name" : "EmpireFlag_A",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
    						},
    						{
    							"name" : "EmpireFlag_B",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
    						},
    						{
    							"name" : "EmpireFlag_C",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
    						},
    					),
    
    substituis por
    
    						## Empire Flag
    						"""{
    							"name" : "EmpireFlag_A",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
    						},
    						{
    							"name" : "EmpireFlag_B",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
    						},"""
    						{
    							"name" : "EmpireFlag_C",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
    						},
    					),

    ____________________________________________________________________

     

    uiscript/selectcharacterwindow.py procuras por

    				## Empire Flag
    				{
    					"name" : "EmpireFlag_A",
    					"type" : "expanded_image",
    
    					"x" : 21,
    					"y" : 12,
    					"x_scale" : 0.5,
    					"y_scale" : 0.5,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
    				},
    				{
    					"name" : "EmpireFlag_B",
    					"type" : "expanded_image",
    
    					"x" : 21,
    					"y" : 12,
    					"x_scale" : 0.5,
    					"y_scale" : 0.5,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
    				},
    				{
    					"name" : "EmpireFlag_C",
    					"type" : "expanded_image",
    
    					"x" : 21,
    					"y" : 12,
    					"x_scale" : 0.5,
    					"y_scale" : 0.5,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
    				},
    
    substituis por
    
    				## Empire Flag
    				"""{
    					"name" : "EmpireFlag_A",
    					"type" : "expanded_image",
    
    					"x" : 21,
    					"y" : 12,
    					"x_scale" : 0.5,
    					"y_scale" : 0.5,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
    				},
    				{
    					"name" : "EmpireFlag_B",
    					"type" : "expanded_image",
    
    					"x" : 21,
    					"y" : 12,
    					"x_scale" : 0.5,
    					"y_scale" : 0.5,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
    				},"""
    				{
    					"name" : "EmpireFlag_C",
    					"type" : "expanded_image",
    
    					"x" : 21,
    					"y" : 12,
    					"x_scale" : 0.5,
    					"y_scale" : 0.5,
    
    					"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
    				},

    ____________________________________________________________________

    (opcional)

    ETC/ymir work/ui/intro/empire abres esses 6 ficheiros com notepad++

     

    empirearea_a.sub

    empireareaflag_a.sub

    empireflag_a.sub

     

    empirearea_b.sub

    empireareaflag_b.sub

    empireflag_b.sub

     

    onde diz

    title subImage
    version 1.0
    image "IntroEmpire.dds"
    left xy
    top xy
    right xy
    bottom xy
    
    metes assim para todos v
    
    title subImage
    version 1.0
    image "IntroEmpire.dds"
    left 0
    top 0
    right 0
    bottom 0

     

    Há-de ser suficiente para o que pretendes, só tens de desactivar os portais