Jump to content

v17.5 Active Pet Seal Effect


Recommended Posts

  • Premium

It was not working because, i add function before sash system, and sash disable slots:

Spoiler


			if app.ENABLE_SASH_SYSTEM:
				slotNumberChecked = 0
				if not constInfo.IS_AUTO_POTION(itemVnum):
					self.wndItem.DeactivateSlot(i)

 

Soluction, add xP3NG3Rx tutorial after all others. like this:

Spoiler

			if itemVnum >= 53001 and itemVnum <= 53256:
				metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]# <!> globalSlotNumber may be different <!>
				isActivated = 0 != metinSocket[1]
				if isActivated:
					self.wndItem.ActivateSlot(i)
				else:
					self.wndItem.DeactivateSlot(i)
					
		self.wndItem.RefreshSlot()
		if self.wndBelt:
			self.wndBelt.RefreshSlot()

 

print:

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 11
  • Confused 1
  • Good 1
  • Love 1
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
  • 1 year later...
On 8/6/2018 at 8:38 AM, Helia01 said:

 

 

it's easy:
open file: 
uitaskbar.py

find string:
if constInfo.IS_AUTO_POTION(itemIndex):
and past this code under block

 

Example:

  Reveal hidden contents

rNMq1kO.png

 


 

elif itemIndex >= 53001 and itemVnum <= 53005:
	metinSocket = [player.GetItemMetinSocket(Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
							
	isActivated = 0 != metinSocket[1]
							
	if isActivated:
		slot.ActivateSlot(slotNumber)
	else:
		slot.DeactivateSlot(slotNumber)

this does not work for me on the taskbar, can anyone help?

Link to comment
Share on other sites

Announcements



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