]> jfr.im git - irc/gameservirc.git/commitdiff
fixed some bugs and updated files
authorkainazzzo <redacted>
Mon, 6 Mar 2006 19:49:01 +0000 (19:49 +0000)
committerkainazzzo <redacted>
Mon, 6 Mar 2006 19:49:01 +0000 (19:49 +0000)
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@404 bc333340-6410-0410-a689-9d09f3c113fa

gameserv/Changes
gameserv/do_attack.cpp
gameserv/php/install.php

index 0bfb81d3f3cfe080ab9441cf5120178357f2cba4..17bd7ed04b82b0bfd62a56c3d1100d98829526e6 100644 (file)
@@ -1,3 +1,8 @@
+Version 1.3.3
+* Fixed a bug that occured when a player defeated another player and gameserv /noticed the channel
+    with the wrong name - Kain
+* Added a php directory to the source folder which contains a script for parsing the players.dat
+    file and put all the data into a mySQL database - Kain
 Version 1.3.2
 * Fixed a bug which allowed a player to run from the dragon, then fight a monster from the
     forest and win the dragon fight - Kain (thanks Kit)
index 02111a333cd60579239b16d7e762c45c07c7ad69..01173013fe3b1d9ffeace75b82774f487926a532 100644 (file)
@@ -238,7 +238,7 @@ void do_attack(char *u)
                          notice(s_GameServ, u, "You have killed \ 2%s\ 2!", battle->stats->getName().c_str());
                          notice(s_GameServ, u, "You recieve \ 2%d\ 2 experience and \ 2%ld\ 2 gold!",
                                         (long int)(battle->stats->getExp() * .10), battle->stats->getGold());
-                         addNews(todaysnews, "%s has defeated %s, leaving %s in a pool of blood", ni->stats->getName().c_str(), battle->stats->getName().c_str()); /* DrLnet - Modified by kain for news instead of just a message */ 
+                         addNews(todaysnews, "%s has defeated %s, leaving %s in a pool of blood", ni->stats->getName().c_str(), battle->stats->getName().c_str(), battle->stats->getName().c_str()); /* DrLnet - Modified by kain for news instead of just a message */ 
                          notice(s_GameServ, battle->getNick(), "You have been killed by \ 2%s\ 2!",
                                         ni->stats->getName().c_str());
                          battle->stats->setHP(0);
index 8dddf4dfdd54ff3aaa6248a8902d12b20a1b3ce6..1f6a3245aa8a2cb7388c76871de0cb32629c8411 100644 (file)
@@ -1,5 +1,6 @@
 <?php
     include ('mysql.php');
 
-    $query = "
+$query = "CREATE Table `players` (`name` text, `level` int NOT NULL default 1, `exp` bigint NOT NULL default 0, `gold` bigint NOT NULL default 0, `bank` bigint NOT NULL default 0, `hp` int NOT NULL default 0, `maxhp` int NOT NULL default 0, `strength` int NOT NULL default 0, `defense` int NOT NULL default 0, `forestfights` int NOT NULL default 0, `playerfights` int NOT NULL default 0, `lastlogin` text, `weapon` text NOT NULL, `armor` text NOT NULL, PRIMARY KEY (`name`(255))) ENGINE=InnoDB DEFAULT CHARSET=latin1";
+
 ?>
\ No newline at end of file