mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed bug where the front door to Lord Handlemort's mansion in Ardougne remains locked even after obtaining totem
This commit is contained in:
parent
4fb3ae45d8
commit
5a1c7cb141
1 changed files with 4 additions and 1 deletions
|
|
@ -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!")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue