summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
03e0a9d)
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@150
bc333340-6410-0410-a689-
9d09f3c113fa
+* 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
* 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
+* 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?
* 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 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.
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!
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 "\
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 "\
- log("New Player: %s", name);
+ #ifdef DEBUGMODE
+ log("New Player: %s", name);
+ #endif
sprintf(name, "Player%d", num);
}
sprintf(name, "Player%d", num);
}
- log("Setting Player data for %s", name);
+ #ifdef DEBUGMODE
+ log("Setting Player data for %s", name);
+ #endif
else if (stricmp(dest, c_Forest) == 0)
forest(source, rest);
#endif
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) {
} else if (stricmp(cmd, "JOIN") == 0) {
channel = strtok(NULL, " ");
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) {
#if defined(BAHAMUT)
} else if (stricmp(cmd, "SJOIN") == 0) {