emanuel 18 Posted January 2, 2017 Share Posted January 2, 2017 Hellow guys..i try to put highlight system from VEGAS,source binary no error,server source no error..But uiinventory.py..in this line : def Close(self): self.Hide() LINE 493 if app.ENABLE_HIGHLIGHT_SYSTEM: def HighlightSlot(self, slot): if not slot in self.listHighlightedSlot: self.listHighlightedSlot.append(slot) def SetInventoryPage(self, page): self.inventoryTab[self.inventoryPageIndex].SetUp() self.inventoryPageIndex = page self.RefreshBagSlotWindow() And sysser error : networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiInventory.py, line 493) Any solutions ?Thx Link to comment Share on other sites More sharing options...
z35 170 Posted January 3, 2017 Share Posted January 3, 2017 Watch your tabs. Also, not sure if you have it but make it like this. def Close(self): self.Hide() if app.ENABLE_HIGHLIGHT_SYSTEM: def HighlightSlot(self, slot): if not slot in self.listHighlightedSlot: self.listHighlightedSlot.append(slot) def SetInventoryPage(self, page): self.inventoryTab[self.inventoryPageIndex].SetUp() self.inventoryPageIndex = page self.RefreshBagSlotWindow() 1 Link to comment Share on other sites More sharing options...
emanuel 18 Posted January 3, 2017 Author Share Posted January 3, 2017 8 hours ago, z35 said: Watch your tabs. Also, not sure if you have it but make it like this. def Close(self): self.Hide() if app.ENABLE_HIGHLIGHT_SYSTEM: def HighlightSlot(self, slot): if not slot in self.listHighlightedSlot: self.listHighlightedSlot.append(slot) def SetInventoryPage(self, page): self.inventoryTab[self.inventoryPageIndex].SetUp() self.inventoryPageIndex = page self.RefreshBagSlotWindow() Thank you,that help me ! Cheers Link to comment Share on other sites More sharing options...
emanuel 18 Posted January 3, 2017 Author Share Posted January 3, 2017 now..that appear :| wtf networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:'return' outside function (uiInventory.py, line 1099) That is function : def OverInItem(self, overSlotPos): overSlotPosGlobal = self.__InventoryLocalSlotPosToGlobalSlotPos(overSlotPos) if app.ENABLE_HIGHLIGHT_SYSTEM: stat = 0 slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(overSlotPos) itemVnum = player.GetItemIndex(slotNumber) 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: stat = 1 elif constInfo.IS_ACCE_ITEM(itemVnum, 1) == TRUE: metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)] isActivated = metinSocket[0] if isActivated == 1: stat = 1 if not stat: self.wndItem.DeactivateSlot(overSlotPos) try: self.listHighlightedSlot.remove(slotNumber) except: pass self.wndItem.SetUsableItem(False) if overSlotPosGlobal in self.liHighlightedItems: self.liHighlightedItems.remove(overSlotPosGlobal) self.wndItem.DeactivateSlot(overSlotPos) if mouseModule.mouseController.isAttached(): attachedItemType = mouseModule.mouseController.GetAttachedType() if player.SLOT_TYPE_INVENTORY == attachedItemType: attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber() attachedItemVNum = mouseModule.mouseController.GetAttachedItemIndex() if self.__CanUseSrcItemToDstItem(attachedItemVNum, attachedSlotPos, overSlotPosGlobal): self.wndItem.SetUsableItem(True) self.ShowToolTip(overSlotPosGlobal) LINE 1099 return self.ShowToolTip(overSlotPosGlobal) Any solution dude ? I put something here if you look : if app.ENABLE_HIGHLIGHT_SYSTEM: Link to comment Share on other sites More sharing options...
emanuel 18 Posted January 4, 2017 Author Share Posted January 4, 2017 Done.thx Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now