Jump to content

Get experience from database


Go to solution Solved by Metin2 Dev,

Recommended Posts

  • Bot

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?

english_banner.gif

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

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

  • Bot
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

english_banner.gif

Link to comment
Share on other sites

  • 2 weeks later...
  • Premium
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

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      I just implemented some costumes and they are not visible

    2. 0

      Skill Tree Problem

    3. 97

      Ulthar SF V2 (TMP4 Base)

    4. 5

      Client Crashes through Offline Shop (Ikarus)

    5. 5

      VIVY-WORLD2 - FARM TO THE TOP

    6. 0

      ToolTip Bug?

    7. 0

      Skill tree build erorr

    8. 0

      Visual Bug | How to fix this visual bug inside the Special Storage feature?

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.