[Source] Extra column in the database

Results 1 to 4 of 4
  1. #1
    Trust your senses Gravious is offline
    MemberRank
    Sep 2009 Join Date
    NetherlandsLocation
    713Posts

    [Source] Extra column in the database

    I have been working on an addition to the character info window.
    There is a little bar which increases each time you call an event (I have used a command for the ease of testing).
    I want this value to be saved in the database just like the m_nStr value. I defined the value in I believe User.h and Obj.h (for the DB server) but when I change the value in mover.cpp it does not update it in the database.
    What else should I edit so that when the user logs out, that value is saved to the character table in the m_nTest column?
    I didn't add anything to make it know that column is in the character table, perhapd that's what is missing.

    Thanks in advance.
    Posted via Mobile Device


  2. #2
    Flyff Developer ShadowDragon is offline
    MemberRank
    Apr 2009 Join Date
    1,916Posts

    Re: [Source] Extra column in the database

    in _Database/DbManager.cpp, find: CDbManager::DBQryCharacter

    That's the function that controls every variable that is retrieved from a character and saved in the CHARACTER_TBL

  3. #3
    [R8]ℓσℓ32 caja is offline
    MemberRank
    Oct 2008 Join Date
    Here!Location
    1,502Posts

    Re: [Source] Extra column in the database

    You will need to update the sp too. Then in dbmanager its like shadowdragon42 sais.
    Posted via Mobile Device

  4. #4
    Trust your senses Gravious is offline
    MemberRank
    Sep 2009 Join Date
    NetherlandsLocation
    713Posts

    Re: [Source] Extra column in the database

    Quote Originally Posted by caja View Post
    You will need to update the sp too. Then in dbmanager its like shadowdragon42 sais.
    Posted via Mobile Device
    Yeah, figured that out already. Thank you both.



Advertisement