summaryrefslogtreecommitdiff
path: root/npc/008-2-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-16 20:19:43 +0000
committerJesusaves <cpntb1@ymail.com>2020-10-16 20:19:43 +0000
commit83a913ba19dbbcabf4d00b27d436fa6b56504881 (patch)
treea847e99ebbb73f0cd73f1cc0bd569044a08bab05 /npc/008-2-2
parentd4edbf92056973481c9937f20d9130e68f96e993 (diff)
downloadserverdata-83a913ba19dbbcabf4d00b27d436fa6b56504881.tar.gz
serverdata-83a913ba19dbbcabf4d00b27d436fa6b56504881.tar.bz2
serverdata-83a913ba19dbbcabf4d00b27d436fa6b56504881.tar.xz
serverdata-83a913ba19dbbcabf4d00b27d436fa6b56504881.zip
Jukebox
This allows players to use @jukebox like @music anywhere And it also adds a classy Jukebox in Hurnscald PUB. First experiment with public functions, don't blame me if it breaks :p Low priority, adding to MR list in order to met deadlines.
Diffstat (limited to 'npc/008-2-2')
-rw-r--r--npc/008-2-2/_import.txt1
-rw-r--r--npc/008-2-2/jukebox.txt29
2 files changed, 30 insertions, 0 deletions
diff --git a/npc/008-2-2/_import.txt b/npc/008-2-2/_import.txt
index 34d628f7..92597add 100644
--- a/npc/008-2-2/_import.txt
+++ b/npc/008-2-2/_import.txt
@@ -2,6 +2,7 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/008-2-2/_warps.txt",
"npc/008-2-2/barron.txt",
+"npc/008-2-2/jukebox.txt",
"npc/008-2-2/kfahr.txt",
"npc/008-2-2/ledmitz.txt",
"npc/008-2-2/mapflags.txt",
diff --git a/npc/008-2-2/jukebox.txt b/npc/008-2-2/jukebox.txt
new file mode 100644
index 00000000..6e592c8f
--- /dev/null
+++ b/npc/008-2-2/jukebox.txt
@@ -0,0 +1,29 @@
+// The Mana World Script
+// Author:
+// Jesusalva
+// Hocus Pocus Fidibus
+// Description:
+// Music box for a classy AFKing experience
+// GMs can play on whole map but default to player only
+
+008-2-2,39,27,0 script #JukeboxHurns NPC_JUKEBOX,{
+ mesc l("Select a music");
+ .@track="jukebox"::HurnscaldPrompt();
+ .@global=ASK_NO;
+ if (is_evtc()) {
+ mes "Play music globally?";
+ mes "* Selecting \"No\" will play only to yourself (default behavior)";
+ .@global=askyesno();
+ }
+ if (.@global == ASK_YES)
+ "jukebox"::BroadcastMusic(getmap(), .@track);
+ else
+ "jukebox"::JukeboxMusic(.@track);
+ close;
+
+OnInit:
+ .distance = 3;
+ end;
+}
+
+