X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/903cd8615208a3e02ac9efbd881d73c409f996e2..c8117c0f735f1367f9537e6fb414cd3e77c73c39:/gameserv/tcpclient.cpp diff --git a/gameserv/tcpclient.cpp b/gameserv/tcpclient.cpp index fc9e2c3..92f0814 100644 --- a/gameserv/tcpclient.cpp +++ b/gameserv/tcpclient.cpp @@ -122,9 +122,11 @@ int main(int argc, char *argv[]) strcpy(boss.name, "Red Dragon"); strcpy(boss.weapon, "Breath of Unholy Fire"); - boss.strength = 6667; + boss.strength = 1000; boss.gold = 2000000000; boss.exp = 2000000000; + boss.maxhp = 6667; + boss.hp = 6667; strcpy(boss.death, "You finally snuff out the deadly murderous "\ "dragon's dark flames. You have freed the land of its terror "\ "filled reign from above!"); @@ -182,7 +184,7 @@ int main(int argc, char *argv[]) raw("PASS :%s", remotepass); raw("SERVER %s 1 %d %d P10 []AAF :%s", servername, time(NULL), time(NULL), servername); raw("[] N %S 1 %d %s %s %s DAqAoB %s :%S", time(NULL), gsident, gshost, - (isBOper() ? "+o" : "") gsnum); + (isBOper() ? "+o" : ""), gsnum); raw("[] B %s %d +tn %s:o", c_Forest, time(NULL) - 864000, gsnum); #endif @@ -336,13 +338,17 @@ int main(int argc, char *argv[]) if (loaded) + + if (isWelcome()) + { + #ifdef P10 + notice(s_GameServ, nick, welcomemsg, realnick); + #else + notice(s_GameServ, nick, welcomemsg, nick); + #endif + } #ifdef P10 - notice(s_GameServ, nick, welcomemsg, realnick); - #else - notice(s_GameServ, nick, welcomemsg, nick); - #endif - #ifdef P10 - unsigned long hv = sHASH((unsigned char *) nick) + unsigned long hv = sHASH((unsigned char *) nick); #else unsigned long hv = iHASH((unsigned char *) nick); #endif