Aller au contenu
Top-Metin2.org - Vous êtes à la recherche d'un serveur Metin 2 ? ×
×
×
  • Créer...

FlavDark

Membre
  • Compteur de contenus

    182
  • Inscription

  • Dernière visite

Messages posté(e)s par FlavDark

  1. De rien :) En fait le bouton fonctionne, il faut juste ajouter :

    			self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizarBonus))

     

    Comme ceci :

    			wndItem = self.GetChild("ItemSlot")
    		wndEquip = self.GetChild("EquipmentSlot")
    		self.ButonMinimize = self.GetChild2("OcultarTabla")
    		self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizarBonus))
    		self.GetChild("TitleBar").SetCloseEvent(ui.__mem_func__(self.Close))
    		self.wndMoney = self.GetChild("Money")
    		self.wndMoneySlot = self.GetChild("Money_Slot")
    		self.mallButton = self.GetChild2("MallButton")
    		self.DSSButton = self.GetChild2("DSSButton")
    		self.costumeButton = self.GetChild2("CostumeButton")

     

    Dans le fichier "uiinventory.py" qui se trouve dans le "root".

     

    Je l'ai ajouté au tuto :)

    • Metin2 Dev 1
  2. Centre de Téléchargement

    Hidden Content

      Give reaction to this post to see the hidden content.
    ( Interne )

    Bonjour,

     

    Je vous partage un petit tutoriel rédigé par mes soins afin d'installer le système de bonus dans l'inventaire sur les files 2014 (et 2016 by FE).

     

    Révélation

    060003f4iGT38.gif

     

    PS : Sur l'image le système est en espagnol mais dans ce tutoriel le système est traduit en français par Eristoff.

     

    Point positif : Système fonctionnel une fois adapté.

    Point négatif : Le bouton "Minimiser" ne fonctionne plus (Ce qui n'est pas très grave). Edit : Le bouton fonctionne ! Voir plus bas dans le tutoriel.

     

    Dans un premier temps vous devez vous munir d'un éditeur de texte et de vos fichiers "root" et "local_fr".

     

    Dans root :

     

    Trouvez et ouvrez le fichier "uiinventory.py"

     

    Trouvez ce bout de code :

    		## Refresh
    	self.SetInventoryPage(0)
    	self.SetEquipmentPage(0)
    	self.RefreshItemSlot()
    	self.RefreshStatus()
     

     

    Le remplacer par : 

    		## Refresh
    	self.SetInventoryPage(0)
    	self.SetEquipmentPage(0)
    	self.RefreshItemSlot()
    	self.RefreshStatus()
    	self.ActualizarBonus()
    
    def MinimizarBonus(self):
    	if self.ESTADO_PAGINA_INVENTORY == False:
    		#####Esta parte pertence en volver al estado original al inventory
    		self.GetChild("board").SetSize(176,585)
    		self.GetChild("TitleBar").SetWidth(161)
    		self.GetChild("TitleName").SetPosition(77, 3)
    		self.GetChild("OcultarTabla").SetPosition(161 - 30, 10)
    		self.SetSize(176, 585)
    		self.SetPosition(wndMgr.GetScreenWidth() - 176, wndMgr.GetScreenHeight() - 37 - 585)
    		self.GetChild("Money_Slot").SetPosition(8, 28)
    		#Tabla
    		self.GetChild("txt_info_defenza").Hide()
    		self.ESTADO_PAGINA_INVENTORY = True
    	else:
    		#####Esta parte pertence en volver al estado editado al inventory
    		self.GetChild("board").SetSize(306,585)
    		self.GetChild("TitleBar").SetWidth(161 + 130)
    		self.GetChild("TitleName").SetPosition((161  + 130) / 2, 3)
    		self.GetChild("OcultarTabla").SetPosition(161 + 130 - 30, 10)
    		self.SetSize(306, 585)
    		self.SetPosition(wndMgr.GetScreenWidth() - 176 - 130, wndMgr.GetScreenHeight() - 37 - 585)
    		self.GetChild("Money_Slot").SetPosition(-55, 28)
    		#Tabla
    		self.GetChild("txt_info_defenza").Show()
    		self.ESTADO_PAGINA_INVENTORY = False
    
    	self.OcultarInfoTable(self.ESTADO_PAGINA_INVENTORY)
    	if self.wndBelt:
    		self.wndBelt.AdjustPositionAndSize()
    
    
    def OcultarInfoTable(self, arg):
    	if arg == True:
    		self.GetChild("txt_info_defenza").Hide()
    		self.GetChild("txt_info_defenza_espada").Hide()
    		self.GetChild("Thin_info_defenza_espada").Hide()
    		self.GetChild("txt_info_defenza_2manos").Hide()
    		self.GetChild("Thin_info_defenza_2manos").Hide()
    		self.GetChild("txt_info_defenza_daga").Hide()
    		self.GetChild("Thin_info_defenza_daga").Hide()
    		self.GetChild("txt_info_defenza_Felcha").Hide()
    		self.GetChild("Thin_info_defenza_Felcha").Hide()
    		self.GetChild("txt_info_defenza_campana").Hide()
    		self.GetChild("Thin_info_defenza_campana").Hide()
    		self.GetChild("txt_info_defenza_fan").Hide()
    		self.GetChild("Thin_info_defenza_fan").Hide()
    		self.GetChild("txt_info_resist_Magia").Hide()
    		self.GetChild("Thin_info_resist_Magia").Hide()
    		self.GetChild("txt_info_resist_veneno").Hide()
    		self.GetChild("Thin_info_resist_veneno").Hide()
    		self.GetChild("txt_info_resist_guerrero").Hide()
    		self.GetChild("Thin_info_resist_guerrero").Hide()
    		self.GetChild("txt_info_resist_ninja").Hide()
    		self.GetChild("Thin_info_resist_ninja").Hide()
    		self.GetChild("txt_info_resist_sura").Hide()
    		self.GetChild("Thin_info_resist_sura").Hide()
    		self.GetChild("txt_info_resist_chaman").Hide()
    		self.GetChild("Thin_info_resist_chaman_").Hide()
    		self.GetChild("txt_info_onfensivo").Hide()
    		self.GetChild("txt_info_criticos").Hide()
    		self.GetChild("Thin_info_criticos").Hide()
    		self.GetChild("txt_info_penetracion").Hide()
    		self.GetChild("Thin_info_penetracion").Hide()
    		self.GetChild("txt_info_danomedia").Hide()
    		self.GetChild("Thin_info_danomedia").Hide()
    		self.GetChild("txt_info_danohabilidad").Hide()
    		self.GetChild("Thin_info_danohabilidad").Hide()
    		self.GetChild("txt_info_fmediohumano").Hide()
    		self.GetChild("Thin_info_fmediohumano").Hide()
    		self.GetChild("txt_info_fnomuerto").Hide()
    		self.GetChild("Thin_info_fnomuerto").Hide()
    		self.GetChild("txt_info_fdemonio").Hide()
    		self.GetChild("Thin_info_fdemonio").Hide()
    		self.GetChild("txt_info_fguerrero").Hide()
    		self.GetChild("Thin_info_fguerrero").Hide()
    		self.GetChild("txt_info_fninja").Hide()
    		self.GetChild("Thin_info_fninja").Hide()
    		self.GetChild("txt_info_fsura").Hide()
    		self.GetChild("Thin_info_fsura").Hide()
    		self.GetChild("txt_info_fcham").Hide()
    		self.GetChild("Thin_info_fcham").Hide()
    	else:
    		self.GetChild("txt_info_defenza").Show()
    		self.GetChild("txt_info_defenza_espada").Show()
    		self.GetChild("Thin_info_defenza_espada").Show()
    		self.GetChild("txt_info_defenza_2manos").Show()
    		self.GetChild("Thin_info_defenza_2manos").Show()
    		self.GetChild("txt_info_defenza_daga").Show()
    		self.GetChild("Thin_info_defenza_daga").Show()
    		self.GetChild("txt_info_defenza_Felcha").Show()
    		self.GetChild("Thin_info_defenza_Felcha").Show()
    		self.GetChild("txt_info_defenza_campana").Show()
    		self.GetChild("Thin_info_defenza_campana").Show()
    		self.GetChild("txt_info_defenza_fan").Show()
    		self.GetChild("Thin_info_defenza_fan").Show()
    		self.GetChild("txt_info_resist_Magia").Show()
    		self.GetChild("Thin_info_resist_Magia").Show()
    		self.GetChild("txt_info_resist_veneno").Show()
    		self.GetChild("Thin_info_resist_veneno").Show()
    		self.GetChild("txt_info_resist_guerrero").Show()
    		self.GetChild("Thin_info_resist_guerrero").Show()
    		self.GetChild("txt_info_resist_ninja").Show()
    		self.GetChild("Thin_info_resist_ninja").Show()
    		self.GetChild("txt_info_resist_sura").Show()
    		self.GetChild("Thin_info_resist_sura").Show()
    		self.GetChild("txt_info_resist_chaman").Show()
    		self.GetChild("Thin_info_resist_chaman_").Show()
    		self.GetChild("txt_info_onfensivo").Show()
    		self.GetChild("txt_info_criticos").Show()
    		self.GetChild("Thin_info_criticos").Show()
    		self.GetChild("txt_info_penetracion").Show()
    		self.GetChild("Thin_info_penetracion").Show()
    		self.GetChild("txt_info_danomedia").Show()
    		self.GetChild("Thin_info_danomedia").Show()
    		self.GetChild("txt_info_danohabilidad").Show()
    		self.GetChild("Thin_info_danohabilidad").Show()
    		self.GetChild("txt_info_fmediohumano").Show()
    		self.GetChild("Thin_info_fmediohumano").Show()
    		self.GetChild("txt_info_fnomuerto").Show()
    		self.GetChild("Thin_info_fnomuerto").Show()
    		self.GetChild("txt_info_fdemonio").Show()
    		self.GetChild("Thin_info_fdemonio").Show()
    		self.GetChild("txt_info_fguerrero").Show()
    		self.GetChild("Thin_info_fguerrero").Show()
    		self.GetChild("txt_info_fninja").Show()
    		self.GetChild("Thin_info_fninja").Show()
    		self.GetChild("txt_info_fsura").Show()
    		self.GetChild("Thin_info_fsura").Show()
    		self.GetChild("txt_info_fcham").Show()
    		self.GetChild("Thin_info_fcham").Show()
    
    def ActualizarBonus(self):
    	self.GetChild("bonus_1").SetText(str(player.GetStatus(69)))
    	self.GetChild("bonus_2").SetText(str(player.GetStatus(70)))
    	self.GetChild("bonus_3").SetText(str(player.GetStatus(71)))
    	self.GetChild("bonus_4").SetText(str(player.GetStatus(74)))
    	self.GetChild("bonus_5").SetText(str(player.GetStatus(72)))
    	self.GetChild("bonus_6").SetText(str(player.GetStatus(73)))
    	self.GetChild("bonus_7").SetText(str(player.GetStatus(77)))
    	self.GetChild("bonus_8").SetText(str(player.GetStatus(81)))
    	self.GetChild("bonus_9").SetText(str(player.GetStatus(59)))
    	self.GetChild("bonus_10").SetText(str(player.GetStatus(60)))
    	self.GetChild("bonus_11").SetText(str(player.GetStatus(61)))
    	self.GetChild("bonus_12").SetText(str(player.GetStatus(62)))
    	self.GetChild("bonus_13").SetText(str(player.GetStatus(40)))
    	self.GetChild("bonus_14").SetText(str(player.GetStatus(41)))
    	self.GetChild("bonus_15").SetText(str(player.GetStatus(122)))
    	self.GetChild("bonus_16").SetText(str(player.GetStatus(121)))
    	self.GetChild("bonus_17").SetText(str(player.GetStatus(43)))
    	self.GetChild("bonus_18").SetText(str(player.GetStatus(47)))
    	self.GetChild("bonus_19").SetText(str(player.GetStatus(48)))
    	self.GetChild("bonus_20").SetText(str(player.GetStatus(54)))
    	self.GetChild("bonus_21").SetText(str(player.GetStatus(55)))
    	self.GetChild("bonus_22").SetText(str(player.GetStatus(56)))
    	self.GetChild("bonus_23").SetText(str(player.GetStatus(57)))
     

     

    En suite rendez vous tout tout à la fin et ajoutez :

    def OnUpdate(self):
    	self.ActualizarBonus()
    
     

     

     

    Pour faire fonctionner le bouton "Minimiser" il faut (toujours dans le même fichier) trouver :

     

                wndItem = self.GetChild("ItemSlot")
               wndEquip = self.GetChild("EquipmentSlot")
    
     

     

    Et ajouter juste en dessous :

     

                self.ButonMinimize = self.GetChild2("OcultarTabla")
               self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizarBonus))
     

     

     

    Dans locale_fr :

     

    Trouvez et ouvrez le fichier "inventorywindow.py"

     

    Sélectionnez tout le début jusqu'à la ligne :  (Arrêtez votre sélection juste avant cette ligne)

     

    				## Equipment Slot
     

     

    Et remplacez par :

     

    import uiScriptLocale
    import item
    
    EQUIPMENT_START_INDEX = 180
    SPACE_BONUS_INVENTORY = 130
    IMAGE_CHELO = "d:/ymir work/ui/public/Parameter_Slot_01.sub"
    window = {
    "name" : "InventoryWindow",
    
    ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
    "x" : SCREEN_WIDTH - 176 - SPACE_BONUS_INVENTORY,
    "y" : SCREEN_HEIGHT - 37 - 585,
    
    "style" : ("movable", "float",),
    
    "width" : 176 + SPACE_BONUS_INVENTORY,
    "height" : 585,
    
    "children" :
    (
    	## Inventory, Equipment Slots
    	{
    		"name" : "board",
    		"type" : "board",
    		"style" : ("attach",),
    
    		"x" : 0,
    		"y" : 0,
    
    		"width" : 176 + SPACE_BONUS_INVENTORY,
    		"height" : 585,
    
    		"children" :
    		(
    			## Title
    			{
    				"name" : "TitleBar",
    				"type" : "titlebar",
    				"style" : ("attach",),
    
    				"x" : 8,
    				"y" : 7,
    
    				"width" : 161 + SPACE_BONUS_INVENTORY,
    				"color" : "yellow",
    
    				"children" :
    				(
    					{ 
    						"name":"TitleName", 
    						"type":"text", 
    						"x": (161 + SPACE_BONUS_INVENTORY) / 2,
    						"y":3, 
    						"text":uiScriptLocale.INVENTORY_TITLE, 
    						"text_horizontal_align":"center" 
    					},
    
    				),
    			},
    			##Ocultar table de bonus
    			{
    				"name" : "OcultarTabla",
    				"type" : "button",
    
    				"x" : 161 + SPACE_BONUS_INVENTORY - 30,
    				"y" : 10,
    
    				"default_image" : "d:/ymir work/ui/public/minimize_button_01.sub",
    				"over_image" : "d:/ymir work/ui/public/minimize_button_02.sub",
    				"down_image" : "d:/ymir work/ui/public/minimize_button_03.sub",
    				"tooltip_text" : "Bonus",
    			},
    			###################################################
    			###################################################
    			###################################################
    			#############Tabla de Bonus @Chelo############
    			#Bonus de Defenza..........................
    			{
    				"name" : "txt_info_defenza",
    				"type" : "horizontalbar",
    
    				"x" : 176 - 7,
    				"y" : 33,
    				"width" : 125,
    
    				"children" :
    				(
    					{
    						"name" : "bonus_text_1",
    						"type" : "text",
    						"x" : 0,
    						"y" : 0,
    						"all_align" : "center",
    						"text" : "Defensif", 
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_defenza_espada",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 55,
    				"text" : "Epee:"
    			},
    			{
    				"name" : "Thin_info_defenza_espada",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 55 - 2,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_1",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_defenza_2manos",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75,
    				"text" : "Lance:"
    			},
    			{
    				"name" : "Thin_info_defenza_2manos",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 - 2,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_2",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_defenza_daga",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20,
    				"text" : "Dague:"
    			},
    			{
    				"name" : "Thin_info_defenza_daga",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_3",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_defenza_Felcha",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20,
    				"text" : "Fleche:"
    			},
    			{
    				"name" : "Thin_info_defenza_Felcha",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_4",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    
    			{
    				"name" : "txt_info_defenza_campana",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20,
    				"text" : "Gong:"
    			},
    			{
    				"name" : "Thin_info_defenza_campana",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_5",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_defenza_fan",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20,
    				"text" : "Eventail:"
    			},
    			{
    				"name" : "Thin_info_defenza_fan",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_6",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_resist_Magia",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Magie:"
    			},
    			{
    				"name" : "Thin_info_resist_Magia",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_7",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			########################################
    			{
    				"name" : "txt_info_resist_veneno",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Poison:"
    			},
    			{
    				"name" : "Thin_info_resist_veneno",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_8",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_resist_guerrero",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Guerrier:"
    			},
    			{
    				"name" : "Thin_info_resist_guerrero",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_9",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_resist_ninja",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Ninja:"
    			},
    			{
    				"name" : "Thin_info_resist_ninja",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_10",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_resist_sura",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Sura:"
    			},
    			{
    				"name" : "Thin_info_resist_sura",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_11",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_resist_chaman",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Shaman:"
    			},
    			{
    				"name" : "Thin_info_resist_chaman_",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_12",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			#Bonus de onfensivo..........................
    			{
    				"name" : "txt_info_onfensivo",
    				"type" : "horizontalbar",
    
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"width" : 125,
    
    				"children" :
    				(
    					{
    						"name" : "bonus_text_2",
    						"type" : "text",
    						"x" : 0,
    						"y" : 0,
    						"all_align" : "center",
    						"text" : "Offensif", 
    					},
    				),
    			},
    			########################################
    			{
    				"name" : "txt_info_criticos",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Critique:"
    			},
    			{
    				"name" : "Thin_info_criticos",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_13",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_penetracion",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Percant:"
    			},
    			{
    				"name" : "Thin_info_penetracion",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_14",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_danomedia",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Degats moyen:"
    			},
    			{
    				"name" : "Thin_info_danomedia",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_15",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_danohabilidad",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Degats comp.:"
    			},
    			{
    				"name" : "Thin_info_danohabilidad",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_16",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fmediohumano",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Demi humains:"
    			},
    			{
    				"name" : "Thin_info_fmediohumano",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_17",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fnomuerto",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Mort vivant:"
    			},
    			{
    				"name" : "Thin_info_fnomuerto",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_18",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fdemonio",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Mal:"
    			},
    			{
    				"name" : "Thin_info_fdemonio",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_19",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fguerrero",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Guerrier:"
    			},
    			{
    				"name" : "Thin_info_fguerrero",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_20",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fninja",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Ninja:"
    			},
    			{
    				"name" : "Thin_info_fninja",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_21",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fsura",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Sura:"
    			},
    			{
    				"name" : "Thin_info_fsura",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_22",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
    			{
    				"name" : "txt_info_fcham",
    				"type" : "text",
    				"x" : 176 - 5,
    				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"text" : "Shaman:"
    			},
    			{
    				"name" : "Thin_info_fcham",
    				"type" : "image",
    				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
    				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
    				"image" : IMAGE_CHELO,
    				"children" : 
    				(
    					{
    						"name" : "bonus_23",
    						"type" : "text",
    						"x" : 26,
    						"y" : 3,
    						"text" : "999",
    						"r" : 1.0,
    						"g" : 1.0,
    						"b" : 1.0,
    						"a" : 1.0,
    						"text_horizontal_align":"center"
    					},
    				),
    			},
    			###################################################
     

     

    Et le tour est joué ;)

     

    Petite astuce dans Notepad++ si en copiant/collant il vous remplace les tabulations par des espaces :

     

    Placez votre curseur là ou devraient être les tabulations, appuyez sur la touche de tabulation et appuyez sur la touche précédent.

    En faisant cette manip Notepad++ remplacera les espaces par le nombre de tabulation qu'il faut.

     

    Ce tutoriel est à présent terminé.

    Merci d'avoir lu en espérant en aider certains.

     

    Source : FreakGamers, et un peu moi ^^

    • Metin2 Dev 11
    • Good 2
    • Love 25
  3. Bonjour,

     

    Je cherche un moyen de modifier les antiflags de mon item_proto assez rapidement parce que un par un c'est juste pas possible ^^

    Voici les antiflags que je veux enlever sur la totalité des items : ANTI_DROP | ANTI_GIVE | ANTI_MYSHOP

     

     

    Version des files : 2014 (2016 by FE v3)

    Domaine (Base de données, Core, etc.) : Item_proto serveur

    Votre niveau (débutant, intermédiaire, avancé) : Débutant

     

     

    Recherches et tests effectué : Fonction rechercher/remplacer sur Notepad++ en sélectionnant l'antiflag et en le replaçant par du vide.

    Résultat des recherches et tests : (Hypothèse) Créer un décalage dans l'item_proto ce qui créer des erreurs empêchant le serveur de démarrer.

     

    Avez vous une technique ? :D

     

    Merci d'avance.

     

    En postant ma demande d'aide, j'affirme avoir lu et accepté le règlement des demandes d'aides.

  4. Salut !

     

    Dans un premier temps merci pour cette petite quête fort sympathique :)

     

    Je n'ai pas envie de faire mon chieur, loin de là mais il semblerait qu'il y ait un problème car les messages automatiques ne se lance que très rarement, et se désactive tout le temps tout seul (apparaît activé dans la quête mais les messages ne se lance pas).

  5. Tout d'abord merci pour ta réponse.

     

    Effectivement ça m'a réglé l'erreur de la ligne 850.

     

    Par contre en ayant bien mis toutes les tabulations, ça crash encore et ça indique une erreur ligne 866.

    0110 21:16:14205 :: 
    networkModule.py(line:208) SetSelectCharacterPhase
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    introSelect.py(line:15) 
    system.py(line:130) __pack_import
    
    networkModule.SetSelectCharacterPhase - :expected an indented block (uiToolTip.py, line 866)
    
    0110 21:16:14205 :: ============================================================================================================
    0110 21:16:14205 :: Abort!!!!
    
    
    

    Toutes les tabulations y sont.

     

    753db56cc9204d58aa5a4b5c03e03834.png

     

    Hidden Content

      Give reaction to this post to see the hidden content.

     

    Cordialement.

  6. Bonjour

     

    J'ai voulu installer le système de rareté disponible >ici< 

    Etant donné que je suis sous files 2014 (2016 by FE v3) j'ai effectué le petit changement à la ligne :

    if locale.IsCANADA():

    En :

    if localeInfo.IsCANADA():

    Mais au moment d'arriver au choix du personnage le client crash.

     

    Version des files : 2014 (2016 by FE v3)

    Domaine (Base de données, Core, etc.) : Client

    Votre niveau (débutant, intermédiaire, avancé) : Débutant/Intermédiaire

     

     

    Message d'erreur, capture d'écran :

     

    Mon syserr.txt :

    0110 20:39:15001 :: 
    networkModule.py(line:208) SetSelectCharacterPhase
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    introSelect.py(line:15) 
    system.py(line:130) __pack_import
    
    networkModule.SetSelectCharacterPhase - :expected an indented block (uiToolTip.py, line 850)
    
    0110 20:39:15001 :: ============================================================================================================
    0110 20:39:15001 :: Abort!!!!
    
    
    

     

    Hidden Content

      Give reaction to this post to see the hidden content.
    (lien Mega)

     

    Merci d'avance.

     

    En postant ma demande d'aide, j'affirme avoir lu et accepté le règlement des demandes d'aides.

Information importante

Conditions d’utilisation / Politique de confidentialité / Règles / Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.