fixlemek için uygulayınız.
uiinventory.py:
Kod
#Arat;
ITEM_MALL_BUTTON_ENABLE = True
#Altına ekle;
ENABLE_SELF_STACK_SCROLLS = True
#Arat;
elif item.IsRefineScroll(srcItemVID):
self.RefineItem(srcItemSlotPos, dstItemSlotPos)
self.wndItem.SetUseMode(False)
#Değiştir;
elif item.IsRefineScroll(srcItemVID):
if ENABLE_SELF_STACK_SCROLLS and player.GetItemIndex(srcItemSlotPos) == player.GetItemIndex(dstItemSlotPos):
self.__SendMoveItemPacket(srcItemSlotPos, dstItemSlotPos,0)
else:
self.RefineItem(srcItemSlotPos, dstItemSlotPos)
self.wndItem.SetUseMode(False)
#Arat;
elif item.GetUseType(srcItemVID) in self.USE_TYPE_TUPLE:
self.__SendUseItemToItemPacket(srcItemSlotPos, dstItemSlotPos)
#Altına ekle;
elif ENABLE_SELF_STACK_SCROLLS and srcItemVID in (71052,71051,71084,71085):
self.__SendUseItemToItemPacket(srcItemSlotPos, dstItemSlotPos)
#Arat;(2 tane var ikisinede ekle)
elif (player.GetItemFlags(srcSlotPos) & ITEM_FLAG_APPLICABLE) == ITEM_FLAG_APPLICABLE:
return True
#Altına ekle;(2 tane var ikisinede ekle)
elif ENABLE_SELF_STACK_SCROLLS and srcItemVNum in (71052,71051,71084,71085):
return True
#Arat:
if item.IsRefineScroll(srcItemVNum):
if player.REFINE_OK == player.CanRefine(srcItemVNum, dstSlotPos):
return True
#Değiştir;
if item.IsRefineScroll(srcItemVNum):
if player.REFINE_OK == player.CanRefine(srcItemVNum, dstSlotPos):
return True
elif ENABLE_SELF_STACK_SCROLLS and player.GetItemIndex(dstSlotPos) == srcItemVNum:
return True
#Arat:
def __SendUseItemToItemPacket(self, srcSlotPos, dstSlotPos):
# °³ÀλóÁ¡ ¿°í ÀÖ´Â µ¿¾È ¾ÆÀÌÅÛ »ç¿ë ¹æÁö
if uiPrivateShopBuilder.IsBuildingPrivateShop():
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.USE_ITEM_FAILURE_PRIVATE_SHOP)
return
net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)
#Değiştir;
def __SendUseItemToItemPacket(self, srcSlotPos, dstSlotPos):
if uiPrivateShopBuilder.IsBuildingPrivateShop():
chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.USE_ITEM_FAILURE_PRIVATE_SHOP)
return
dstItemVNum = player.GetItemIndex(dstSlotPos)
srcItemVNum = player.GetItemIndex(srcSlotPos)
if ENABLE_SELF_STACK_SCROLLS and dstItemVNum == srcItemVNum:
self.__SendMoveItemPacket(srcSlotPos, dstSlotPos, 0)
else:
net.SendItemUseToItemPacket(srcSlotPos, dstSlotPos)
Daha Çok Göster