Axeel 0 Posted January 31, 2016 Share Posted January 31, 2016 Is there any way to get an index of a map the character is currently at using only client binary(no communication with game)? Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted January 31, 2016 Premium Share Posted January 31, 2016 You can do it using python, but it is the mapname : background.GetCurrentMapName() 1 Link to comment Share on other sites More sharing options...
Axeel 0 Posted January 31, 2016 Author Share Posted January 31, 2016 Sure, I know about that, but I need to have mapname/mapindex returned in binary to execute some functions only at one, predefined map. Link to comment Share on other sites More sharing options...
ds_aim 241 Posted January 31, 2016 Share Posted January 31, 2016 You can get mapnampe from altlasinfo.txt Link to comment Share on other sites More sharing options...
Axeel 0 Posted January 31, 2016 Author Share Posted January 31, 2016 I think you didn't get it. I want to get mapname or mapindex of a map, the character is currently at. Look: For example. If you are at map X, function will return 1 but if you are at map Y, function will return 2. Link to comment Share on other sites More sharing options...
Axeel 0 Posted January 31, 2016 Author Share Posted January 31, 2016 Any ideas? Link to comment Share on other sites More sharing options...
ds_aim 241 Posted January 31, 2016 Share Posted January 31, 2016 You must make packet comunication with client if you want to get exactly the mapindex vnum. Link to comment Share on other sites More sharing options...
Pisti95 134 Posted September 12, 2016 Share Posted September 12, 2016 simply quest: quest mapindex begin state start begin when login with pc.is_gm() begin chat("Map index: "..pc.get_map_index().."") end end end Link to comment Share on other sites More sharing options...
VegaS 1086 Posted September 12, 2016 Share Posted September 12, 2016 [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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now