Jump to content

Recommended Posts

  • 4 weeks later...
  • 5 months later...
On 3/14/2022 at 7:45 PM, metolis said:

Hello, any idea how to fix effect not applying to the whole item when it occupies more than one slot?
(Solved by re-doing the binary part)


spacer.png

Where was the error? I have the same

  • Eyes 1

Check for this:

	def OverInItem(self, overSlotPos):
		overSlotPosGlobal = self.__InventoryLocalSlotPosToGlobalSlotPos(overSlotPos)
		self.wndItem.SetUsableItem(False)
		if app.ENABLE_PICKUP_ITEM_EFFECT:
			self.DelHighlightSlot(overSlotPosGlobal)

Change the local to global slot position if you are using 4 inventory.

  • 2 weeks later...
  • Nitro Booster

@ Mali update repo for another guys (which using martysama root)

in uiinventory.py
self.DelHighlightSlot(overSlotPos)
to
self.DelHighlightSlot(overSlotPosGlobal)

Edited by Luigina
  • Metin2 Dev 1
  • Not Good 1
  • Good 1
  • 3 weeks later...
0921 23:27:18789 :: Traceback (most recent call last):

0921 23:27:18789 ::   File "networkModule.py", line 247, in SetGamePhase

0921 23:27:18789 ::   File "game.py", line 98, in __init__

0921 23:27:18790 ::   File "interfaceModule.py", line 286, in MakeInterface

0921 23:27:18790 ::   File "interfaceModule.py", line 170, in __MakeWindows

0921 23:27:18790 ::   File "uiInventory.py", line 262, in __init__

0921 23:27:18790 ::   File "uiInventory.py", line 398, in __LoadWindow

0921 23:27:18791 ::   File "uiInventory.py", line 465, in SetInventoryPage

0921 23:27:18791 ::   File "uiInventory.py", line 578, in RefreshBagSlotWindow

0921 23:27:18791 :: AttributeError
0921 23:27:18791 :: : 
0921 23:27:18791 :: 'InventoryWindow' object has no attribute '_InventoryWindow__HighlightSlot_Refresh'
0921 23:27:18791 :: 

I don't know what the problem is, the loading remains blocked 

Edited by Tr3l
new eror
23 hours ago, Tr3l said:
0921 23:27:18789 :: Traceback (most recent call last):

0921 23:27:18789 ::   File "networkModule.py", line 247, in SetGamePhase

0921 23:27:18789 ::   File "game.py", line 98, in __init__

0921 23:27:18790 ::   File "interfaceModule.py", line 286, in MakeInterface

0921 23:27:18790 ::   File "interfaceModule.py", line 170, in __MakeWindows

0921 23:27:18790 ::   File "uiInventory.py", line 262, in __init__

0921 23:27:18790 ::   File "uiInventory.py", line 398, in __LoadWindow

0921 23:27:18791 ::   File "uiInventory.py", line 465, in SetInventoryPage

0921 23:27:18791 ::   File "uiInventory.py", line 578, in RefreshBagSlotWindow

0921 23:27:18791 :: AttributeError
0921 23:27:18791 :: : 
0921 23:27:18791 :: 'InventoryWindow' object has no attribute '_InventoryWindow__HighlightSlot_Refresh'
0921 23:27:18791 :: 

I don't know what the problem is, the loading remains blocked 

paste your uiinventory.py

On 9/22/2023 at 10:57 PM, Tr3l said:

the last lines I added the system

Tomorrow evening I'll go home and see what's wrong, in the meantime I saved it

  • Love 1

This is the hidden content, please
 <-- After 15 day, the link will be deleted!

Pass: 2023

Next time, pay attention to line indentation.

Edited by Chookez
  • Metin2 Dev 29
  • Good 3
  • Love 1
  • Love 7
1 hour ago, Chookez said:

This is the hidden content, please
 <-- After 15 day, the link will be deleted!

Pass: 2023

Next time, pay attention to line indentation.

Works, Ty❤️     spacer.png

Edited by Tr3l
  • Metin2 Dev 1
  • kekw 3
  • Love 1
  • 1 month later...
  • 2 weeks later...
  • 2 months later...
  • 2 months later...
  • Contributor
On 7/7/2022 at 9:27 PM, HFWhite said:

There's a problem with the system. If you have more than 10 items(skills,potions,etc) in 'quickslots' the items from inventory will be highlighted everytime you login, how do we solve this @ Mali ?

 

Edit: This fixed my problem

 

 

  

 

Thank you, it actually solved the issue however it is not clear for me why the issue came from the quickslot's items.
My 'fear' is there's still some issue and it's just a workaround to hide it.

On 3/14/2022 at 6:45 PM, metolis said:

Hello, any idea how to fix effect not applying to the whole item when it occupies more than one slot?
(Solved by re-doing the binary part)


spacer.png


I'm having the same problem and have refixed the code several times. Can anyone help me?

7 hours ago, Diogo Neto said:


I'm having the same problem and have refixed the code several times. Can anyone help me?

Try again the binary source you do it something wrong. But if you can't do it yourself dm me i can help you with that

hi, does anyone know a solution to this? I have a problem where the field refreshes after each relog.


https://metin2.download/video/N9EyY2xJXay4ol3HOjk3C8YWfd0L0W5u/.mp4

 

 

Edited by Metin2 Dev International
Core X - External 2 Internal
  • 2 months later...
  • 1 month later...
On 9/30/2021 at 3:36 PM, blanco said:

I also like to have the items not flash when dropping them from the inventory and picking them up. For anyone who wants to achieve this:

item.h

  Hide contents

Search for:

DWORD		GetLastOwnerPID()	{ return m_dwLastOwnerPID; }

Add:

void		SetLastOwnerPID(DWORD pid) { m_dwLastOwnerPID = pid; }

 

item.cpp @ bool CItem::AddToCharacter(LPCHARACTER ch, TItemPos Cell, bool bHighlight)

  Hide contents

Search for:

	if (ch->GetDesc())
		m_dwLastOwnerPID = ch->GetPlayerID();

Add ABOVE:

	if (bHighlight)
		bHighlight = this->GetLastOwnerPID() != ch->GetPlayerID();

 

input_db.cpp @ void CInputDB::ItemLoad(LPDESC d, const char* c_pData)

  Hide contents

Search for:

item->SetAttributes(p->aAttr);

Add under:

item->SetLastOwnerPID(p->owner);

 

 

@Hekate 
@EugeeN

#fix 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.