summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/quest_db.conf4
-rw-r--r--npc/functions/aurora.txt2
-rw-r--r--npc/functions/scoreboards.txt3
3 files changed, 9 insertions, 0 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf
index 4e0ef5b5a..5fc44d603 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -513,6 +513,10 @@ quest_db: (
Id: 400
Name: "Q_NivalisLibday"
},
+{
+ Id: 401
+ Name: "Q_AuroraEvent"
+},
// ID 1000+: Test quests
{
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index d9f396808..217dfce8e 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -23,6 +23,8 @@
// Map under Regnum's Blessing
// $@REGNUM_BLESSMAP_H$
// Human-readable form of the map under Regnum's Blessing
+// Q_AuroraEvent
+// Quest Variable: FYEVENT_CYCLE, Score, ??
// AEF: BEGIN
function script FYNewEvent {
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index c39c85602..119be4634 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -25,6 +25,9 @@ function script ScoreboardsReload {
.@nb = query_sql("SELECT c.name, i.count2 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Christmas+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 5", $@xmas_box_name$, $@xmas_box_value);
.@nb = query_sql("SELECT c.name, i.count3 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Christmas+" AND i.char_id=c.char_id ORDER BY i.count3 DESC LIMIT 5", $@xmas_gp_name$, $@xmas_gp_value);
}
+ if ($EVENT$ == "Expo" || $EVENT$ == "Fishing") {
+ .@nb = query_sql("SELECT c.name, i.count2 FROM `quest` AS i, `char` AS c WHERE i.quest_id="+Q_AuroraEvent+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 10", $@aurora_name$, $@aurora_value);
+ }
debugmes "Scoreboards reloaded";
return;
}