-
Notifications
You must be signed in to change notification settings - Fork 9
/
inn.php
70 lines (59 loc) · 1.67 KB
/
inn.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
// addnews ready
// translator ready
// mail ready
require_once("common.php");
require_once("lib/commentary.php");
require_once("lib/pvpwarning.php");
require_once("lib/sanitize.php");
require_once("lib/pvplist.php");
require_once("lib/http.php");
require_once("lib/buffs.php");
require_once("lib/events.php");
require_once("lib/villagenav.php");
tlschema("inn");
addcommentary();
$iname = getsetting("innname", LOCATION_INN);
$vname = getsetting("villagename", LOCATION_FIELDS);
$barkeep = getsetting('barkeep','`tCedrik');
$op = httpget('op');
// Correctly reset the location if they fleeing the dragon
// This needs to be done up here because a special could alter your op.
if ($op == "fleedragon") {
$session['user']['location'] = $vname;
}
page_header(array("%s",sanitize($iname)));
$skipinndesc = handle_event("inn");
if (!$skipinndesc) {
checkday();
rawoutput("<span style='color: #9900FF'>");
output_notl("`c`b");
output($iname);
output_notl("`b`c");
}
$subop = httpget('subop');
$com = httpget('comscroll');
$comment = httppost('insertcommentary');
require_once("lib/partner.php");
$partner = get_partner();
addnav("Other");
villagenav();
addnav("I?Return to the Inn","inn.php");
switch ($op) {
case "": case "strolldown": case "fleedragon":
require("lib/inn/inn_default.php");
blocknav("inn.php");
break;
case "converse":
commentdisplay("You stroll over to a table, place your foot up on the bench and listen in on the conversation:`n", "inn","Add to the conversation?",20);
break;
case "bartender":
require("lib/inn/inn_bartender.php");
break;
case "room":
require("lib/inn/inn_room.php");
break;
}
if (!$skipinndesc) rawoutput("</span>");
page_footer();
?>