Jump to content

Jodie

Inactive Member
  • Posts

    38
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Jodie

  1. 	int guild_get_name(lua_State * L)
    	{
    		if (!lua_isnumber(L, 1))
    		{
    			lua_pushstring(L,  "");
    			return 1;
    		}
    
    		CGuild * pkGuild = CGuildManager::instance().FindGuild((DWORD) lua_tonumber(L, 1));
    
    		if (pkGuild)
    			lua_pushstring(L, pkGuild->GetName());
    		else
    			lua_pushstring(L, "");
    
    		return 1;
    	}

    That means, you have to enter the guild id. The function will return empty string if you don't

    - Jodie

  2. I was looking at metin2client.bin about the new functions. I wanted to share one function with you. They're probably using this for new systems. So, let's do this :D

    Open PythonPlayerModule.cpp

    PyObject * playerWindowTypeToSlotType(PyObject * poSelf, PyObject * poArgs)
    {
    	int iWindowType = 0;
    	if (!PyTuple_GetInteger(poArgs, 0, &iWindowType))
    		return Py_BuildException();
    
    	return Py_BuildValue("i", WindowTypeToSlotType(iWindowType));
    }

    Search this 

    		{ "SendDragonSoulRefine",		playerSendDragonSoulRefine,			METH_VARARGS },

    Add this

    		{ "WindowTypeToSlotType",		playerWindowTypeToSlotType,			METH_VARARGS },

    Open GameType.h and search this

    BYTE SlotTypeToInvenType(BYTE bSlotType);

    After add this

    BYTE WindowTypeToSlotType(BYTE bWindowType);

    Open GameType.cpp and add this.

    BYTE c_aWindowTypeToSlotType[WINDOW_TYPE_MAX] =
    {
    	RESERVED_WINDOW,					// SLOT_TYPE_NONE
    	SLOT_TYPE_INVENTORY,				// SLOT_TYPE_INVENTORY
    	RESERVED_WINDOW,					// SLOT_TYPE_NONE
    	SLOT_TYPE_SAFEBOX,					// SLOT_TYPE_SAFEBOX
    	SLOT_TYPE_MALL,						// SLOT_TYPE_MALL
    	SLOT_TYPE_DRAGON_SOUL_INVENTORY,	// SLOT_TYPE_DRAGON_SOUL_INVENTORY
    	RESERVED_WINDOW,					// SLOT_TYPE_NONE
    	RESERVED_WINDOW,					// SLOT_TYPE_NONE
    };
    
    BYTE WindowTypeToSlotType(BYTE bWindowType)
    {
    	if (bWindowType >= WINDOW_TYPE_MAX)
    		return RESERVED_WINDOW;
    
    	return c_aWindowTypeToSlotType[bWindowType];
    }

    - Jodie

    • Love 3
  3. Errorlog.txt is only working when you're using your binary in distribute mode or release mode. You can debug your executable file(metin2client.bin) with Visual Studio if you know a bit visual studio. We can't do anything for you at the moment. At least, we don't know the error exactly.

    - Jodie

  4. 59 minutes ago, bumxd said:

        WEAR_RING1 = 24,        // 24    : 신규 반지슬롯1 (왼쪽)
        WEAR_RING2 = 25,        // 25    : 신규 반지슬롯2 (오른쪽)
        WEAR_BELT = 26,            // 26    : 신규 벨트슬롯

        WEAR_MAX = 32    //

    Those things are wrong. It should be like this if you don't using acce and weapon costume system.

    • WEAR_RING1 should be 21
    • WEAR_RING2 should be 22
    • WEAR_BELT should be 23

    - Jodie

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