Jump to content

Need some help with effect slot on pickup system

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The problem is not in game.py. Also in InterFaceModule.py.

game.py sends a function to InterfaceModule

There is HighlightSlot inside this function.

Syserr tells you

Answer: What does HighlightSlot do? You used this here. But I don't understand why he says you used it. Please explain to InterFaceModule.py what HighlightSlot does.

Link to comment
Share on other sites

  • Contributor

@BadGrecee don't worry about it, he probably fucked up some tabs(as usual) or pasted that function outside of InventoryWindow(the benefits of not bothering to even learn the basics of Python).

@Tuckii please search "def HighlightSlot" in uiInventory.py, then fix the damn tabs/spaces. 


If you really don't have that function(which I doubt), then here, extend "class InventoryWindow(ui.ScriptWindow):" with these methods:

		def HighlightSlot(self, slot):
			if not slot in self.listHighlightedSlot:
				self.listHighlightedSlot.append (slot)

		def DelHighlightSlot(self, inventorylocalslot):
			if inventorylocalslot in self.listHighlightedSlot:
				if inventorylocalslot >= player.INVENTORY_PAGE_SIZE:



Link to comment
Share on other sites

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

  • Similar Content

  • Activity

    1. 2

      acces root denied

    2. 7

      Acce system

    3. 5

      Transmutation Reversal - bug

    4. 0

      How to compile Metin2 .py script to .pyc

    5. 2

      acces root denied

    6. 2

      VPS Choice

  • 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.