Jump to content

Recommended Posts

Hello, I have one problem with change limit yang on cube system.

In binary, I got this line:

			PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cube_UpdateInfo", Py_BuildValue("(lll)", gold, itemVnum, count));

and I don't know how to change it into LONG LONG, actually it is LONG

Link to comment
https://metin2.dev/topic/18575-cube-system-limit-yang/
Share on other sites

  • Honorable Member

Probably with this?

		else if ("info" == TokenVector[1])
		{
			if (5 != TokenVector.size())
			{
				TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
				return;
			}

			long long gold = atoll(TokenVector[2].c_str());
			UINT itemVnum = atoi(TokenVector[3].c_str());
			UINT count = atoi(TokenVector[4].c_str());
			PyObject * poArgs = PyTuple_New(3);
			PyTuple_SetItem(poArgs, 0, PyLong_FromLongLong(gold));
			PyTuple_SetItem(poArgs, 1, PyInt_FromLong(itemVnum));
			PyTuple_SetItem(poArgs, 2, PyInt_FromLong(count));
			PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cube_UpdateInfo", poArgs);
		}

 

  • Love 1
Link to comment
https://metin2.dev/topic/18575-cube-system-limit-yang/#findComment-101358
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.