Little question about item_link k15

Results 1 to 6 of 6
  1. #1
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    139Posts

    Little question about item_link k15

    I just want to know if it's ok to removed the red code below coz if its enabled in k15 the item linking is not working?


    Code:
    void CWndItemCtrl::OnLButtonDown( UINT nFlags, CPoint point )
    {
    	if( !g_pPlayer )
    		return;
    
    	if( !m_pItemContainer )
    		return;
    
    	CPoint pt( 3, 3 );
    	CRect rect;
    	
    	if( GetAsyncKeyState( VK_LCONTROL ) & 0x8000 )
    		return;
    	
    	if(	CWndBase::m_GlobalShortcut.IsEmpty() == FALSE )
    		return;
    	//SetCapture();
    	int nItem = HitTest( point );
    
    	if( nItem == -1 )	return;


  2. #2
    Member Ruby Flyff is online now
    MemberRank
    Nov 2022 Join Date
    FranceLocation
    66Posts
    Remplace by

    #if __VER < 16 //__ITEMLINK
    if( GetAsyncKeyState( VK_LCONTROL ) & 0x8000 ) return;
    #endif

  3. #3
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    139Posts
    Quote Originally Posted by Ruby Flyff View Post
    Remplace by

    #if __VER < 16 //__ITEMLINK
    if( GetAsyncKeyState( VK_LCONTROL ) & 0x8000 ) return;
    #endif
    Thanks but it's not working when i did this in k15

  4. #4
    Member Ruby Flyff is online now
    MemberRank
    Nov 2022 Join Date
    FranceLocation
    66Posts
    As much for me, I misread your comment, to solve the problem simply change all your __VER 15 to __VER 20 in your common.h or k.common version if you have some and then this code should work as you will have exceeded this version
    Last edited by Ruby Flyff; 3 Weeks Ago at 02:48 PM.

  5. #5
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,926Posts
    the issue is with that bracket if i recall. there is a part ofitem link that requires 16 or higher u need to change that to 14 and higher and it will work.

  6. #6
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,926Posts
    This issue has been resolved.



Advertisement