-
-
Save anonymous/591dcb21a2f8974ce51e39fc324e5562 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Created by: BR1337 */ | |
var status = 0 | |
var songs = [] | |
var selectedCategory = "" | |
var selectedSong = "" | |
function start() | |
{ | |
initArr(); | |
status = -1; | |
action(1, 0, 0); | |
} | |
function action(mode, type, selection) | |
{ | |
if(mode === 0) | |
{ | |
cm.dispose(); | |
return; | |
} | |
var text = "Choose your song category: \r\n"; | |
var keys = Object.keys(songs); | |
for(var i = 0; i < keys.length; i++) | |
{ | |
text += "#L" + i + "##Wicon8/0# " + keys[i] + "\r\n"; | |
} | |
if(status === -1) | |
{ | |
cm.sendSimple(text); | |
status = 1; | |
return; | |
} | |
if(status === 1) | |
{ | |
selectedCategory = keys[selection]; | |
var songsOfGivenMusicCategory = songs[selectedCategory]; | |
var textMusics = "Now choose your song. \r\n"; | |
for(var i = 0; i < songsOfGivenMusicCategory.length; i++) | |
{ | |
textMusics += "#L" + i + "##Wicon8/0# " + songsOfGivenMusicCategory[i] + "\r\n"; | |
} | |
cm.sendSimple(textMusics); | |
status = 2; | |
return; | |
} | |
if(status === 2) | |
{ | |
selectedSong = selectedCategory + "/" + songs[selectedCategory][selection]; | |
cm.sendNext("#rNow playing:\r\n#Wicon8/0# #b" + selectedCategory + " - " + songs[selectedCategory][selection]); | |
cm.getPlayer().dropMessage(-1, selectedCategory + " - " + songs[selectedCategory][selection]); | |
status = 3; | |
} | |
if(status === 3) | |
{ | |
cm.changeMusic(selectedSong, cm.getPlayer().isGM()); | |
} | |
cm.dispose(); | |
} | |
function initArr() | |
{ | |
songs["Bgm00"] = ["SleepyWood", "FloralLife", "GoPicnic", "Nightmare", "RestNPeace", "DragonDream"]; | |
songs["Bgm01"] = ["AncientMove", "MoonlightShadow", "WhereTheBarlogFrom", "CavaBien", "HighlandStar", "BadGuys"]; | |
songs["Bgm02"] = ["MissingYou", "WhenTheMorningComes", "EvilEyes", "JungleBook", "AboveTheTreetops"]; | |
songs["Bgm03"] = ["Subway", "Elfwood", "BlueSky", "Beachway", "SnowyVillage"]; | |
songs["Bgm04"] = ["PlayWithMe", "WhiteChristmas", "UponTheSky", "ArabPirate", "Shinin'Harbor", "WarmRegard"]; | |
songs["Bgm05"] = ["WolfWood", "DownToTheCave", "AbandonedMine", "MineQuest", "HellGate"]; | |
songs["Bgm06"] = ["FinalFight", "WelcomeToTheHell", "ComeWithMe", "FlyingInABlueDream", "FantasticThinking"]; | |
songs["Bgm07"] = ["WaltzForWork", "WhereverYouAre", "FunnyTimeMaker", "HighEnough", "Fantasia"]; | |
songs["Bgm08"] = ["LetsMarch", "ForTheGlory", "FindingForest", "LetsHuntAliens", "PlotOfPixie"]; | |
songs["Bgm09"] = ["DarkShadow", "TheyMenacingYou", "FairyTale", "FairyTalediffvers", "TimeAttack"]; | |
songs["Bgm10"] = ["Timeless", "TimelessB", "BizarreTales", "TheWayGrotesque", "Eregos"]; | |
songs["Bgm11"] = ["BlueWorld", "Aquarium", "ShiningSea", "DownTown", "DarkMountain"]; | |
songs["Bgm12"] = ["AquaCave", "DeepSee", "WaterWay", "AcientRemain", "RuinCastle", "Dispute"]; | |
songs["Bgm13"] = ["CokeTown", "Leafre", "Minar'sDream", "AcientForest", "TowerOfGoddess", "FightSand"]; | |
songs["Bgm14"] = ["DragonLoad", "HonTale", "CaveOfHontale", "DragonNest", "Ariant", "HotDesert", "DragonRider"]; | |
songs["Bgm15"] = ["MureungHill", "MureungForest", "WhiteHerb", "Pirate", "SunsetDesert", "Nautilus", "inNautilus", "ElinForest", "PoisonForest"]; | |
songs["Bgm16"] = ["TimeTemple", "Remembrance", "Repentance", "Forgetfulness", "Duskofgod", "FightingPinkBeen"]; | |
songs["Bgm17"] = ["MureungSchool1", "MureungSchool2", "MureungSchool3", "MureungSchool4", "secretFlower"]; | |
songs["Bgm18"] = ["QueensGarden", "DrillHall", "BlackWing", "RaindropFlower", "WolfAndSheep"]; | |
songs["Bgm19"] = ["RienVillage", "SnowDrop", "BambooGym", "CrystalCave", "MushCatle"]; | |
songs["Bgm20"] = ["NetsPiramid", "NetsPiramid2", "UnderSubway", "UnderSubway2", "GhostShip"]; | |
songs["Bgm21"] = ["KerningSquare", "KerningSquareField", "KerningSquareSubway", "TeraForest", "2021year", "2099year", "2215year", "2230year", "2503year"]; | |
songs["BgmEvent"] = ["FunnyRabbit", "FunnyRabbitFaster", "wedding", "weddingDance", "wichTower"]; | |
songs["BgmGL"] = ["amoria", "chapel", "cathedral", "Amorianchallenge", "NLCupbeat", "NLChunt", "NLCtown", "HauntedHouse", "CrimsonwoodKeep", "Bigfoot", "PhantomForest", "CrimsonwoodKeepInterior", "GrandmastersGauntlet", "PartyQuestGL", "Courtyard"]; | |
songs["BgmJp"] = ["Feeling", "BizarreForest", "Yume", "Bathroom", "BattleField", "Hana", "FirstStepMaster", "CastleOutSide", "CastleInside", "CastleBoss", "CastleTrap", "WhenTheMorningComes", "Elfwoods"]; | |
songs["BgmMY"] = ["KualaLumpur", "Highland"]; | |
songs["BgmSG"] = ["CBD_town", "CBD_field", "BoatQuay_field", "Ghostship", "BoatQuay_town", "Ulu_field"]; | |
songs["BgmTH"] = ["goldTempleTownTH", "goldTempleFieldTH", "goldTempleDungeonTH"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment