- if ( thisclient->Battle->target == clientid ) return true;
Add:
- if(thisclient->Shop->open){
- return true;
- }
-------------------------------------Beautiful Line-----------------------------------------------
Set Max Number Of Chars:
Open "sockets.h"
Find:
- unsigned int WorldPass;
Add:
- int MaxChars;
Than Open "charserver.cpp"
Find
- Config.WorldPass = ConfigGetInt ( file, "worldpass", 123456 );
Add:
- Config.MaxChars = ConfigGetInt ( file, "maxchars" , 3);
- Log( MSG_INFO, "Max Number Of Chars Set To : %d.",Config.MaxChars );
Than Open "charpackets.cpp"
Find:
- if ( mysql_num_rows( result ) == 5 )
Replace To:
- if ( mysql_num_rows( result ) >= Config.MaxChars )
-------------------------------------Beautiful Line-----------------------------------------------
Set New Char's Level And Zuly:
File:charserver.cpp
Find:
- Config.WorldPass = ConfigGetInt ( file, "worldpass", 123456 );
Add:
- Config.InitLevel = ConfigGetInt ( file, "initlevel", 10);
- Config.NewZuly = ConfigGetInt ( file, "initzuly" , 0);
Next Open the conf file "CharServer.Conf"
add this after "usethreads=0"
- initlevel=10
- initzuly=5000
final:
open "sockets.h"
find
- unsigned int WorldPass;
add after :
- int InitLevel;
- int NewZuly;
final open "charpackets.cpp"
find
- if(!DB->QExecute("INSERT INTO characters (account_name, char_name, face, hairStyle, sex) VALUES('%s','%s',%i,%i,%i)", thisclient->username, newname.c_str(), face, hairstyle, sex))
replace to:
- if(!DB->QExecute("INSERT INTO characters (account_name, char_name, face, hairStyle, sex, level, zuly) VALUES('%s','%s',%i,%i,%i,%i,%i)", thisclient->username, newname.c_str(), face, hairstyle, sex, Config.InitLevel, Config.NewZuly))
-------------------------------------Beautiful Line-----------------------------------------------