-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgardens.php
More file actions
executable file
·55 lines (47 loc) · 2.09 KB
/
Copy pathgardens.php
File metadata and controls
executable file
·55 lines (47 loc) · 2.09 KB
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
<?php
// addnews ready
// translator ready
// mail ready
require_once("common.php");
require_once("lib/commentary.php");
require_once("lib/villagenav.php");
require_once("lib/events.php");
require_once("lib/http.php");
Translator::tlschema("gardens");
PageParts::page_header("The Gardens");
Commentary::addcommentary();
$skipgardendesc = Events::handle_event("gardens");
$op = Http::httpget('op');
$com = Http::httpget('comscroll');
$refresh = Http::httpget("refresh");
$commenting = Http::httpget("commenting");
$comment = Http::httppost('insertcommentary');
// Don't give people a chance at a special event if they are just browsing
// the commentary (or talking) or dealing with any of the hooks in the village.
if (!$op && $com=="" && !$comment && !$refresh && !$commenting) {
if (Modules::module_events("gardens", Settings::getsetting("gardenchance", 0)) != 0) {
if (OutputClass::checknavs()) {
PageParts::page_footer();
} else {
// Reset the special for good.
$session['user']['specialinc'] = "";
$session['user']['specialmisc'] = "";
$skipgardendesc=true;
$op = "";
Http::httpset("op", "");
}
}
}
if (!$skipgardendesc) {
GameDateTime::checkday();
OutputClass::output("`b`c`2The Gardens`0`c`b");
OutputClass::output("`n`nYou walk through a gate and on to one of the many winding paths that makes its way through the well-tended gardens.");
OutputClass::output("From the flowerbeds that bloom even in darkest winter, to the hedges whose shadows promise forbidden secrets, these gardens provide a refuge for those seeking out the Green Dragon; a place where they can forget their troubles for a while and just relax.`n`n");
OutputClass::output("One of the fairies buzzing about the garden flies up to remind you that the garden is a place for roleplaying and peaceful conversation, and to confine out-of-character comments to the other areas of the game.`n`n");
}
VillageNavClass::villagenav();
Modules::modulehook("gardens", array());
Commentary::commentdisplay("", "gardens","Whisper here",30,"whispers");
Modules::module_display_events("gardens", "gardens.php");
PageParts::page_footer();
?>