public override void Load() { slayerMusic = GetSoundSlot(SoundType.Music, "Sounds/Music/UpperDepths"); elvargMusic = GetSoundSlot(SoundType.Music, "Sounds/Music/Attack2"); chaoseleMusic = GetSoundSlot(SoundType.Music, "Sounds/Music/EverlastingFire"); barrowsMusic = GetSoundSlot(SoundType.Music, "Sounds/Music/DangerousWay"); olmMusic = GetSoundSlot(SoundType.Music, "Sounds/Music/MonkeyBadness"); /*slayerMusic = MusicID.Boss1; * elvargMusic = MusicID.Boss1; * chaoseleMusic = MusicID.Boss2; * barrowsMusic = MusicID.Boss3; * olmMusic = MusicID.LunarBoss;*/ AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MainTheme"), ItemType("MainThemeBoxItem"), TileType("MainThemeBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MonkeyBadness"), ItemType("OlmMusicBoxItem"), TileType("OlmMusicBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Attack2"), ItemType("ElvargMusicBoxItem"), TileType("ElvargMusicBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/EverlastingFire"), ItemType("ChaosMusicBoxItem"), TileType("ChaosMusicBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/DangerousWay"), ItemType("BarrowsMusicBoxItem"), TileType("BarrowsMusicBox")); SlayerTokenCurrencyInt = CustomCurrencyManager.RegisterCurrency(new SlayerTokenCurrency(ModContent.ItemType <Items.SlayerToken>(), 999L)); if (!Main.dedServ) { clueInterface = new UserInterface(); clueUI = new ClueUI(); ClueUI.visible = false; clueInterface.SetState(clueUI); clueRewardInterface = new UserInterface(); clueRewardUI = new ClueRewardUI(); ClueRewardUI.visible = false; clueRewardInterface.SetState(clueRewardUI); } }
public override void RightClick(Player player) { if (!ClueRewardUI.visible) { for (int i = 0; i < 9; i++) { ClueRewardUI.rewards[i] = 0; } Main.playerInventory = false; ClueRewardUI.texture = "OldSchoolRuneScape/Items/ClueScroll/ClueReward"; ClueRewardUI.GetRewards(4); ClueRewardUI.visible = true; } }