Implemented Death Plateau quest

This commit is contained in:
Oven Bread
2023-06-27 12:28:04 +00:00
committed by Ryan
parent c7e8c54068
commit 2f4781e4ce
24 changed files with 1902 additions and 388 deletions
+18
View File
@@ -1363,6 +1363,17 @@ fun setInterfaceText(player: Player, string: String, iface: Int, child: Int) {
player.packetDispatch.sendString(string, iface, child)
}
/**
* Allows you to hide or show specific children in an interface
* @param player the player to send the packet to
* @param iface the ID of the interface to use
* @param child the index of the child to hide or show
* @param hide if the child should be hidden or not
*/
fun setComponentVisibility(player: Player, iface: Int, child: Int, hide: Boolean) {
player.packetDispatch.sendInterfaceConfig(iface, child, hide)
}
/**
* Closes any open (non-chat) interfaces for the player
* @param player the player to close the interface for
@@ -1579,6 +1590,13 @@ fun setQuestStage(player: Player, quest: String, stage: Int) {
player.questRepository.syncronizeTab(player)
}
/**
* Check if a quest is in progress
*/
fun isQuestInProgress(player: Player, quest: String, startStage: Int, endStage: Int): Boolean {
return player.questRepository.getStage(quest) in startStage..endStage
}
/**
* Check if a quest is complete
*/