Fixed Bork/Surok instanced area music

This commit is contained in:
Player Name 2024-05-13 15:00:37 +00:00 committed by Ryan
parent cdead88473
commit 158cf41fd3
3 changed files with 6 additions and 0 deletions

View file

@ -297,6 +297,7 @@ public class WLBelowCutscene extends CutscenePlugin {
@Override @Override
public void configure() { public void configure() {
region = DynamicRegion.create(12854); region = DynamicRegion.create(12854);
region.setMusicId(250);
setRegionBase(); setRegionBase();
registerRegion(region.getId()); registerRegion(region.getId());
} }

View file

@ -532,6 +532,7 @@ public class BorkNPC extends AbstractNPC {
public void configure() { public void configure() {
region = DynamicRegion.create(12374); region = DynamicRegion.create(12374);
region.setMulticombat(true); region.setMulticombat(true);
region.setMusicId(488);
setRegionBase(); setRegionBase();
registerRegion(region.getId()); registerRegion(region.getId());
} }

View file

@ -140,9 +140,11 @@ public final class LoginConfiguration {
player.updateAppearance(); player.updateAppearance();
player.getPlayerFlags().setUpdateSceneGraph(true); player.getPlayerFlags().setUpdateSceneGraph(true);
player.getPacketDispatch().sendInterfaceConfig(226, 1, true); player.getPacketDispatch().sendInterfaceConfig(226, 1, true);
if(player.getGlobalData().getTestStage() == 3 && !player.getEmoteManager().isUnlocked(Emotes.SAFETY_FIRST)){ if(player.getGlobalData().getTestStage() == 3 && !player.getEmoteManager().isUnlocked(Emotes.SAFETY_FIRST)){
player.getEmoteManager().unlock(Emotes.SAFETY_FIRST); player.getEmoteManager().unlock(Emotes.SAFETY_FIRST);
} }
for (Item item : player.getEquipment().toArray()) { for (Item item : player.getEquipment().toArray()) {
//Run equip hooks for all items equipped on login. //Run equip hooks for all items equipped on login.
//We should have already been doing this. //We should have already been doing this.
@ -164,6 +166,7 @@ public final class LoginConfiguration {
} }
} }
} }
SpellBookManager.SpellBook currentSpellBook = SpellBookManager.SpellBook.forInterface(player.getSpellBookManager().getSpellBook()); SpellBookManager.SpellBook currentSpellBook = SpellBookManager.SpellBook.forInterface(player.getSpellBookManager().getSpellBook());
if (currentSpellBook == SpellBookManager.SpellBook.ANCIENT && !hasRequirement(player, "Desert Treasure")) { if (currentSpellBook == SpellBookManager.SpellBook.ANCIENT && !hasRequirement(player, "Desert Treasure")) {
player.sendMessage(colorize("%RAs you can no longer use Ancient Magic, you have been set back to Modern.")); player.sendMessage(colorize("%RAs you can no longer use Ancient Magic, you have been set back to Modern."));
@ -173,6 +176,7 @@ public final class LoginConfiguration {
player.getSpellBookManager().setSpellBook(SpellBookManager.SpellBook.MODERN); player.getSpellBookManager().setSpellBook(SpellBookManager.SpellBook.MODERN);
} }
player.getSpellBookManager().update(player); player.getSpellBookManager().update(player);
// 1050 is checked client-side for making piety/chivalry disallowed sfx, likely due to the minigame requirement. // 1050 is checked client-side for making piety/chivalry disallowed sfx, likely due to the minigame requirement.
// Set it here unconditionally until the minigame is implemented. // Set it here unconditionally until the minigame is implemented.
setVarbit(player, 3909, 8, false); setVarbit(player, 3909, 8, false);