Bot Metin2 Dev 4920 Posted April 3, 2018 Bot Share Posted April 3, 2018 Hello devs, I need to get a current experience of a character to a value. I tried to use player.GetStatus("EXP");, but the problem is that I need to use this value in SelectCharacterWindow. So client don't know from which character it should get it, I guess? Is it possible to get experience of each character by player module? Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted April 3, 2018 Premium Share Posted April 3, 2018 Can you explain better??? LUA: pc.get_exp() C++: ch->GetExp() Python: PyObject * playerGetEXP(PyObject* poSelf, PyObject* poArgs) { DWORD dwEXP = CPythonPlayer::Instance().GetStatus(POINT_EXP); return Py_BuildValue("l", dwEXP); } player.GetEXP() Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4920 Posted April 3, 2018 Author Bot Share Posted April 3, 2018 Hey, I'm not sure how can I use it properly. I think I can't use player module because I don't have selected character in game. Am I right? #UPDATED Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted April 3, 2018 Premium Share Posted April 3, 2018 lol you're explaing bad. You can use player module also in the select_char_interface wth you must do? Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4920 Posted April 4, 2018 Author Bot Share Posted April 4, 2018 But I need to know how to get that value for each character in character select. Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4920 Posted April 4, 2018 Author Bot Share Posted April 4, 2018 58 minutes ago, Chyu ^^ said: But I need to know how to get that value for each character in character select. You have to write a "player.SelectPlayer()" command, to get the actual exp of the character. I am not sure, if this informationen is in the packets in SelectCharacterWindow already, that would be the alternative: Add the packets there. If you can't do it yourself, leave me a message: cyber3611 King Regards Cyber Link to comment Share on other sites More sharing options...
Premium msnas 1427 Posted April 15, 2018 Premium Share Posted April 15, 2018 On 04/04/2018 at 9:54 AM, Cyber36 said: You have to write a "player.SelectPlayer()" command, to get the actual exp of the character. I am not sure, if this informationen is in the packets in SelectCharacterWindow already, that would be the alternative: Add the packets there. If you can't do it yourself, leave me a message: cyber3611 King Regards Cyber . Link to comment Share on other sites More sharing options...
Bot Solution Metin2 Dev 4920 Posted April 30, 2018 Author Bot Solution Share Posted April 30, 2018 Solved by adding EXP into a rkSimplePlayerInfo. 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