Jump to content

designer132

Inactive Member
  • Posts

    14
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by designer132

  1. Hi,

    i have problem with compiling DB. Everything is ok, but after creating output (linking) i have error: 

    /usr/bin/ld: cannot find -lsql
    gmake: *** [../db_r44444] Error 1

    and after that compiling ends without output file.

     

    Thanks for any help...

     

    PS. Sorry for my bad english.

  2.  

    Open input_auth.cpp and find those strings:

    	if (false == FN_IS_VALID_LOGIN_STRING(login))
    	{
    		sys_log(0, "InputAuth::Login : IS_NOT_VALID_LOGIN_STRING(%s) desc %p",
    				login, get_pointer(d));
    		LoginFailure(d, "NOID");
    		return;
    	}

    under that add this:

    	char query[1024];
    	snprintf(query, sizeof(query),"SELECT ip FROM player.ban_ip WHERE ip = '%s'", d->GetAddr().sin_addr);
    	std::auto_ptr<SQLMsg> execquery(DBManager::instance().DirectQuery(query));
    	
    	if (execquery->Get()->uiNumRows >= 1)
    	{
    		LoginFailure(d, "BAN_IP");
    		return;		
    	}

    I didn't test it but it should work

     

    You just need to create a table in player called ban_ip and add one field called ip with text type

     

    Edit: Open intrologin.py and find this:

    self.loginFailureMsgDict={

    and add this:

    			"BAN_IP"	: "You have an ip ban",

     

    You have little mistake in the code, should be:

    	char query[1024];
    	snprintf(query, sizeof(query),"SELECT ip FROM player.ban_ip WHERE ip = '%s'", inet_ntoa(d->GetAddr().sin_addr));
    	std::auto_ptr<SQLMsg> execquery(DBManager::instance().DirectQuery(query));
    	
    	if (execquery->Get()->uiNumRows >= 1)
    	{
    		LoginFailure(d, "BAN_IP");
    		return;		
    	}

    PS. It's work

    • Love 2
  3. For example you write /i 28433 add it your weapon if the stone succeed equip the weapon and write /i 25100 then drag it in the equipped weapon when the stone is removed you'll have +25% to warriors without any stone and you can do it continuously

     

    Like! Thanks for this. This is really work, i don't know about this bug, but now i removed it. You must block removing stones when eq are equipped, better in game then binary (someone can use other binary).

    Do you know about other bugs in source?

     

    Sorry for my bad english ;/

  4. can anyone know how i can compile the novaline binary?

     

    Off topic.

    I compile mainline_released binary without any problems, but it dont't work on my client. Now i work on novaline binary, but I can't compile it myself.

     

    Sorry for my english.

×
×
  • 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.