bcc5476d1f
2.04.2006 - Build 13 (Unlucky): - - Dying now properly takes you back to the actual lat/lon of the world's first town (rather than 0,0 every time). - Added 160+ new monsters for the later realms. - Buy Maps now correctly only shows available maps from the Realm you're in. - Fixed some weirdness with the Travel To menu in the second Realm. - Added storyline/quests. - Added item drops from monsters. - Monsters now have a chance to swing first, and to block you from running. - Added Quick Heal to panel_bottom. - Users who are already a member of a guild no longer see the "Apply to Join" link on the Guild List page. - Added Honor Points to guilds. * plus 1 point per member. * plus floored square root of total combined member experience. * plus 2 points per member PVP win. * minus 1 point per member PVP loss. * Calculated every 24 hours automatically, and upon every approve/remove/leave. * Displayed on the Guild List page. - Added stats for your current items on the first Buy screen. - You cannot create/join a guild until Level 10 to help prevent bank abuse. - Added PVP logging - wins, losses, and highest lvl character killed. - Hall of Fame now shows top 25 chars. - Hall of Fame now uses stock mysql_fetch_array() instead of custom dorow(). - Items now have a 1 in 5 chance of having prefixes/suffixes (it used to be 50:50). - Added email verification support.
87 lines
3.6 KiB
PHP
87 lines
3.6 KiB
PHP
<?php // index.php :: Case switching to decide what function we need to be running.
|
|
|
|
include("lib.php");
|
|
include("globals.php");
|
|
|
|
if(isset($_GET["do"])) {
|
|
$do = explode(":",$_GET["do"]);
|
|
switch ($do[0]) {
|
|
|
|
// Exploring.
|
|
case "explore": include("explore.php"); move(); break;
|
|
case "travel": include("explore.php"); travel($do[1]); break;
|
|
case "quickheal": include("explore.php"); quickheal(); break;
|
|
case "itemdrop": include("explore.php"); itemdrop(); break;
|
|
case "humanity": include("explore.php"); botkillah(); break;
|
|
// Towns.
|
|
case "inn": include("town.php"); inn(); break;
|
|
case "maps": include("town.php"); map(); break;
|
|
case "duel": include("town.php"); duel(); break;
|
|
case "challenge": include("town.php"); duelchallenge(); break;
|
|
case "buy": include("town.php"); buy(); break;
|
|
case "gamble": include("town.php"); gamble(); break;
|
|
case "bank": include("town.php"); bank(); break;
|
|
case "top10": include("town.php"); halloffame(); break;
|
|
// Mailbox.
|
|
case "mailbox": include("mailbox.php"); mailbox(); break;
|
|
case "mailview": include("mailbox.php"); letter(); break;
|
|
case "maildelete": include("mailbox.php"); maildelete(); break;
|
|
case "mailnew": include("mailbox.php"); mailnew(); break;
|
|
case "mailreply": include("mailbox.php"); mailreply(); break;
|
|
case "mailsent": include("mailbox.php"); outbox(); break;
|
|
case "mailviewsent": include("mailbox.php"); letterout(); break;
|
|
// Fights.
|
|
// Guilds.
|
|
case "guilds": include("guilds.php"); guildmain(); break;
|
|
case "guildhome": include("guilds.php"); guildhome(); break;
|
|
case "guildcreate": include("guilds.php"); guildcreate(); break;
|
|
case "guildapp": include("guilds.php"); guildapp(); break;
|
|
case "guildmembers": include("guilds.php"); guildmembers(); break;
|
|
case "guildbank": include("guilds.php"); guildbank(); break;
|
|
case "guildpromote": include("guilds.php"); guildpromote(); break;
|
|
case "guildremove": include("guilds.php"); guildremove(); break;
|
|
case "guildapprove": include("guilds.php"); guildapprove(); break;
|
|
case "guildnews": include("guilds.php"); guildnews(); break;
|
|
case "guilddisband": include("guilds.php"); guilddisband(); break;
|
|
case "guildedit": include("guilds.php"); guildedit(); break;
|
|
case "guildleave": include("guilds.php"); guildleave(); break;
|
|
case "guildupdate": include("guilds.php"); guildupdate(); break;
|
|
// Misc.
|
|
case "babblebox": include("misc.php"); babblebox2(); break;
|
|
case "showmap": include("misc.php"); showmap(); break;
|
|
case "version": include("misc.php"); version(); break;
|
|
case "iddqd": include("misc.php"); iddqd(); break;
|
|
default: donothing();
|
|
|
|
}
|
|
} else {
|
|
donothing();
|
|
}
|
|
|
|
function donothing() {
|
|
|
|
global $userrow;
|
|
if ($userrow["story"] != "0" && $userrow["storylat"] == $userrow["latitude"] && $userrow["storylon"] == $userrow["longitude"]) {
|
|
die(header("Location: story.php"));
|
|
}
|
|
if ($userrow["currentpvp"] != 0) {
|
|
die(header("Location: pvp.php"));
|
|
}
|
|
if ($userrow["currentaction"] == "In Town") {
|
|
include("town.php");
|
|
dotown();
|
|
}
|
|
if ($userrow["currentaction"] == "Exploring") {
|
|
include("explore.php");
|
|
doexplore();
|
|
}
|
|
if ($userrow["currentaction"] == "Fighting") {
|
|
die(header("Location: fight.php"));
|
|
}
|
|
if ($userrow["currentaction"] == "PVP") {
|
|
die(header("Location: pvp.php"));
|
|
}
|
|
|
|
}
|
|
|
|
?>
|