Register for your free account! | Forgot your password?

You last visited: Today at 06:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Verkaufsdialog bug?

Discussion on Verkaufsdialog bug? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 7
Received Thanks: 0
Verkaufsdialog bug?

Hallo erstmal,
vorweg möchte ich sagen, dass ich schon länger nach einer lösung suche. Da ich aber nicht weiß wie ich diesen "bug" nennen soll oder wie der heißt, habe ich nichts gefunden was mir helfen könnte.

Hier das problem
..
Es wird nur das Item auf der 1. Seite und 2. Slot im Dialog angezeigt.
Gruß FettKopf
FettKopf22 is offline  
Old 03/08/2018, 23:17   #2
 
elite*gold: 0
Join Date: Feb 2011
Posts: 7
Received Thanks: 0
Hat niemand eine Idee woran es liegen könnte?
FettKopf22 is offline  
Old 08/11/2020, 18:30   #3

 
G.I Duke's Avatar
 
elite*gold: 313
Join Date: Apr 2013
Posts: 585
Received Thanks: 122
Der Thread ist zwar älter dennoch finde ich nichts hierzu. Ich schlage mich
mit dem selben Problem rum. Kennt ja jemand eine Lösung zu bzw. wieso es
so ist und wie man das fixxen kann ?

kind regards
G.I Duke is offline  
Old 08/11/2020, 18:36   #4
 
ThaRielFliege's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 684
Received Thanks: 551
Poste mal deine def SellAttachedItem(self): aus der uishop.py oder lad die uishop.py hoch.
ThaRielFliege is offline  
Old 08/11/2020, 21:30   #5

 
G.I Duke's Avatar
 
elite*gold: 313
Join Date: Apr 2013
Posts: 585
Received Thanks: 122
Quote:
Originally Posted by ThaRielFliege View Post
Poste mal deine def SellAttachedItem(self): aus der uishop.py oder lad die uishop.py hoch.
hier die ganze uishop.py und danke für die Antwort!
G.I Duke is offline  
Old 08/11/2020, 21:59   #6
 
ThaRielFliege's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 684
Received Thanks: 551
Tausch das:
HTML Code:
            if localeInfo.IsBRAZIL():
                itemIndex = player.GetItemIndex(attachedSlotPos)
                item.SelectItem(itemIndex)
            else:
                item.SelectItem(attachedItemIndex)
damit aus:

HTML Code:
if player.SLOT_TYPE_INVENTORY == attachedSlotType:
			itemIndex = player.GetItemIndex(attachedSlotPos)
			item.SelectItem(itemIndex)

ThaRielFliege is offline  
Thanks
2 Users
Old 08/11/2020, 22:06   #7

 
G.I Duke's Avatar
 
elite*gold: 313
Join Date: Apr 2013
Posts: 585
Received Thanks: 122
Quote:
Originally Posted by ThaRielFliege View Post
Tausch das:
HTML Code:
            if localeInfo.IsBRAZIL():
                itemIndex = player.GetItemIndex(attachedSlotPos)
                item.SelectItem(itemIndex)
            else:
                item.SelectItem(attachedItemIndex)
damit aus:

HTML Code:
if player.SLOT_TYPE_INVENTORY == attachedSlotType:
			itemIndex = player.GetItemIndex(attachedSlotPos)
			item.SelectItem(itemIndex)

Leider immernoch, egal welches Item auf Slot 2 liegt wird angezeigt
G.I Duke is offline  
Old 08/11/2020, 22:20   #8
 
ThaRielFliege's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 684
Received Thanks: 551
Lad mal deine mousemodule.py hoch.
Ich hab das vor ewigkeiten mal gefixxt weiß nur nicht mehr genau an was es lag, war glaube weil er den slot nicht richtig bekommen hat.
ThaRielFliege is offline  
Thanks
2 Users
Old 08/11/2020, 22:21   #9

 
G.I Duke's Avatar
 
elite*gold: 313
Join Date: Apr 2013
Posts: 585
Received Thanks: 122
Quote:
Originally Posted by ThaRielFliege View Post
Lad mal deine mousemodule.py hoch.
Ich hab das vor ewigkeiten mal gefixxt weiß nur nicht mehr genau an was es lag, war glaube weil er den slot nicht richtig bekommen hat.
Hier die mousemodule.py , und echt danke man dass du mir da hilfst !

G.I Duke is offline  
Old 08/11/2020, 22:32   #10
 
ThaRielFliege's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 684
Received Thanks: 551
oke uiinventory brauch ich noch
ThaRielFliege is offline  
Thanks
2 Users
Old 08/11/2020, 22:35   #11

 
G.I Duke's Avatar
 
elite*gold: 313
Join Date: Apr 2013
Posts: 585
Received Thanks: 122
Quote:
Originally Posted by ThaRielFliege View Post
oke uiinventory brauch ich noch

hier bitteschön
G.I Duke is offline  
Old 08/12/2020, 00:09   #12
 
ThaRielFliege's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 684
Received Thanks: 551
Für die, die den Bug auch haben einfach die 2 funktionen in der uishop.py ersetzen.

HTML Code:
	def SellAttachedItem(self):

		if shop.IsPrivateShop():
			mouseModule.mouseController.DeattachObject()
			return

		attachedSlotType = mouseModule.mouseController.GetAttachedType()
		attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
		attachedCount = mouseModule.mouseController.GetAttachedItemCount()

		if player.SLOT_TYPE_INVENTORY == attachedSlotType:
			itemIndex = player.GetItemIndex(attachedSlotPos)
			item.SelectItem(itemIndex)
			
			if item.IsAntiFlag(item.ANTIFLAG_SELL):
				popup = uiCommon.PopupDialog()
				popup.SetText(localeInfo.SHOP_CANNOT_SELL_ITEM)
				popup.SetAcceptEvent(self.__OnClosePopupDialog)
				popup.Open()
				self.popup = popup
				return

			if player.IsValuableItem(attachedSlotPos):

				itemPrice = item.GetISellItemPrice()

				if item.Is1GoldItem():
					itemPrice = attachedCount / itemPrice / 5
				else:
					itemPrice = itemPrice * max(1, attachedCount) / 5

				itemName = item.GetItemName()

				questionDialog = uiCommon.QuestionDialog()
				questionDialog.SetText(localeInfo.DO_YOU_SELL_ITEM(itemName, attachedCount, itemPrice))

				questionDialog.SetAcceptEvent(lambda arg1=attachedSlotPos, arg2=attachedCount: self.OnSellItem(arg1, arg2))
				questionDialog.SetCancelEvent(ui.__mem_func__(self.OnCloseQuestionDialog))
				questionDialog.Open()
				self.questionDialog = questionDialog
		
				constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(1)

			else:
				self.OnSellItem(attachedSlotPos, attachedCount)

		else:
			snd.PlaySound("sound/ui/loginfail.wav")

		mouseModule.mouseController.DeattachObject()

	def OnSellItem(self, slotPos, count):
		net.SendShopSellPacketNew(slotPos, count)
		snd.PlaySound("sound/ui/money.wav")
		self.OnCloseQuestionDialog()
ThaRielFliege is offline  
Thanks
3 Users
Reply

Tags
bug, metin2, verkauf


Similar Threads Similar Threads
[SEARCH]Gold bug , castel bug ans speed repair bug for key bug or crystal bug
04/23/2020 - Browsergames - 3 Replies
Hi I search key or crystal bug :) I will give gold , castel and speed repair bug Please send me skype : ciechomek111



All times are GMT +2. The time now is 06:03.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.