Jump to content

EAkar

Inactive Member
  • Posts

    62
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by EAkar

  1. spacer.png

     

    Can you help me? I added everything without any problem. There is just such an error. MartySama File. I am using the COSTUME_WEAPON system.

    CODE:

     

    	case ITEM_WEAPON:
    	{
    #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
    		if (0 != m_pOwner->GetWear(WEAR_COSTUME_WEAPON))
    			break;
    #endif
    		if (bAdd)
    		{
    #if defined(__BL_TRANSMUTATION__)
    			if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
    			{
    				const WORD wVnum = static_cast<WORD>(GetVnum());
    				const WORD wTransmutationVnum = static_cast<WORD>(GetTransmutationVnum());
    				m_pOwner->SetPart(PART_WEAPON, wTransmutationVnum != 0 ? wTransmutationVnum : wVnum);
    			}
    #else
    			if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
    				m_pOwner->SetPart(PART_WEAPON, static_cast<WORD>(GetVnum()));
    #endif
    		}
    		else
    		{
    			if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
    				m_pOwner->SetPart(PART_WEAPON, m_pOwner->GetOriginalPart(PART_WEAPON));
    		}
    	}
    	break;

     

  2. On 8/6/2021 at 8:44 AM, flexio said:

     

    its been long time since Ive written this feature. And its really bad, fix is more easier ? for uiinventory too.

    pythonslotwindow.cpp

    void CSlotWindow::__CreateSlotEnableEffect()
    {
        //__DestroySlotEnableEffect();
    
        for (int i = 0; i < 3; ++i)
        {
            CAniImageBox* pEff = new CAniImageBox(NULL);
    
    
            //fix
            if (m_apSlotActiveEffect[i])
                continue;
            //fix
    
            for (int j = 0; j <= 12; ++j)
            {
                char buf[64+1];
                sprintf_s(buf, "d:/ymir work/ui/public/slotactiveeffect/slot%d/%02d.sub", (i+1), j);
                pEff->AppendImage(buf);
            }
    
            pEff->SetRenderingMode(CGraphicExpandedImageInstance::RENDERING_MODE_SCREEN);
            pEff->Show();
    
            m_apSlotActiveEffect[i] = pEff;
        }
    }
    void CSlotWindow::ActivateEffect(DWORD dwSlotIndex, float r, float g, float b, float a)
    {
        TSlot * pSlot;
        if (!GetSlotPointer(dwSlotIndex, &pSlot))
            return;
        
        for (int i = 0; i < 3; ++i)
        {
            //fix
            if (pSlot->pActiveSlotEffect[i])
                continue;
            //fix
            
            CAniImageBox * pEff = new CAniImageBox(NULL);
            for (int j = 0; j <= 12; ++j)
            {
                char cBuf[72];
                sprintf_s(cBuf, "d:/ymir work/ui/public/slotactiveeffect/slot%d/%02d.sub", (i + 1), j);
                pEff->AppendImage(cBuf, r, g, b, a);
            }
            
            pEff->SetRenderingMode(CGraphicExpandedImageInstance::RENDERING_MODE_SCREEN);
            pSlot->pActiveSlotEffect[i] = pEff;
        }
    }

     

    These codes do not compile to the wrong file.

    CAniImageBox * pEff = new CAniImageBox(NULL); error

  3. 1005 23:58:21172 :: global name 'CantAttachToAttrSlot' is not defined

    unbound method CantAttachToAttrSlot() must be called with Attr67AddWindow instance as first argument (got int instance instead)


    py Code :

            if not Attr67AddWindow.CantAttachToAttrSlot(attachedSlotPos, True):
                return

    the system is problematic. and don't waste your time. It does not help the problems that occur. So don't waste your time.

  4. No objects are placed in the slot with the right mouse button.

    When I take the gun out of my hand, the gun is still in my hand.

    https://metin2.download/picture/wpox1Q5TmKo3SfC7hdd7JIK5Le3h8Mqy/.png

    there are problems in the system.

    Also

    Client/SRC/Packet.h

    struct TPacketGCItemDelDeprecate   No Code

    Server/SRC/Packet.h

    struct TPacketGCItemDelDeprecate Yes Code

     

    No problem for armor. This issue is only for the gun.

  5.     __time32_t                        SendTime;
        __time32_t                        DeleteTime;

    ../../common/tables.h:851:2: error: '__time32_t' does not name a type; did you mean '__timer_t'?
      __time32_t      SendTime;
      ^~~~~~~~~~
      __timer_t
    ../../common/tables.h:852:2: error: '__time32_t' does not name a type; did you mean '__timer_t'?
      __time32_t      DeleteTime;
     

        static std::unordered_set<std::string> NameSet;
        bool bFound = NameSet.find(p->szName) != NameSet.end();

     

    error

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