Jump to content

[Tutorial] Active pet seal effect


AprendizM2
 Share

Recommended Posts

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)

 

Link to comment
Share on other sites

  • 3 years later...

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
 Share

×
×
  • Create New...