summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/event.txt9
-rw-r--r--npc/functions/aurora.txt17
-rw-r--r--npc/functions/news.txt9
3 files changed, 35 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index e65112e79..c7564d499 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -60,6 +60,15 @@ function script sClear {
kamibroadcast("EXP Rate changed from %d%% to %d%%", $BCONFB_EXPR+50, $BCONFB_EXPR);
}
+ // Nullify Regnum Blessing
+ if ($EVENT$ == "Regnum") {
+ // Remove the blessing
+ setmapflag($@REGNUM_BLESSMAP$, mf_bexp, 100);
+ $@REGNUM_BLESSMAP_H$="";
+ $@REGNUM_BLESSMAP$="";
+ kamibroadcast("Regnum's Blessing is over.");
+ }
+
// Simpler events
$PATRICK_DAYCTRL=0;
$PATRICK_DAYMAX=0;
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index afbb6e4cc..0ebe80919 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -23,6 +23,9 @@ function script FYNewEvent {
kamibroadcast("Kamelot Season is now open!", "Aurora Events");
break;
case 2:
+ $EVENT$="Regnum";
+ callfunc("FYE_Regnum");
+ kamibroadcast("Regnum's Blessing: %s is now blessed!", $@REGNUM_BLESSMAP_H$);
break;
case 3:
break;
@@ -80,3 +83,17 @@ function script FYE_Kamelot {
return false;
}
+
+// Regnum Blessing
+function script FYE_Regnum {
+ setarray .@ma$, "004-1", "007-1";
+ setarray .@mb$, "Tulimshar Outskirts", "Tulimshar Mines";
+ .@m=rand2(getarraysize(.@ma$));
+ $@REGNUM_BLESSMAP$=.@ma$[.@m];
+ $@REGNUM_BLESSMAP_H$=.@mb$[.@m];
+ // Apply the blessing
+ setmapflag(.@ma$[.@m], mf_bexp, 200);
+ return;
+}
+
+
diff --git a/npc/functions/news.txt b/npc/functions/news.txt
index 8b274aaf0..51ab61488 100644
--- a/npc/functions/news.txt
+++ b/npc/functions/news.txt
@@ -463,6 +463,15 @@ function script EventHelp {
mes l("Invite your friends, and become a Moubootaur Legend!");
mesc l("Location: N/A"), 3;
/////////////////////////////////////////////////////////////////////////
+ } else if ($EVENT$ == "Regnum") {
+ mesc ".:: " + l("Regnum Blessing") + " ::.", 2;
+ mes "";
+ mes l("The regnum blessing causes all monsters in an area");
+ mes l("to give double experience!");
+ mes "";
+ mes l("Farm there and get the best experience value!");
+ mesc l("Location: %s", $@REGNUM_BLESSMAP_H$), 3;
+ /////////////////////////////////////////////////////////////////////////
} else {
mesc l("There's no help available for this event.");
/////////////////////////////////////////////////////////////////////////