summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/aurora.txt10
-rw-r--r--npc/functions/fishing.txt7
-rw-r--r--npc/functions/news.txt12
3 files changed, 26 insertions, 3 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index 962e9409e..d9f396808 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -150,9 +150,17 @@ function script FYE_Expo {
}
+// Modify Fishing
+function script FYE_Fishing {
+ // TODO: Merit-based random formula
+ getitem EventFish, 1;
+ return;
+}
+
+
// Stops any Aurora Event
function script FYStopEvent {
- setarray .@av$, "Kamelot", "Regnum";
+ setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing";
if (array_find(.@av$, $EVENT$) >= 0) {
sClear();
$EVENT$="";
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 92a0161c8..647ff19d5 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -236,13 +236,16 @@ function script fishing {
if (MPQUEST)
Mobpt+=.@bai*limit(1, BaseLevel/10, 10);
- if(!checkweight(.@fish_id, 1))
- {
+ if(!checkweight(.@fish_id, 1)) {
dispbottom l("You caught a @@ but had no room in your inventory to carry it.", getitemlink(.@fish_id));
makeitem .@fish_id, 1, .@mapbis$, .@xbis, .@ybis; // drop on the ground
return 0;
}
getitem .@fish_id, 1;
+
+ // Catch the Golden Fish Event
+ if ($EVENT$ == "Fishing")
+ FYE_Fishing();
}
}
else
diff --git a/npc/functions/news.txt b/npc/functions/news.txt
index 786183189..6593e9fd0 100644
--- a/npc/functions/news.txt
+++ b/npc/functions/news.txt
@@ -484,6 +484,18 @@ function script EventHelp {
mes l("This exposition has to be a success!");
mesc l("Location: Treasure Chests, hidden inside dungeons."), 3;
/////////////////////////////////////////////////////////////////////////
+ } else if ($EVENT$ == "Fishing") {
+ mesc ".:: " + l("Catch the Golden Fish!") + " ::.", 2;
+ mes "";
+ mes l("yadda yadda yadda");
+ mes l("While fishing you may randomly get a golden fish");
+ mes "";
+ mes l("yadda yadda yadda");
+ mes l("Return them at the event NPC in Tulimshar");
+ mes "";
+ mes l("Catch the golden fish swarm!");
+ mesc l("Location: Fishing spots in the water."), 3;
+ /////////////////////////////////////////////////////////////////////////
} else {
mesc l("There's no help available for this event.");
/////////////////////////////////////////////////////////////////////////