Jump to content

Official Pickup Slot Effect [REVERSED]


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 101
  • kekw 1
  • Eyes 2
  • Dislove 1
  • Angry 3
  • Scream 1
  • Good 26
  • Love 1
  • Love 33

 

Link to comment
Share on other sites

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

  • 1 month later...
  • Active Member

#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]

Link to comment
Share on other sites

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

  • Active Member
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]

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 1 month later...
  • Active+ Member

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 1

spacer.png

Link to comment
Share on other sites

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

  • 3 weeks later...
  • 2 months later...
  • 1 month later...

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

  • 2 weeks later...
  • Management
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
Link to comment
Share on other sites

  • Management

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