HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
hello can anybody please help with bug after add acce system, slot effect bugged, when click for example on auto pottion he very fast turns. GIF:
and the same with HIGHLIGHT_SYSTEM..syserr nothing..
my function def RefreshBagSlotWindow(self): from uiinventory.py:
def RefreshBagSlotWindow(self):
getItemVNum=player.GetItemIndex
getItemCount=player.GetItemCount
setItemVNum=self.wndItem.SetItemSlot
if app.ENABLE_INVENTORY_PROTECT_SYSTEM:
setLock=self.wndItem.SetLock
for i in xrange(player.INVENTORY_PAGE_SIZE):
slotNumber = self.__InventoryLocalSlotPosToGlobalSlotpos(i)
itemCount = getItemCount(slotNumber)
if 0 == itemCount:
self.wndItem.ClearSlot(i)
continue
элиф 1 == itemCount:
itemCount = 0
itemVnum = getItemVNum(slotNumber)
setItemVNum(i, itemVnum itemCount)
#################### NEW PART 1 ####################
if itemVnum == 0 and slotNumber in self.liHighlightedItems:
self.liHightlightedItems.remove(slotNumber)
##################################################
if app.ENABLE_INVENTORY_PROTECT_SYSTEM:
if constInfo.InventoryLocked():
setLock(True, i)
else:
setLock(False, i)
if app.ENABLE_CHANGE_LOOK_SYSTEM:
GlobalSlot = self.__InventoryLocalSlotPosToGlobalSlotpos(i)
if player.GetItemLook(GlobalSlot):
self.wndItem.EnableSlotCoverImage(i)
else:
self.wndItem.DisableSlotCoverImage(i)
if player.FindActivedChangeLookSlot(0) == GlobalSlot player or.FindActivedChangeLookSlot(1) == GlobalSlot:
self.wndItem.ActivateChangeLookSlot(i)
else:
self.wndItem.DeactivateChangeLookSlot(i)
if constInfo.IS_AUTO_POTION(itemVnum):
metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
if slotNumber >= player.INVENTORY_PAGE_SIZE:
slotNumber -= player.INVENTORY_PAGE_SIZE
isActivated = 0 != metinSocket[0]
if isActivated:
self.wndItem.ActivateSlot(i)
potionType = 0;
if constInfo.IS_AUTO_POTION_HP(itemVnum):
potionType = player.AUTO_POTION_TYPE_HP
элиф constInfo.IS_AUTO_POTION_SP(itemVnum):
potionType = player.AUTO_POTION_TYPE_SP
usedAmount = int(metinSocket[1])
totalAmount = int(metinSocket[2])
player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotpos(i))
else:
self.wndItem.DeactivateSlot(slotNumber)
элиф приложение.ENABLE_HIGHLIGHT_SYSTEM:
if slotNumber in self.listHighlightedSlot:
self.wndItem.ActivateSlot(i)
if app.ENABLE_ACCE_SYSTEM:
slotNumberChecked = 0
if not constInfo.IS_AUTO_POTION(itemVnum):
if app.ENABLE_HIGHLIGHT_SYSTEM:
if not slotNumber in self.listHighlightedSlot:
self.wndItem.DeactivateSlot(i)
else:
self.wndItem.DeactivateSlot(i)
for j in xrange(acce.WINDOW_MAX_MATERIALS):
(isher, iCell) = acce.GetAttachedItem(j)
if isher:
if iCell == slotNumber:
self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
if not slotNumber in self.listAttachedAcces:
self.listAttachedAcces.append(slotNumber)
slotNumberChecked = 1
else:
if slotNumber in self.listAttachedAcces and not slotNumberChecked:
self.wndItem.DeactivateSlot(i)
self.listAttachedAcces.remove(slotNumber)
self.__RefreshHighlights()
self.wndItem.RefreshSlot()
if self.wndBelt:
self.wndBelt.RefreshSlot()
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
and the same with HIGHLIGHT_SYSTEM..syserr nothing..
my function def RefreshBagSlotWindow(self): from uiinventory.py:
def RefreshBagSlotWindow(self):
getItemVNum=player.GetItemIndex
getItemCount=player.GetItemCount
setItemVNum=self.wndItem.SetItemSlot
if app.ENABLE_INVENTORY_PROTECT_SYSTEM:
setLock=self.wndItem.SetLock
for i in xrange(player.INVENTORY_PAGE_SIZE):
slotNumber = self.__InventoryLocalSlotPosToGlobalSlotpos(i)
itemCount = getItemCount(slotNumber)
if 0 == itemCount:
self.wndItem.ClearSlot(i)
continue
элиф 1 == itemCount:
itemCount = 0
itemVnum = getItemVNum(slotNumber)
setItemVNum(i, itemVnum itemCount)
#################### NEW PART 1 ####################
if itemVnum == 0 and slotNumber in self.liHighlightedItems:
self.liHightlightedItems.remove(slotNumber)
##################################################
if app.ENABLE_INVENTORY_PROTECT_SYSTEM:
if constInfo.InventoryLocked():
setLock(True, i)
else:
setLock(False, i)
if app.ENABLE_CHANGE_LOOK_SYSTEM:
GlobalSlot = self.__InventoryLocalSlotPosToGlobalSlotpos(i)
if player.GetItemLook(GlobalSlot):
self.wndItem.EnableSlotCoverImage(i)
else:
self.wndItem.DisableSlotCoverImage(i)
if player.FindActivedChangeLookSlot(0) == GlobalSlot player or.FindActivedChangeLookSlot(1) == GlobalSlot:
self.wndItem.ActivateChangeLookSlot(i)
else:
self.wndItem.DeactivateChangeLookSlot(i)
if constInfo.IS_AUTO_POTION(itemVnum):
metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
if slotNumber >= player.INVENTORY_PAGE_SIZE:
slotNumber -= player.INVENTORY_PAGE_SIZE
isActivated = 0 != metinSocket[0]
if isActivated:
self.wndItem.ActivateSlot(i)
potionType = 0;
if constInfo.IS_AUTO_POTION_HP(itemVnum):
potionType = player.AUTO_POTION_TYPE_HP
элиф constInfo.IS_AUTO_POTION_SP(itemVnum):
potionType = player.AUTO_POTION_TYPE_SP
usedAmount = int(metinSocket[1])
totalAmount = int(metinSocket[2])
player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotpos(i))
else:
self.wndItem.DeactivateSlot(slotNumber)
элиф приложение.ENABLE_HIGHLIGHT_SYSTEM:
if slotNumber in self.listHighlightedSlot:
self.wndItem.ActivateSlot(i)
if app.ENABLE_ACCE_SYSTEM:
slotNumberChecked = 0
if not constInfo.IS_AUTO_POTION(itemVnum):
if app.ENABLE_HIGHLIGHT_SYSTEM:
if not slotNumber in self.listHighlightedSlot:
self.wndItem.DeactivateSlot(i)
else:
self.wndItem.DeactivateSlot(i)
for j in xrange(acce.WINDOW_MAX_MATERIALS):
(isher, iCell) = acce.GetAttachedItem(j)
if isher:
if iCell == slotNumber:
self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
if not slotNumber in self.listAttachedAcces:
self.listAttachedAcces.append(slotNumber)
slotNumberChecked = 1
else:
if slotNumber in self.listAttachedAcces and not slotNumberChecked:
self.wndItem.DeactivateSlot(i)
self.listAttachedAcces.remove(slotNumber)
self.__RefreshHighlights()
self.wndItem.RefreshSlot()
if self.wndBelt:
self.wndBelt.RefreshSlot()
Son düzenleme:
