• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[7.6] Avesta

Ye i figured out how the system works.

Got like every npc working perfectly.
 
Code:
	if(version < 760 || version > 760){

		disconnectClient(0x0A, STRING_CLIENT_VERSION);

	}



	uint32_t accnumber = msg.GetU32();

	std::string password = msg.GetString();

	

	if(!accnumber){

        disconnectClient(0x0A, "You must enter your account number.");

        return false;

    }



	if(version < CLIENT_VERSION_MIN || version > CLIENT_VERSION_MAX){

		disconnectClient(0x0A, STRING_CLIENT_VERSION);

		return false;

	}
lol.
 
what u mean hans henrik

Code:
	if(version < 760 || version > 760){
		disconnectClient(0x0A, STRING_CLIENT_VERSION);
	}

	if(version < CLIENT_VERSION_MIN || version > CLIENT_VERSION_MAX){

		disconnectClient(0x0A, STRING_CLIENT_VERSION);

		return false;

	}
... use logic, take your best guess, whats wrong with this code? :p
 
[/code]... use logic, take your best guess, whats wrong with this code? :p[/QUOTE]

Lmao no idea
 
[/code]... use logic, take your best guess, whats wrong with this code? :p

Lmao no idea[/QUOTE]

nice i guess

First it checks if the client is 7.6 (aka 760), if it is not, it disconnect the client, the follow up by checking if the client is CLIENT_VERSION_MIN or CLIENT_VERSION_MAX (aka 760 in Avesta), and if it is not, it tries to disconnect the client again, then stop trying to "login the client"

- it should not check client-version 2 times, it should not try to disconnect the client 2x times
 
Back
Top