• 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!

Compiling A passoword

Rachaw

Experienced Member
Joined
Oct 17, 2009
Messages
602
Reaction score
1
Location
Tha Sweden
How do i make this;

When you start TFS it comes up an small window like winrars It says


Welcome!
Please enter password:
-============-
| password_____ |
-============-

and make a file so when you combile you can like

# PASSWORD = theforgottenserver,
# USE_PASSWORD = YES


ex..

i rep 2 times :D

/rachaw
 
password problem

Means the person has locked the file so they need to give u a password, or maybe it is there where u downloaded it ;)
 
Code:
char *pass = "my secret pass";
char *cPass;

std::cout << "This server is password protected." << std::endl;
std::cout << "Password >";

cin >> cPass;
if strcmp(pass, cPass)
	startupErrorMessage("Incorrect password.");
 
how i add

i just like add password.h ?

can i do this?

Code:
#ifndef __CONSOLE__
	#define ID_KICK 101
	#define ID_BAN 102
	#define ID_ABOUT 104
	#define ID_LOG 105
	#define ID_ICON 106

	#define ID_TRAY_HIDE 118
	#define ID_TRAY_SHUTDOWN 119
	#define ID_STATUS_BAR 120

	#define ID_MENU 200

	#define ID_MENU_FILE_CLEARLOG 201
	#define ID_MENU_FILE_SHUTDOWN 202

	#define ID_MENU_GAME_REJECT 203
	#define ID_MENU_GAME_ACCEPT 204
	#define ID_MENU_GAME_BROADCAST 205

	#define ID_MENU_GAME_PLAYERS_LIST 206
	#define ID_MENU_GAME_PLAYERS_SAVE 207

	#define ID_MENU_GAME_RELOAD_ACTIONS 208
	#define ID_MENU_GAME_RELOAD_CREATUREEVENTS 209
	#define ID_MENU_GAME_RELOAD_COMMANDS 210
	#define ID_MENU_GAME_RELOAD_CONFIG 211
	#define ID_MENU_GAME_RELOAD_HIGHSCORES 212
	#define ID_MENU_GAME_RELOAD_MONSTERS 213
	#define ID_MENU_GAME_RELOAD_MOVEMENTS 214
	#define ID_MENU_GAME_RELOAD_NPCS 215
	#define ID_MENU_GAME_RELOAD_QUESTS 216
	#define ID_MENU_GAME_RELOAD_RAIDS 217
	#define ID_MENU_GAME_RELOAD_SPELLS 218
	#define ID_MENU_GAME_RELOAD_TALKACTIONS 219
	#define ID_MENU_GAME_RELOAD_RELOADALL 220

	#define ID_MENU_GAME_WORLDTYPE_NOPVP 221
	#define ID_MENU_GAME_WORLDTYPE_PVP 222
	#define ID_MENU_GAME_WORLDTYPE_PVPENFORCED 223
#endif

#define STATUS_SERVER_NAME "The Forgotten Server"
#define STATUS_SERVER_CODENAME "Mystic Spirit"
#define STATUS_SERVER_PROTOCOL "8.5"
#define CLIENT_VERSION_MIN 850
#define CLIENT_VERSION_MAX 853
 
Back
Top