Set New Chars Zuly And Begin Level

Results 1 to 3 of 3
  1. #1
    Apprentice Computer29 is offline
    MemberRank
    Feb 2007 Join Date
    19Posts

    Set New Chars Zuly And Begin Level

    i'm not good at english,sorry!
    this you can set zuly and level when you created a new char!
    now let's see the code!(i'm a student,not a programmer)
    1,open sickets/sockets.h
    find "
    Code:
    unsigned int charPass;
    " add "
    Code:
    unsigned int NewMoney;
    " and "
    Code:
    unsigned int NewLevel;
    "

    then,open charpackets.cpp,find "
    Code:
    if(!DB->QExecute("INSERT INTO characters (account_name
    ............."

    change to "
    Code:
    if(!DB->QExecute("INSERT INTO characters (account_name, char_name, face, hairStyle, sex, zuly, level) VALUES('%s','%s',%i,%i,%i,%i,%i)", thisclient->username, newname.c_str(), face, hairstyle, sex, Config.NewMoney, Config.NewLevel))
    "

    Finally,open the charserver.conf,add this
    Code:
    [CPUCHAR]
    newmoney=10000 //this is the zuly you want
    newlevel=1 //this level~~~

    ok~~compile!
    good luck!


  2. #2
    Apprentice stanec is offline
    MemberRank
    Sep 2005 Join Date
    11Posts

    Re: Set New Chars Zuly And Begin Level

    nice contribution

    thanks

  3. #3
    You don't know me. Paco44 is offline
    MemberRank
    Apr 2006 Join Date
    IllinoisLocation
    1,777Posts

    Re: Set New Chars Zuly And Begin Level

    Aside from your english, nice discovery, I appreciate your work. Thank you.



Advertisement