Fixed bug where the front door to Lord Handlemort's mansion in Ardougne remains locked even after obtaining totem

This commit is contained in:
F V 2025-05-23 21:38:14 -06:00 committed by Ryan
parent 4fb3ae45d8
commit 5a1c7cb141

View file

@ -26,7 +26,9 @@ class TribalTotemListeners : InteractionListener {
if(player.questRepository.getStage(Quests.TRIBAL_TOTEM) >= 35){ if(player.questRepository.getStage(Quests.TRIBAL_TOTEM) >= 35){
core.game.global.action.DoorActionHandler.handleAutowalkDoor(player,door.asScenery()) core.game.global.action.DoorActionHandler.handleAutowalkDoor(player,door.asScenery())
} }
sendMessage(player,"The door is locked shut.") else {
sendMessage(player,"The door is locked shut.")
}
return@on true return@on true
} }
@ -97,6 +99,7 @@ class TribalTotemListeners : InteractionListener {
if(!player.inventory.containsAtLeastOneItem(Items.TOTEM_1857)){ if(!player.inventory.containsAtLeastOneItem(Items.TOTEM_1857)){
sendDialogue(player,"Inside the chest you find the tribal totem.") sendDialogue(player,"Inside the chest you find the tribal totem.")
addItemOrDrop(player,Items.TOTEM_1857) addItemOrDrop(player,Items.TOTEM_1857)
player.questRepository.getQuest(Quests.TRIBAL_TOTEM).setStage(player,35)
} }
else{ else{
sendDialogue(player,"Inside the chest you don't find anything because you already took the totem!") sendDialogue(player,"Inside the chest you don't find anything because you already took the totem!")