xP3NG3Rx

c++ [GF v17.5] Active pet seal effect

47 posts in this topic

not work in taskbar or inventory dafuq is this?

 

 

2LXaxrU.png

 

kX1aGdK.png

 

 

as u see, i already tried some other solutions but nothing works, no effekt there.

Share this post


Link to post
Share on other sites
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)

 

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Am 17.10.2018 um 23:21 schrieb enisina:

Not work help

 

EDv8WB.png

make the "elif itemVnum ....." ABOVE the "if app.WJ_ENABLE_TRADABLE_ICON: self.Refresh....."

Share this post


Link to post
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)

 

 

Share this post


Link to post
Share on other sites
On 10/22/2018 at 12:31 PM, kieranFMT2 said:

if itemVnum >= 53001 and itemVnum <= 5326:

What is this btw? And why did you put inside the sash if-statement the code?

Share this post


Link to post
Share on other sites
18 hours ago, xP3NG3Rx said:

What is this btw? And why did you put inside the sash if-statement the code?

I have tried your version of the code and the code that people have put none of it works for me

Share this post


Link to post
Share on other sites
			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)

 

Share this post


Link to post
Share on other sites
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://gyazo.com/e21b220727df137cd5b39f28f8468070

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.