Jump to content
TLThings

[Tutorial] Active pet seal effect


Recommended Posts

  • Hidden Content

      Give reaction or reply to this topic to see the hidden content.
  •  
  •  

Descrição :

Tutorial em inglês ;

Open PetSystem.cpp and replace or make it fit for you:

void CPetActor::SetSummonItem(LPITEM pItem)
{
    if (NULL == pItem)
    {
        LPITEM pSummonItem = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID);
        if (NULL != pSummonItem)
            pSummonItem->SetSocket(1, FALSE);
        
        m_dwSummonItemVID = 0;
        m_dwSummonItemVnum = 0;
        return;
    }

    pItem->SetSocket(1, TRUE);
    m_dwSummonItemVID = pItem->GetVID();
    m_dwSummonItemVnum = pItem->GetVnum();
}
After that open the uiInventory.py and paste this code below the autopotion if-statement in the RefreshBagSlotWindow function.

            elif itemVnum >= 53001 and itemVnum <= 53256:
                metinSocket = [player.GetItemMetinSocket(globalSlotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]# <!> globalSlotNumber may be different <!>
                isActivated = 0 != metinSocket[1]
                if isActivated:
                    self.wndItem.ActivateSlot(i)
                else:
                    self.wndItem.DeactivateSlot(i)

 

  • Like 2
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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.