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
public void configure() {
region = DynamicRegion.create(12854);
region.setMusicId(250);
setRegionBase();
registerRegion(region.getId());
}

View file

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

View file

@ -140,9 +140,11 @@ public final class LoginConfiguration {
player.updateAppearance();
player.getPlayerFlags().setUpdateSceneGraph(true);
player.getPacketDispatch().sendInterfaceConfig(226, 1, true);
if(player.getGlobalData().getTestStage() == 3 && !player.getEmoteManager().isUnlocked(Emotes.SAFETY_FIRST)){
player.getEmoteManager().unlock(Emotes.SAFETY_FIRST);
}
for (Item item : player.getEquipment().toArray()) {
//Run equip hooks for all items equipped on login.
//We should have already been doing this.
@ -164,6 +166,7 @@ public final class LoginConfiguration {
}
}
}
SpellBookManager.SpellBook currentSpellBook = SpellBookManager.SpellBook.forInterface(player.getSpellBookManager().getSpellBook());
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."));
@ -173,6 +176,7 @@ public final class LoginConfiguration {
player.getSpellBookManager().setSpellBook(SpellBookManager.SpellBook.MODERN);
}
player.getSpellBookManager().update(player);
// 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.
setVarbit(player, 3909, 8, false);