Addind AutoSave

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Addind AutoSave

    Okay guys i need help (again).What help?I need to and an AutoSave on my COSource b cuz when i close the server or restart no all the time save the chars :\ btw i'm using LOTF source and ofcouse MySql.If some1 know how to code the AutoSave at 1 min or 30 seconds pls post here ^_^


  2. #2
    Proficient Member Virtue~ is offline
    MemberRank
    Jul 2008 Join Date
    181Posts

    Re: Addind AutoSave

    Ill try to help.

    I like to host server, but i onlt got 256mb of RAM ( cant wait for my 2G to come :) )
    I still know how to make em though

    Ok somewhere in your C# project goto:
    Equip.cs

    Now this will save their account everytime they equip an object.
    Code:
    TheClient.MyChar.SaveChar();
    Is the code for saving...

    In not fur sure but try puttin that in
    Code:
    if (RequestPos == 1)
    through
    Code:
    if (RequestPos == 9)
    =S BEst i could think of m8
    - Virtue

  3. #3
    Apprentice lostsoldier is offline
    MemberRank
    Jul 2008 Join Date
    16Posts

    Re: Addind AutoSave

    You can just code it so then when the client is closed the char's data will be saved.

    some sources will have it commented like
    /// add save

    or something.

    then by adding the same type of code idea as your /save command the information will save when the user exits the game


    which i think is a better way of doing it that it saving ever ***minuites.

  4. #4
    Proficient Member Virtue~ is offline
    MemberRank
    Jul 2008 Join Date
    181Posts

    Re: Addind AutoSave

    in c# project the code is:
    Code:
    TheClient.MyChar.SaveChar();
    To save..

  5. #5
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Addind AutoSave

    no i need an AUTOSaver and every 60 seconds no a commands to save :\

  6. #6
    Apprentice lostsoldier is offline
    MemberRank
    Jul 2008 Join Date
    16Posts

    Re: Addind AutoSave

    yes just make that code run when you want

    using a timer or something.


    but i still don't understand WHY
    it's easy to just save when they close there client.

    running a save command every like 60 secs wouldn't that just lag the server.

    but your choice

  7. #7
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Addind AutoSave

    hmm,if i give you the respective file, you will put the codes in it?

  8. #8
    Account Upgraded | Title Enabled! Ultimatum is offline
    MemberRank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Addind AutoSave

    LMFAO why can't you do it yourself o.0

  9. #9
    Account Upgraded | Title Enabled! james1992_2006 is offline
    MemberRank
    Aug 2006 Join Date
    illlinoisLocation
    427Posts

    Re: Addind AutoSave

    Quote Originally Posted by Ultimatum View Post
    LMFAO why can't you do it yourself o.0

    well i gotta agree on that he has his own server yet he cant code something so simple :P

  10. #10
    Account Upgraded | Title Enabled! Ne[o]x is offline
    MemberRank
    Apr 2008 Join Date
    Romania | Baia MareLocation
    235Posts

    Re: Addind AutoSave

    okay okay



Advertisement