Jump to content

Abel(Tiger)

Active+ Member
  • Posts

    196
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Posts posted by Abel(Tiger)

  1. 27 minutes ago, xP3NG3Rx said:

    When I saw it I said LOL! :mellow:

    
    	if (CPythonChat::WHISPER_TYPE_CHAT == whisperPacket.bType || CPythonChat::WHISPER_TYPE_GM == whisperPacket.bType)
    	{
    #ifdef ENABLE_WHISPER_FLASHING
    		FLASHWINFO flashInfo;
    		flashInfo.cbSize = sizeof(flashInfo);
    		flashInfo.hwnd = CPythonApplication::Instance().GetWindowHandle();
    		flashInfo.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
    		flashInfo.uCount = 0;
    		flashInfo.dwTimeout = 0;
    		FlashWindowEx(&flashInfo);
    #endif
    		_snprintf(line, sizeof(line), "%s : %s", whisperPacket.szNameFrom, buf);
    		PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OnRecvWhisper", Py_BuildValue("(iss)", (int) whisperPacket.bType, whisperPacket.szNameFrom, line));
    	}

    10€ for nothing xD

    With module you can use in another scope . For example put app.FlashApplication() in game.py (in def Open(self)) and if you dead and restart in city with client minimized this help you :)) or can put in switchbot when this finish(more servers use switchboot).

    Who want just for whishper can use xP3NG3Rx version .It is better.

  2. M2 Download Center

    This is the hidden content, please
    ( Internal )

    What is this ? :

    "When a player sends you a message icon taskbar starts flashing."

    https://www.youtube.com/watch?v=s2LkFrfrrhk

    [File: Client/root/InterfaceModule.py]

    //1.) Search:  2x

    btn.Flash() #in function def RecvWhisper(self, name):

    //2.) Add bellow:

    app.FlashApplication()

    [File: Source/src/Client/UserInterface/PythonApplication.cpp]

    //1.) Search:

    void CPythonApplication::Clear()
    {
    	m_pySystem.Clear();
    }

    //2.) Add bellow:

    #include <Windows.h>
    void CPythonApplication::FlashApplication()
    {
    	HWND hWnd = GetWindowHandle();
    	FLASHWINFO fi;
    	fi.cbSize = sizeof(FLASHWINFO);
    	fi.hwnd = hWnd;
    	fi.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
    	fi.uCount = 0;
    	fi.dwTimeout = 0;
    	FlashWindowEx(&fi);
    }
    

    [File: Source/src/Client/UserInterface/PythonApplication.h]

     

    //1.) Search:

    void SetForceSightRange(int iRange);

    //2.) Add bellow:

    void FlashApplication();

    [File: Source/src/Client/UserInterface/PythonApplicationModule.cpp]

     

    //1.) Search:

    PyObject* appLogoClose(PyObject* poSelf, PyObject* poArgs)
    {
    	//CPythonApplication::Instance().OnLogoClose();
    	return Py_BuildNone();
    }

    //2.) Add bellow:

    PyObject* appFlashApplication(PyObject* poSelf, PyObject* poArgs)
    {
    	CPythonApplication::Instance().FlashApplication();
    	return Py_BuildNone();
    }

    //3.) Search:

    { "OnLogoClose",				appLogoClose,					METH_VARARGS },

    //4.) Add bellow:

    { "FlashApplication",			appFlashApplication,			METH_VARARGS },

     

    • Metin2 Dev 27
    • kekw 1
    • Smile Tear 1
    • Good 6
    • Love 3
    • Love 32
  3. 3 minutes ago, icewolf said:

    Thanx 

    But not working for me 

    when i compile the source 

    and Open the game 

    still the same problem

     

    but when i tryied to add 

     

      Hide contents

    #define ENABLE_WOLFMAN_CHARACTER

     

    to locale_inc and compile still the same nothing change 

    i go back to the source and delete this line 

      Hide contents
    
    
    #ifdef ENABLE_WOLFMAN_CHARACTER

    and 

      Hide contents
    
    
    #endif
    

    when i compile it's give me Error about Wolfman Race 

     

    p_212u5sp1.jpg

    Replace   if (m_eRace == CRaceData::RACE_WOLFMAN_M) with if (m_eRace == 8) or make a enum with all races . 

    • Love 1
  4. I have this problem with compile binary

    Linking...
    fatal error C1900: Il mismatch between 'P1' version '20100826' and 'P2' version '20080116'
    LINK : fatal error LNK1257: code generation failed
    Build log was saved at "file://d:\source bun\UserInterface\Release\BuildLog.htm"
    UserInterface - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 15 up-to-date, 0 skipped ==========

    I using vs 2008

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