- Mesaj
- 658
- Çözümler
- 46
- Beğeni
- 1.104
- Puan
- 1.130
- Ticaret Puanı
- 1
Client Syserr:
0417 23:23:22147 :: Traceback (most recent call last):
0417 23:23:22147 :: File "pack/root/ui.py", line 1896, in OnUnselectItemSlot
0417 23:23:22149 ::
0417 23:23:22149 :: self.eventUnselectItemSlot(slotNumber)
0417 23:23:22149 :: File "pack/root/ui.py", line 58, in __call__
0417 23:23:22149 ::
0417 23:23:22149 :: return self.call(*arg)
0417 23:23:22149 :: File "pack/root/ui.py", line 49, in __call__
0417 23:23:22149 ::
0417 23:23:22149 :: return self.func(self.obj, *arg)
0417 23:23:22149 :: File "pack/root/uiShop.py", line 388, in UnselectItemSlot
0417 23:23:22149 ::
0417 23:23:22149 :: self.AskBuyItem(selectedSlotPos)
0417 23:23:22149 :: File "pack/root/uiShop.py", line 433, in AskBuyItem
0417 23:23:22150 ::
0417 23:23:22150 :: evolution = shop.GetItemEvolution(slotPos)
0417 23:23:22150 :: AttributeError
0417 23:23:22150 :: :
0417 23:23:22150 :: 'module' object has no attribute 'GetItemEvolution'
0417 23:23:22150 ::
Resimdeki great offshop gui sini ekledim ama satın alma yaptırmıyor bu şekilde hata veriyor.
uishop.py:
def AskBuyItem(self, slotPos):
slotPos = self.__GetRealIndex(slotPos)
itemIndex = shop.GetItemID(slotPos)
itemPrice = shop.GetItemPrice(slotPos)
itemCount = shop.GetItemCount(slotPos)
item.SelectItem(itemIndex)
evolution = shop.GetItemEvolution(slotPos)
itemName = localeInfo.SILAH_EVRIM_TEXT[evolution] + item.GetItemName()
itemBuyQuestionDialog = uiCommon.QuestionDialog()
itemBuyQuestionDialog.SetText(localeInfo.DO_YOU_BUY_ITEM(itemName, itemCount, localeInfo.NumberToMoneyString(itemPrice)))
itemBuyQuestionDialog.SetAcceptEvent(lambda arg=True: self.AnswerBuyItem(arg))
itemBuyQuestionDialog.SetCancelEvent(lambda arg=False: self.AnswerBuyItem(arg))
itemBuyQuestionDialog.Open()
itemBuyQuestionDialog.pos = slotPos
self.itemBuyQuestionDialog = itemBuyQuestionDialog
def AnswerBuyItem(self, flag):
if flag:
pos = self.itemBuyQuestionDialog.pos
net.SendShopBuyPacket(pos)
self.itemBuyQuestionDialog.Close()
self.itemBuyQuestionDialog = None
constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0)