Jump to content
×
×
  • Create New...
  • 0

Highlight system probblem (by Vegas)


emanuel

Question

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

4 answers to this question

Recommended Posts

  • 0

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()

 

  • Love 1
Link to comment
  • 0
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
  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.