Jump to content

Mali

Honorable Member
  • Posts

    916
  • Joined

  • Days Won

    867
  • Feedback

    100%

Posts posted by Mali

  1. 6 hours ago, Tasho said:

    Very easy to make ^^

    Just make a copy of alignment via packet info and also you have full check on source client/server + python module and you can do all what you want with these functions..

    And all return value row [name_row] from mysql player.player

    
    	case ITEM_LOCK_INVENTORY:
    		SetLockInventory(1);
    		
    	case ITEM_UNLCOCK_INVENTORY:
    		SetLockInventory(0);
    
    #Python
    player.GetInventoryLocked() # Result current value from mysql
    
    #Client
    int CInstanceBase::GetInventoryLocked()
    {
    	return m_iInventoryLocked;
    }
    
    PyObject * playerGetInventoryLocked(PyObject* poSelf, PyObject* poArgs)
    {
    	CInstanceBase * ch = CPythonPlayer::Instance().NEW_GetMainActorPtr();
    	int iInventoryLocked = 0;
    
    	if (ch) {
    		iInventoryLocked = ch->GetInventoryLocked();
    	}
    
    	return Py_BuildValue("i", iInventoryLocked);
    }
    
    #Server
    int CHARACTER::GetInventoryLocked() const
    {
    	return m_iInventoryLocked;
    }
    
    void CHARACTER::SetLockInventory(int iAmount)
    {
    	m_iInventoryLocked = iAmount;
    	UpdatePacket();
    }

     

    Anyway, good ideea ^^

    :facepalm:unnecessary codes but anoter way;)

    • Love 1
  2. On 17.01.2016 at 10:16 PM, icewolf said:

    works but in Orginal Maps Like a1 .b1.c1 the Npc Works Good 

     

    But in blackisland or somelike that  Npc Effect  does't work

    Instancebase.cpp find:

    Spoiler

    else if (m_dwEmpireID == 3)
            {
                __AttachSelectEffectJinnos();
            }

    Replace;

    Spoiler

     else if (m_dwEmpireID == 3)
            {
                __AttachSelectEffectJinnos();
            }
            else
                __AttachSelectEffect();

    Find:

    Spoiler

    else if (m_dwEmpireID == 3)
            {
                __DetachSelectEffectJinnos();
            }

    Replace;

    Spoiler

     else if (m_dwEmpireID == 3)
            {
                __DetachSelectEffectJinnos();
            }
            else
                __DetachSelectEffect();

    Find:

    Spoiler

    else if (m_dwEmpireID == 3)
            {
                __AttachTargetEffectJinnos();
            }

    Replace;

    Spoiler

     else if (m_dwEmpireID == 3)
            {
                __AttachTargetEffectJinnos();
            }
            else
                __AttachSelectEffect();

    Find:

    Spoiler

    else if (m_dwEmpireID == 3)
            {
                __DetachTargetEffectJinnos();
            }

    Replace;

    Spoiler

    else if (m_dwEmpireID == 3)
            {
                __DetachTargetEffectJinnos();
            }
            else
                __DetachSelectEffect();

    0c4113c976.jpg

    • Metin2 Dev 1
    • Love 3
  3. 18 hours ago, Mind Rapist said:

    ANTIFLAG_SAFEBOX but in some clients this can cause errors so I'm suggesting to edit your source and replace the ANTIFLAG_SAFEBOX function with ANTIFLAG_SAVE and use this instead :)

    Shops are working

    40lA94.jpg

    but ANTIFLAG_SAFEBOX isn't exist in my client also ANTIFLAG_SAVE isn't working :(

  4. Hi, developers!

    Before you start, create a backup from your source files immediately!


    Today I'm gonna share with you my last work. I have read every informations from the official binary from beta(metin2client_r11185) and r7071. It was not an easy task to understand functions but successed. I will not write down the implementation step by step, but I wrote some informations into the files what you should to do to implement the system. If you do not understand the steps I put original(from dev branch) and modified files into the archive to compare the original and the changed files with notepad++ or something else comparer tool to see the changes.

    - There are some files which optional changes to show the mob-aiflag on those monsters which are not aggressive but summoned by aggressive with "/ma" command.
    - There was a little problem with Python 2.7.3 therefore I split asunder the gui-script. And be careful, the main script is using True and False variables.
    - You can disable the whole system in common/service.h and UserInterface/Locale_inc.h with undefined or with commented macro.
     

    I hope everything are understandable and I did not miss something from the release, and sorry for my bad english.
    Special thanks to TheSLZ for test the implementation.

    And last but not least here is the result:
    736f4fb927.jpg

     

    This is the hidden content, please

    good job bro :)

     

    Hi, developers!

    Before you start, create a backup from your source files immediately!


    Today I'm gonna share with you my last work. I have read every informations from the official binary from beta(metin2client_r11185) and r7071. It was not an easy task to understand functions but successed. I will not write down the implementation step by step, but I wrote some informations into the files what you should to do to implement the system. If you do not understand the steps I put original(from dev branch) and modified files into the archive to compare the original and the changed files with notepad++ or something else comparer tool to see the changes.

    - There are some files which optional changes to show the mob-aiflag on those monsters which are not aggressive but summoned by aggressive with "/ma" command.
    - There was a little problem with Python 2.7.3 therefore I split asunder the gui-script. And be careful, the main script is using True and False variables.
    - You can disable the whole system in common/service.h and UserInterface/Locale_inc.h with undefined or with commented macro.
     

    I hope everything are understandable and I did not miss something from the release, and sorry for my bad english.
    Special thanks to TheSLZ for test the implementation.

    And last but not least here is the result:
    736f4fb927.jpg

     

    This is the hidden content, please

    good job bro :)

    D9lrBo.jpg

    • Metin2 Dev 1
    • Love 1
×
×
  • 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.