Version 1.2.0
+* Fixed a bug that was causing players not to be voiced on the forest
+ channel on P10 servers - kain
+* Added a missing code segment to subtract 1 from the player fights per
+ day when you fight another player (reported by MaCbLiNd) - kain
* Fixed a bug that allowed the same player name to be registered any
number of times - kain
* Fixed a problem in when players quit on a P10 server, the /msg
- = Started
X = Finsihed
+* Fix bug that doesn't decrease player fights
+
* Deal with cheaters who create additional characters, fight with them a bit,
then kill them to get their gold. Maybe add level restrictions to fighting
other players?
* Make a logout command
-* make it so you can't register two of the same player names
+X make it so you can't register two of the same player names
X Option for including a config file as a runtime parameter for running
Multiple instances of GameServ on different networks.
clearYourTurn(battle->stats);
// Initiate Battle sequence!
+ battle->stats->player_fights -= 1;
+
notice(s_GameServ, u, "You challenge %s to an online duel!", battle->stats->name);
notice(s_GameServ, battle->getNick(), "%s has challenged you to an online duel!", ni->stats->name);
notice(s_GameServ, battle->getNick(), "%s gets to go first "\
strcpy(name, n);
- log("New Player: %s", name);
+ #ifdef DEBUGMODE
+ log("New Player: %s", name);
+ #endif
}
Player::~Player()
sprintf(name, "Player%d", num);
}
- log("Setting Player data for %s", name);
+ #ifdef DEBUGMODE
+ log("Setting Player data for %s", name);
+ #endif
}
monster_::~monster_()
else if (stricmp(dest, c_Forest) == 0)
forest(source, rest);
#endif
+ #if defined(P10)
+ } else if (stricmp(cmd, "J") == 0) {
+ #else
} else if (stricmp(cmd, "JOIN") == 0) {
+ #endif
char *channel;
+ aClient *joiner;
channel = strtok(NULL, " ");
- if (stricmp(channel, c_Forest) == 0 && is_playing(source + 1))
- raw(":%S MODE %s +v %s", c_Forest, (source + 1));
+
+ char z = source[0];
+
+ if (z == ':')
+ source++;
+
+ joiner = find(source);
+
+ if (stricmp(channel, c_Forest) == 0 && is_playing(joiner))
+ {
+ #ifdef DEBUGMODE
+ log("Player %s (IRC: %s) joined %s",
+ joiner->stats->name,
+ #ifdef P10
+ joiner->getRealNick(),
+ #else
+ joiner->getNick(),
+ #endif
+ c_Forest);
+ #endif
+ raw(":%S MODE %s +v %s", c_Forest, (source));
+ }
+
+ if (z == ':')
+ source--;
#if defined(BAHAMUT)
} else if (stricmp(cmd, "SJOIN") == 0) {