Jump to content

Fakis

Inactive Member
  • Posts

    26
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Fakis

  1. On 11/1/2022 at 11:50 PM, Lufbert said:

    That part for packet:

    DWORD vids[FAST_PICKUP_MAX_NUM];

    is not really good.

    You will end up sending 45 item vids even if there is only one item available to pickup (of course 44 of them will be 0).

     

    You should change your packet from static size to dynamic size and send only as much vids as needed.

    how to do that properly like u said?

    • Metin2 Dev 1
  2. can someone tell me how can i get this done, i tried for my own and it didnt work

    void CInstanceBase::SetAcce(DWORD eAcce)
    {
    	if (IsPC() == false)
    		return;
     
    	__ClearAcceRefineEffect();
    	float fSpecular = 0.0f;
    	int iAcce = (eAcce > 100) ? (int)(eAcce - 100) : (int)(eAcce);
    	if (eAcce > 100)
    	{
    		fSpecular = 100.0f;
    		m_acceEffect = EFFECT_REFINED+EFFECT_ACCE_SPECIAL;
    		__EffectContainer_AttachEffect(m_acceEffect);
    	}
     
    	m_awPart[CRaceData::PART_ACCE] = iAcce;
    	m_GraphicThingInstance.SetAcce(iAcce, fSpecular);
    }

     

  3. hi, im using ENABLE_NEW_DROP_DIALOG aka destroy item system by owsap.

    my only problem is with python. 

    Traceback (most recent call last):
      File "game.py", line 1339, in OnMouseLeftButtonUp
        self.__PutItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, self.PickingCharacterIndex)
      File "game.py", line 1381, in __PutItem
        self.__DropItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount)
      File "game.py", line 1435, in __DropItem
        itemDropQuestionDialog = uiCommon.QuestionDropDialog()
      File "uiCommon.py", line 344, in __init__
        self.__CreateDialog()
      File "uiCommon.py", line 355, in __CreateDialog
        self.acceptButton = self.GetChild("accept")
      File "ui.py", line 2885, in GetChild
        return self.ElementDictionary[name]
    KeyError: 'accept'
    Traceback (most recent call last):

    game.py: https://pastebin.com/7r7fy89E

    uicommon.py: https://pastebin.com/9pAYxRJD

    how can i fix this?

  4. 0224 23:54:03973 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/login_window.mp3
    0224 23:54:21131 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/characterselect.mp3
    0224 23:55:12852 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/M2BG.mp3

     

    ive got files in BGM, bgm eix/epk, miles folder with files, where else can be problem and how to fix it?

  5. looking for working fix, rn i have sth like this and its not working

    void CInputMain::QuickslotAdd(LPCHARACTER ch, const char * data)
    {
        struct command_quickslot_add * pinfo = (struct command_quickslot_add *) data;
    #ifdef ENABLE_FIX_QUICK_SLOT   
        if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
        {
            LPITEM item = NULL;
            
            TItemPos srcCell(INVENTORY, pinfo->slot.pos);
            
            if (!(item = ch->GetItem(srcCell)))
                return;
            
            if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
                return;
        }
    #endif
        
        ch->SetQuickslot(pinfo->pos, pinfo->slot);
    }

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