diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-16 22:06:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-16 22:06:18 -0300 |
commit | f901c5df63409aded3e92e7002e9bb3acb66875e (patch) | |
tree | 922cb939ec0d1761e017dc3bbe264d6c603b832c | |
parent | fd73c82c7f4412ee8c4870ff9db826564b6b9575 (diff) | |
download | serverdata-f901c5df63409aded3e92e7002e9bb3acb66875e.tar.gz serverdata-f901c5df63409aded3e92e7002e9bb3acb66875e.tar.bz2 serverdata-f901c5df63409aded3e92e7002e9bb3acb66875e.tar.xz serverdata-f901c5df63409aded3e92e7002e9bb3acb66875e.zip |
Small, simple loop for Fishing
-rw-r--r-- | db/re/item_db.conf | 16 | ||||
-rw-r--r-- | npc/commands/event.txt | 1 | ||||
-rw-r--r-- | npc/functions/aurora.txt | 10 | ||||
-rw-r--r-- | npc/functions/fishing.txt | 7 | ||||
-rw-r--r-- | npc/functions/news.txt | 12 |
5 files changed, 43 insertions, 3 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 7899b5105..5fb3ed2a5 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -5386,6 +5386,22 @@ item_db: ( noauction: true } }, +{ + Id: 920 + AegisName: "EventFish" + Name: "Gold Fish" + Type: "IT_ETC" + Buy: 0 + Sell: 0 + Weight: 0 + Trade: { + notrade: true + nodrop: true + noselltonpc: true + nomail: true + noauction: true + } +}, // <!-- Necklaces --> diff --git a/npc/commands/event.txt b/npc/commands/event.txt index c21832b76..0d9d161bf 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -88,6 +88,7 @@ function script sClear { DelItemFromEveryPlayer(EventTreasure1); DelItemFromEveryPlayer(EventTreasure2); DelItemFromEveryPlayer(EventTreasure3); + DelItemFromEveryPlayer(EventFish); // We must remove any event drop charcommand("@reloadmobdb"); 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."); ///////////////////////////////////////////////////////////////////////// |