Jump to content

Highlight system probblem (by Vegas)


Recommended Posts

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

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
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.