Jump to content

Get map index in client binary[?]


Recommended Posts

  • 7 months later...

[C++ Binary]

#include "../UserInterface/PythonBackground.h"	
	std::string stringMapName = CPythonBackground::Instance().GetWarpMapName();

	if (stringMapName == "season1/metin2_map_oxevent") 
		// do something	

[C++ Server]

	if (ch->GetMapIndex() == 113)
		// do something

[Python]

	import background
	if background.GetCurrentMapName() == "season1/metin2_map_oxevent":
		# do something

[Lua]

	if pc.get_map_index() == 113 then
		-- do something
  • Love 1
Link to comment
Share on other sites

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.