Lock legends cape behind 40 QP
This commit is contained in:
@@ -889,6 +889,18 @@ object ContentAPI {
|
||||
player.packetDispatch.sendPlayerOnInterface(iface,child)
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a dialogue that uses the player's chathead.
|
||||
* @param player the player to send the dialogue to
|
||||
* @param npc the ID of the NPC to use for the chathead
|
||||
* @param msg the message to send.
|
||||
* @param expr the FacialExpression to use. An enum exists for these called FacialExpression. Defaults to FacialExpression.FRIENDLY
|
||||
*/
|
||||
@JvmStatic
|
||||
fun sendNPCDialogue(player: Player, npc: Int, msg: String, expr: FacialExpression = FacialExpression.FRIENDLY){
|
||||
player.dialogueInterpreter.sendDialogues(npc, expr, *DialUtils.splitLines(msg))
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends an animation to a specific interface child
|
||||
* @param player the player to send the packet to
|
||||
@@ -972,4 +984,14 @@ object ContentAPI {
|
||||
fun submitIndividualPulse(entity: Entity, pulse: Pulse){
|
||||
entity.pulseManager.run(pulse)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the number of QP a player has
|
||||
* @param player the player to get the QP for
|
||||
* @return the number of QP the player has
|
||||
*/
|
||||
@JvmStatic
|
||||
fun getQP(player: Player): Int{
|
||||
return player.questRepository.points
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user