Beta 3 Build 16
4.26.2006 - Build 16 (Road Rage): - Fixed a bug that prevented you from applying fewer than your max levelspell points. - Added links back to the stores after buying maps/items or using the bank. - Added a link back to town after gambling. - Fixed the link in the error message when failing to create a guild.
This commit is contained in:
parent
32e5cfe9ac
commit
bee59d4382
|
@ -3,6 +3,12 @@ Changelog
|
|||
|
||||
***** BETA THREE *****
|
||||
|
||||
4.26.2006 - Build 16 (Road Rage):
|
||||
- Fixed a bug that prevented you from applying fewer than your max levelspell points.
|
||||
- Added links back to the stores after buying maps/items or using the bank.
|
||||
- Added a link back to town after gambling.
|
||||
- Fixed the link in the error message when failing to create a guild.
|
||||
|
||||
4.08.2006 - Build 15 (Dead Man's Chest):
|
||||
- Character profiles now display class name instead of ID numbers.
|
||||
- Fixed incorrect minimum level display in guild start/apply error messages.
|
||||
|
|
|
@ -141,7 +141,7 @@ function guildcreate() {
|
|||
} else {
|
||||
|
||||
// Die gracefully on errors.
|
||||
err("The following error(s) occurred when your account was being made:<br /><span style=\"color:red;\">$errorlist</span><br />Please <a href=\"users.php?do=register\">go back</a> and try again.");
|
||||
err("The following error(s) occurred when your account was being made:<br /><span style=\"color:red;\">$errorlist</span><br />Please <a href=\"users.php?do=guildcreate\">go back</a> and try again.");
|
||||
|
||||
}
|
||||
|
||||
|
|
6
lib.php
6
lib.php
|
@ -5,9 +5,9 @@ $starttime = getmicrotime();
|
|||
$numqueries = 0;
|
||||
$link = opendb();
|
||||
$version = "Beta 3";
|
||||
$bnumber = "15";
|
||||
$bname = "Dead Man's Chest";
|
||||
$bdate = "4.08.2006";
|
||||
$bnumber = "16";
|
||||
$bname = "Road Rage";
|
||||
$bdate = "4.26.2006";
|
||||
|
||||
// Handling for servers with magic_quotes turned on.
|
||||
// Example from php.net.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$template = <<<END
|
||||
Thank you for your transaction.<br /><br />
|
||||
You are now storing {{formatbank}} gold in the bank, and you are carrying {{formatgold}} gold in your pocket.<br /><br />
|
||||
You may return to <a href="index.php">town</a>, or use the direction buttons to continue exploring.
|
||||
You may return to <a href="index.php">town</a>, the <a href="index.php?do=bank">bank</a>, or use the direction buttons to continue exploring.
|
||||
END;
|
||||
|
||||
?>
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
$template = <<<END
|
||||
Thank you for purchasing this item.<br /><br />
|
||||
You may return to <a href="index.php">town</a>, or use the direction buttons to continue exploring.
|
||||
You may return to <a href="index.php">town</a>, the <a href="index.php?do=buy">item store</a>, or use the direction buttons to continue exploring.
|
||||
END;
|
||||
|
||||
?>
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
$template = <<<END
|
||||
Thank you for purchasing this map.<br /><br />
|
||||
You may return to <a href="index.php">town</a>, or use the direction buttons to continue exploring.
|
||||
You may return to <a href="index.php">town</a>, the <a href="index.php?do=maps">map store</a>, or use the direction buttons to continue exploring.
|
||||
END;
|
||||
|
||||
?>
|
8
town.php
8
town.php
|
@ -317,11 +317,11 @@ function gamble() {
|
|||
if ($thecup == $thewin) {
|
||||
$userrow["gold"] += ($amount * 10);
|
||||
doquery("UPDATE {{table}} SET gold=gold+($amount * 10) WHERE id='".$userrow["id"]."' LIMIT 1", "users");
|
||||
display("Gamble", "You won!<br /><br />You just picked up <b>".($amount * 10)." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble&mode=hard\">try again</a>?");
|
||||
display("Gamble", "You won!<br /><br />You just picked up <b>".($amount * 10)." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble&mode=hard\">try again</a> or would you rather go back to <a href=\"index.php\">town</a>?");
|
||||
} else {
|
||||
$userrow["gold"] -= $amount;
|
||||
doquery("UPDATE {{table}} SET gold=gold-$amount WHERE id='".$userrow["id"]."' LIMIT 1", "users");
|
||||
display("Gamble", "You lost!<br /><br />Sorry buddy, but we're gonna have to take your <b>".$amount." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble&mode=hard\">try again</a>?");
|
||||
display("Gamble", "You lost!<br /><br />Sorry buddy, but we're gonna have to take your <b>".$amount." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble&mode=hard\">try again</a> or would you rather go back to <a href=\"index.php\">town</a>?");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -334,11 +334,11 @@ function gamble() {
|
|||
if ($thecup == $thewin) {
|
||||
$userrow["gold"] += ($amount * 2);
|
||||
doquery("UPDATE {{table}} SET gold=gold+($amount * 2) WHERE id='".$userrow["id"]."' LIMIT 1", "users");
|
||||
display("Gamble", "You won!<br /><br />You just picked up <b>".($amount * 2)." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble\">try again</a>?");
|
||||
display("Gamble", "You won!<br /><br />You just picked up <b>".($amount * 2)." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble\">try again</a> or would you rather go back to <a href=\"index.php\">town</a>?");
|
||||
} else {
|
||||
$userrow["gold"] -= $amount;
|
||||
doquery("UPDATE {{table}} SET gold=gold-$amount WHERE id='".$userrow["id"]."' LIMIT 1", "users");
|
||||
display("Gamble", "You lost!<br /><br />Sorry buddy, but we're gonna have to take your <b>".$amount." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble\">try again</a>?");
|
||||
display("Gamble", "You lost!<br /><br />Sorry buddy, but we're gonna have to take your <b>".$amount." Gold</b>.<br /><br />Care to <a href=\"index.php?do=gamble\">try again</a> or would you rather go back to <a href=\"index.php\">town</a>?");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -605,11 +605,13 @@ function levelspell() {
|
|||
// This is to ensure that people don't edit the source to just add more fields.
|
||||
$total = $userrow["levelspell"];
|
||||
for($i=0; $i<$total; $i++) {
|
||||
if ($_POST["spell".$i] != 0) {
|
||||
if (!isset($spells[$_POST["spell".$i]])) { err("That spell doesn't exist."); }
|
||||
$userrow["spell".$_POST["slot".$i]."id"] = $_POST["spell".$i];
|
||||
$userrow["spell".$_POST["slot".$i]."name"] = $spells[$_POST["spell".$i]]["name"];
|
||||
$userrow["levelspell"]--;
|
||||
}
|
||||
}
|
||||
|
||||
// Finish.
|
||||
updateuserrow();
|
||||
|
|
Loading…
Reference in New Issue
Block a user