summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-23 19:31:01 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-23 19:31:01 -0300
commit67b2caafa7229fb1c62efd6264814d2ca524a201 (patch)
tree7815a66d5d13534b0b7b877d76e29441802aa9bb /npc/commands
parent4bbac2ac2c49684f470cbd74aadb1414b58d7c11 (diff)
downloadserverdata-67b2caafa7229fb1c62efd6264814d2ca524a201.tar.gz
serverdata-67b2caafa7229fb1c62efd6264814d2ca524a201.tar.bz2
serverdata-67b2caafa7229fb1c62efd6264814d2ca524a201.tar.xz
serverdata-67b2caafa7229fb1c62efd6264814d2ca524a201.zip
Improve @music
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/music.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/npc/commands/music.txt b/npc/commands/music.txt
index 023a2b098..a89e00b22 100644
--- a/npc/commands/music.txt
+++ b/npc/commands/music.txt
@@ -28,24 +28,26 @@ OnCall:
if (.@m$ == "Not found")
{
- .@m$ = implode(.@atcmd_parameters$[0], " ");
+ //.@m$ = implode(.@atcmd_parameters$[0], " ");
+ dispbottom "Invalid music key. Current accepted values are:";
+ dispbottom "ship, city, fun, surreal, magic, forest, mythica, acid, misuse, prelude, sunrise, peace";
+ } else {
+ changemusic .@map$, .@m$;
}
-
- changemusic .@map$, .@m$;
end;
OnInit:
bindatcmd "music", "@music::OnCall", 80, 80, 1;
.hash = htnew; // create hashtable
- htput(.hash, "forest", "bartk - in the forest of the birches.ogg");
- htput(.hash, "adventure", "bartk - the adventure begins.ogg");
+ htput(.hash, "ship", "bartk - in the forest of the birches.ogg");
+ htput(.hash, "city", "bartk - the adventure begins.ogg");
htput(.hash, "fun", "eric matyas - ghoulish fun.ogg");
htput(.hash, "surreal", "eric matyas - surreal place.ogg");
htput(.hash, "magic", "magick - real.ogg");
- htput(.hash, "forest2", "dariunas - the forest.ogg");
+ htput(.hash, "forest", "dariunas - the forest.ogg");
htput(.hash, "mythica", "mythica.ogg");
- htput(.hash, "3b5", "3b5.ogg");
+ htput(.hash, "acid", "3b5.ogg");
htput(.hash, "misuse", "misuse.ogg");
htput(.hash, "prelude", "water_prelude.ogg");
htput(.hash, "sunrise", "tws_birds_in_the_sunrise.ogg");