Adauga o imbunatatire QoL de pe serverul Oficial de Metin2:
- Un checkbox care apare pe fereastra popup de confirmare atunci cand vrei sa vinzi un item la NPC.
- Daca este bifat acest checkbox, nu va mai aparea fereastra de confirmare atunci cand vei vinde un item.
Mai exact, jucatorul poate bifa o optiune pentru a sari peste fereastra de confirmare la sell, iar sistemul va retine alegerea.
*Poze / Video:
*Link download / Code:
Deschide uiInventory.py si cauta:
Code:
def __SellItem(self, window_type, itemSlotPos):
if not player.IsEquipmentSlot(window_type, itemSlotPos):
itemIndex = player.GetItemIndex(window_type, itemSlotPos)
itemCount = player.GetItemCount(window_type, itemSlotPos)
self.sellingSlotWindow = window_type
self.sellingSlotNumber = itemSlotPos
self.sellingSlotitemIndex = itemIndex
self.sellingSlotitemCount = itemCount
item.SelectItem(itemIndex)
## ¾ÈƼ Ç÷¹±× °Ë»ç ºüÁ®¼ Ãß°¡
## 20140220
if item.IsAntiFlag(item.ANTIFLAG_SELL):
popup = uiCommon.PopupDialog()
popup.SetText(localeInfo.SHOP_CANNOT_SELL_ITEM)
popup.SetAcceptEvent(self.__OnClosePopupDialog)
popup.Open()
self.pop = popup
return
Deschide uiInventory.py si cauta:
Code:
self.questionDialog.Open()
Deschide uiInventory.py si cauta:
Code:
def SellItem(self):
Deschide uiInventory.py si cauta:
Code:
def OnCloseQuestionDialog(self):
Deschide uiShop.py si cauta:
Code:
def SellAttachedItem(self):
Code:
if localeInfo.IsBRAZIL():
itemIndex = player.GetItemIndex(attachedSlotWindow, attachedSlotPos)
item.SelectItem(itemIndex)
else:
item.SelectItem(attachedItemIndex)
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(attachedSlotWindow, attachedSlotPos):
Deschide uiShop.py si cauta:
Code:
questionDialog.Open()
Deschide uiCommon.py si cauta:
Code:
class QuestionDialog(ui.ScriptWindow):
Deschide uiCommon.py si cauta:
Code:
def __init__(self, layer = "UI"):
ui.ScriptWindow.__init__(self)
self.__CreateDialog()
Deschide uiCommon.py si cauta:
Code:
def Open(self,
In functia Open adauga:
Deschide uiCommon.py si adauga in clasa QuestionDialog:
Deschide ui.py si adauga:
Deschide constInfo.py si adauga:


la acest mesaj și conținutul se va afișa automat.


