#define E extern
#define LEVELS 12 // Levels in the game
+#define REALLEVELS 6 // Levels to load from monsters.dat
#define MONSTERS 12 // Monsters per level
#include <stdarg.h>
E char *remoteport;
E char *remotepass;
E char *playerdata;
+E char *monsterdata;
E char *adminpass;
E char *VERSION;
E char *PACKAGE;
+E char *welcomemsg;
+
+E int welcomedelay;
+E int updateperiod;
+E int forestfights;
E List<aClient> clients;
E List<aClient> players;
/** functions.cpp **/
-E bool is_fighting(char *u);
-E bool isnt_fighting(char *u);
E bool is_playing(char *u);
-E bool has_started(char *u);
+E bool is_playing(aClient *user);
+
E bool is_fighting(char *u);
-E bool isnt_fighting(char *u);
+E bool is_fighting(aClient *user);
+
E bool player_fight(char *u);
+E bool player_fight(aClient *user);
+
E bool master_fight(char *u);
+E bool master_fight(aClient *user);
+
+E bool is_alive(char *u);
+E bool is_alive(aClient *user);
#ifndef HAVE_STRTOK
E char *strtok(char *str, const char *delim);
E long int stringtoint(char *number);
E void init_masters();
E void init_monsters();
+E bool load_monsters();
E void delete_monsters();
E void delete_masters();
E Monster *getNewMonster(Monster *m);
E void refreshall();
E void reset(aClient *ni);
-E void do_list(char *u);
-E void do_refresh(char *u);
-E void do_register(char *u);
+E void do_attack(char *u);
+E void do_bank(char *u);
+E void do_fight(char *u);
+E void do_forest(char *u);
+E void do_heal(char *u);
E void do_identify(char *u);
+E void do_invenory(char *u);
+E void do_list(char *u);
E void do_play(char *u);
E void do_quitg(char *u);
+E void do_refresh(char *u);
+E void do_register(char *u);
E void do_reset(char *u);
-E void do_fight(char *u);
-E void do_store(char *u);
-E void do_heal(char *u);
-E void do_bank(char *u);
-E void do_attack(char *u);
E void do_run(char *u);
-E void do_visit(char *u);
E void do_stats(char *u);
-E void do_forest(char *u);
+E void do_store(char *u);
+E void do_tavern(char *u);
+E void do_visit(char *u);
E void see_mystic(char *u);
-E void showstats(const char *u, const char *nick);
+E void showstats(const char *u, const char *nick);
+E void showinventory(aClient *from, aClient *to = NULL);
/* Database saving stuff */
E int save_gs_dbase();