Jump to content

v17.5 Active Pet Seal Effect


Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
Dnia 1.10.2018 o 12:21, Krzychu20 napisał:

not working, but i did exactly what was in tutorial (I checked [tab]), someone knows where is problem?

Try this:

			elif 53001 <= itemVnum and 53051 >= itemVnum:
				metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
				
				if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
					slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
				
				isActivated = 0 != metinSocket[1]
				if isActivated:
					self.wndItem.ActivateSlot(slotNumber)
				else:
					self.wndItem.DeactivateSlot(slotNumber)

 

Link to comment
Share on other sites

vor 17 Stunden schrieb qdhq780:

Try this:


			elif 53001 <= itemVnum and 53051 >= itemVnum:
				metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
				
				if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
					slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
				
				isActivated = 0 != metinSocket[1]
				if isActivated:
					self.wndItem.ActivateSlot(slotNumber)
				else:
					self.wndItem.DeactivateSlot(slotNumber)

 

still doesnt work, i tried 4 different positions in uiinventory, nothing happend. Only taskbar works.

Link to comment
Share on other sites

Am 7.10.2018 um 22:11 schrieb qdhq780:

In my case the function I sent you acts as it should except taskbar

 

As i said, it doesnt work for me. I tried everything in uiinventory but nothing works. The uitaskbar part from page 1 works for taskbar fine, but inventory doesnt. (Ps: i have sash and item highlights installed. May it has problems with sash highlight system?

 

 

UPDATE! now it works. For everyone who have problems with it, i bet u guy have sash installed. Do it like this in uiinventory:

 

Spoiler

H7VoaNW.png

it works for me now perfectly, Sash active slots still works grate too, no conflicts with it.

 

CAREFULL! If you copied my code, you need to edit metinSocket[2] !! I make the effect in socket2 but by default its in socket1 if you take the game src files from page1.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...
On 10/9/2018 at 4:59 AM, Saito said:

As i said, it doesnt work for me. I tried everything in uiinventory but nothing works. The uitaskbar part from page 1 works for taskbar fine, but inventory doesnt. (Ps: i have sash and item highlights installed. May it has problems with sash highlight system?

 

 

UPDATE! now it works. For everyone who have problems with it, i bet u guy have sash installed. Do it like this in uiinventory:

 

  Hide contents

H7VoaNW.png

it works for me now perfectly, Sash active slots still works grate too, no conflicts with it.

Not work help

 

EDv8WB.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 4
Link to comment
Share on other sites

Still does not work for me.

Quote

			if app.ENABLE_SASH_SYSTEM:
				slotNumberChecked = 0
				if not constInfo.IS_AUTO_POTION(itemVnum):
					if app.ENABLE_HIGHLIGHT_SYSTEM:
						if not slotNumber in self.listHighlightedSlot:
							self.wndItem.DeactivateSlot(i)
					else:
						self.wndItem.DeactivateSlot(i)
				
				for j in xrange(sash.WINDOW_MAX_MATERIALS):
					(isHere, iCell) = sash.GetAttachedItem(j)
					if isHere:
						if iCell == slotNumber:
							self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
							if not slotNumber in self.listAttachedSashs:
								self.listAttachedSashs.append(slotNumber)
							
							slotNumberChecked = 1
					else:
						if slotNumber in self.listAttachedSashs and not slotNumberChecked:
							self.wndItem.DeactivateSlot(i)
							self.listAttachedSashs.remove(slotNumber)
							
				if itemVnum >= 53001 and itemVnum <= 5326:
					metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]

					if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
						slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
					
					isActivated = 0 != metinSocket[3]
					if isActivated:
						self.wndItem.ActivateSlot(slotNumber)
					else:
						self.wndItem.DeactivateSlot(slotNumber)

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
			itemCount = getItemCount(slotNumber)
			if 0 == itemCount:
				self.wndItem.ClearSlot(i)
				continue
			elif 1 == itemCount:
				itemCount = 0

			itemVnum = getItemVNum(slotNumber)
			setItemVNum(i, itemVnum, itemCount)
			
			if constInfo.IS_PET(itemVnum):
				metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
				isActivated = 0 != metinSocket[2]
				if isActivated:
					self.wndItem.ActivateSlot(i, (181.00 / 255.0), (113.00 / 255.0), (21.00 / 255.0), 1.0)
				else:
					self.wndItem.DeactivateSlot(i)			
			
			if app.ENABLE_CHANGELOOK_SYSTEM:
				itemTransmutedVnum = player.GetItemTransmutation(slotNumber)
				if itemTransmutedVnum:
					self.wndItem.DisableCoverButton(i)
				else:
					self.wndItem.EnableCoverButton(i)

 

Link to comment
Share on other sites

  • 11 months later...
  • Premium
On 8/6/2018 at 7: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:

  Hide 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)

Actually, itemVnum is not defined. So:

Find:

					## 자동물약 (#72723, #72724) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
					if constInfo.IS_AUTO_POTION(itemIndex):

Add above:

itemVnum = player.GetItemIndex(Position)

Find:

					## 자동물약 (#72723, #72724) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo]
					if constInfo.IS_AUTO_POTION(itemIndex):
						# metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
						metinSocket = [player.GetItemMetinSocket(Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]

						if 0 != int(metinSocket[0]):
							slot.ActivateSlot(slotNumber)
						else:
							slot.DeactivateSlot(slotNumber)

Add after:

					elif itemVnum >= 53001 and itemVnum <= 53256:
						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)

 

Demo:

https://metin2.download/picture/q02XRgzBc2JOpSG9k4TInjV7fA2kd9EW/.gif

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Love 3
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 8 months later...
On 10/17/2017 at 1:24 AM, Tasho said:

 

  Hide contents

 

I don't think is a "shinning" effect, is just multiple effects added. :)

Write me on private for weapon too.

d2c4c13152d7b71344e85dd142bd33e5.gif

Example for armor:



//InstanceBase.cpp
//Search for:
	case CItemData::ITEM_TYPE_ARMOR:
		__ClearArmorRefineEffect();
//Add after:
		if (pItem->GetSubType() == CItemData::ARMOR_BODY)
		{
			DWORD dwVnum = pItem->GetIndex();
			if ((11297 <= dwVnum && dwVnum <= 11299) || (11497 <= dwVnum && dwVnum <= 11499) || (11697 <= dwVnum && dwVnum <= 11699) || (11897 <= dwVnum && dwVnum <= 11899))
			{
				for (int iCount = 0; iCount < 10; iCount++)
					__AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_REFINED7 + refine - 7);
			}	
		}

 

 

 

Thanks for release. :D

could someone share the effect for the weapon? Thanks.

Edited by Metin2 Dev
Core X - External 2 Internal
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.