summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-15 17:41:12 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-15 17:41:12 -0300
commit5d4e8f9f4e7fd2f564c2d58380b9f64080d75674 (patch)
tree57e27cebdc83ca3677d42a1368a9936627ffbd7b /npc/functions
parentf6c556b30a746cd4db62c3c07a75c7690522945c (diff)
downloadserverdata-5d4e8f9f4e7fd2f564c2d58380b9f64080d75674.tar.gz
serverdata-5d4e8f9f4e7fd2f564c2d58380b9f64080d75674.tar.bz2
serverdata-5d4e8f9f4e7fd2f564c2d58380b9f64080d75674.tar.xz
serverdata-5d4e8f9f4e7fd2f564c2d58380b9f64080d75674.zip
Regnum Blessing prototype (another Aurora Event)
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/aurora.txt17
-rw-r--r--npc/functions/news.txt9
2 files changed, 26 insertions, 0 deletions
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.");
/////////////////////////////////////////////////////////////////////////