Jump to content

Recommended Posts

  • Honorable Member
21 hours ago, Razer74 said:

How can i add this System to the Auto Potion and Blend? Anyone a solution? 

thanks for feedback.

I've added missing codes(I missed it because it was not in the macro at the official binary)

This is the hidden content, please

  • Metin2 Dev 121
  • kekw 1
  • Eyes 2
  • Dislove 1
  • Angry 3
  • Scream 1
  • Good 27
  • Love 2
  • Love 49

 

  • 1 month later...
  • 3 weeks later...

welcome

The system has been installed correctly hopefully. Hahahaha

I only wish to explain how to add colors to a specific piece because I searched and did not find the way

 

https://metin2.download/picture/9JeGkT2JoLy5Vo2hOQ9i95a4M4O2Te74/.gif

Edited by Metin2 Dev
Core X - External 2 Internal

NOT

  • 1 month later...

Clean systems, amazing work . Amazing job dude, keep going. Thanks for everything.

  • Good 1

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

#Edit: solved.

-Problem is from here :

Quote

        if (rSlot.bActive)
        {
            if (m_pSlotActiveEffect && rSlot.byyPlacedItemSize == 1)
            {
                int ix = m_rect.left + rSlot.ixPosition;
                int iy = m_rect.top + rSlot.iyPosition;
                m_pSlotActiveEffect->SetPosition(ix, iy);
                m_pSlotActiveEffect->Render();
            }

I add code in wrong position:

Quote

        if (rSlot.bActive)
        {
            if (m_pSlotActiveEffect && rSlot.byyPlacedItemSize == 1)
            {
                int ix = m_rect.left + rSlot.ixPosition;
                int iy = m_rect.top + rSlot.iyPosition;
                m_pSlotActiveEffect->SetPosition(ix, iy);
                m_pSlotActiveEffect->Render();

#if defined(__BL_ENABLE_PICKUP_ITEM_EFFECT__)
        for (const auto& NewSlotEffect : rSlot.pNewSlotEffect)
        {
 

            NewSlotEffect->SetPosition(m_rect.left + rSlot.ixPosition, m_rect.top + rSlot.iyPosition);
            NewSlotEffect->Update();
            NewSlotEffect->Render();
        }
#endif

-And correct position of code is:

Quote

        if (rSlot.bActive)
        {
            if (m_pSlotActiveEffect && rSlot.byyPlacedItemSize == 1)
            {
                int ix = m_rect.left + rSlot.ixPosition;
                int iy = m_rect.top + rSlot.iyPosition;
                m_pSlotActiveEffect->SetPosition(ix, iy);
                m_pSlotActiveEffect->Render();
            }

} <----This

#if defined(__BL_ENABLE_PICKUP_ITEM_EFFECT__)
        for (const auto& NewSlotEffect : rSlot.pNewSlotEffect)
        {
            if (NewSlotEffect == nullptr || NewSlotEffect->IsShow() == false)
                continue;

            NewSlotEffect->SetPosition(m_rect.left + rSlot.ixPosition, m_rect.top + rSlot.iyPosition);
            NewSlotEffect->Update();
            NewSlotEffect->Render();
        }
#endif

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

Edited by Metin2 Dev
Core X - External 2 Internal

KH.jpg

Nicks: Nazox™ Krone™ Nagato™ Yahiko™ Yakiro™
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

2 hours ago, nazox said:

Sorry to revive this, thanks Mali for release, i have 1 problem, i can't see white effect, only flash effect, this problem is from uiinventory ?

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

I don't have sysser and all work great only i have this problem, you can give me any idea? thanks again.

Check ActivateSlot function in ui.py if you have sash system, it may be ActivateSlotOld

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1
14 minutes ago, rares2017 said:

Check ActivateSlot function in ui.py if you have sash system, it may be ActivateSlotOld

Thanks, but i don't use Sash system, and my ui.py  i use ActivateSlot and DeactivateSlot not Old :V but thanks for your reply.

KH.jpg

Nicks: Nazox™ Krone™ Nagato™ Yahiko™ Yakiro™
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

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

Edited by Metin2 Dev
Core X - External 2 Internal
  • 1 month later...
  • 4 weeks later...
  • 1 month later...

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

 

 

  

On 9/30/2021 at 4: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

  Reveal hidden 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)

  Reveal hidden 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)

  Reveal hidden contents

Search for:

item->SetAttributes(p->aAttr);

Add under:

item->SetLastOwnerPID(p->owner);

 

 

 

Edited by SCOOB
found fix
  • Love 2
  • 1 month later...

Hello and thank you for this system!

https://metin2.download/video/0Ud4ReMRRh1c7QlytZ8ub8UWr4ZgVKGa/.mp4

I think there is another problem with this system.

If you pick up several objects from the bottom or buy from the store and open 2-3-4 windows, the effects on the objects in the inventory spin much too quickly.

Edited by Metin2 Dev
Core X - External 2 Internal
  • 3 weeks later...
  • 2 months later...
  • Premium

For me, the coloring isnt working. Anyone can help me ? ?
 

I added it but nothing :c

Spoiler

self.wndItem.ActivateSlot(i)
self.wndItem.SetSlotDiffuseColor(i, wndMgr.COLOR_TYPE_PURPLE)

 

Ulthar

  • 1 month later...
  • Active Member

The system has a bug: if you add it as is the effect will disappear from automatic potions and if there are other items that use this effect. The solution is as follows,
you simply need to create a folder called slot1  and add files from 00.sub to 12.sub in it, the files and folder in question can be found in:

client->ymir_work->ui->public->slotactiveeffect

@ Mali

2 hours ago, 4peppe said:

The system has a bug: if you add it as is the effect will disappear from automatic potions and if there are other items that use this effect. The solution is as follows,
you simply need to create a folder called slot1  and add files from 00.sub to 12.sub in it, the files and folder in question can be found in:

client->ymir_work->ui->public->slotactiveeffect

@ Mali

Interestingly, I don't have this issue. Here is one thing though, if you pick up an item you already have in inventory, it won't have the new item effect.

edit for clarification: I mean stacked Items already In your Inventory. 

Edited by covfefe
  • Active Member
45 minutes ago, covfefe said:

Interestingly, I don't have this issue. Here is one thing though, if you pick up an item you already have in inventory, it won't have the new item effect.

edit for clarification: I mean stacked Items already In your Inventory. 

in my case the problem occurs only with automatic potions and/or some items that occupy only 1 slot

  • 2 weeks later...
  • Former Staff
2 minutes ago, blanco said:

Could you please tell us what changes were made? The repository is private and I don't have the old archive to compare.

I can provide you with the old archive, if you wish. M2DL retains all versions.

  • Love 1
  • Former Staff

2021-12-14, This is the old version, saved on M2DL...

https://mega.nz/file/FAMBkYja#eqftb-bYAzgUQThkSmsBUESPO4PeQmc3uuJZwhweB5U

Yes, Mega link, I need to continue developing M2DL to allow older revisions to be downloaded... :kekw:

  • Love 1

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.