Jump to content

Need some help with effect slot on pickup system


Recommended Posts

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:

	if app.WJ_ENABLE_PICKUP_ITEM_EFFECT:
		def HighlightSlot(self, slot):
			if slot>player.INVENTORY_PAGE_SIZE*player.INVENTORY_PAGE_COUNT:
				return
			
			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:
					self.wndItem.DeactivateSlot(inventorylocalslot-player.INVENTORY_PAGE_SIZE)
				else:
					self.wndItem.DeactivateSlot(inventorylocalslot)

				self.listHighlightedSlot.remove(inventorylocalslot)

 

  • Metin2 Dev 1
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. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

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