summaryrefslogtreecommitdiff
path: root/npc/008-2-2
diff options
context:
space:
mode:
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;
+}
+
+