+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)
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);
<?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