Jump to content

xP3NG3Rx

Honorable Member
  • Posts

    839
  • Joined

  • Days Won

    393
  • Feedback

    100%

Posts posted by xP3NG3Rx

  1. The attaching function w/ right mouse button is located into the uiInventory.py file, because you are clicking on an item in the inventory.
    You have to check the current opened window to blocks the equiping the sash and make some magic in the "def __UseItem(self, slotIndex):" and "def __SendUseItemPacket(self, slotPos):"

    The slot highlighting is dependig on what version is that what you are using.

    • Love 1
  2. Change your HideAllQuestWindow function to this:

    	def HideAllQuestWindow(self):
    		[obj.OnCancel() for obj in self.wndQuestWindow]

     

    This is need in that case if your self.wndQuestWindow variable is a list( [] ) what hasn't attribute "iteritems" as the errorlog said also.
    That one-line command will iterate each items in the list, and that will call the "OnClose" method on every object in the list.
    Same as this:

    	def HideAllQuestWindow(self):
    		for obj in self.wndQuestWindow:
    			obj.OnClose()

    or this:

    	def HideAllQuestWindow(self):
    		for i in xrange(len(self.wndQuestWindow)):
    			self.wndQuestWindow[i].OnClose()

    or...

    	def HideAllQuestWindow(self):
    		map(lambda x:x.OnClose(), self.wndQuestWindow)

    and many more opportunities...

    • Love 5
×
×
  • 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.