mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 18:35:11 -06:00
Message and todo/notes
This commit is contained in:
parent
3ef90e681f
commit
f3b07b66cb
5 changed files with 11 additions and 9 deletions
|
|
@ -7,7 +7,6 @@ import core.game.component.Component
|
|||
import core.game.global.action.ClimbActionHandler
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import core.game.interaction.InterfaceListener
|
||||
import core.game.node.entity.player.Player
|
||||
import core.game.world.map.Location
|
||||
import org.rs09.consts.Components
|
||||
|
|
@ -15,9 +14,6 @@ import org.rs09.consts.Items
|
|||
import org.rs09.consts.NPCs
|
||||
import org.rs09.consts.Scenery
|
||||
|
||||
const val BARBASSAULT_ACCEPT_ROLE_492 = 492
|
||||
const val BARBASSAULT_SELECT_ROLE_493 = 493
|
||||
|
||||
class BarbassaultListeners : InteractionListener {
|
||||
|
||||
override fun defineListeners() {
|
||||
|
|
|
|||
|
|
@ -86,6 +86,10 @@ fun Player.setBarbPoints(points: BarbAssaultPoints) {
|
|||
*/
|
||||
fun Player.addBarbPoints(additional: BarbAssaultPoints) {
|
||||
setBarbPoints(getBarbPoints() + additional)
|
||||
//todo Add warning message if points hit cap.
|
||||
//"You have maxed out your Healer Honor Points. You should spend them /n
|
||||
//commands."
|
||||
//https://youtu.be/rWRWL5PUj94?t=244
|
||||
}
|
||||
/**
|
||||
* Removes Barbarian Assault points from the player.
|
||||
|
|
|
|||
|
|
@ -35,14 +35,12 @@ import core.tools.Log
|
|||
import org.rs09.consts.Items
|
||||
import org.rs09.consts.Scenery
|
||||
|
||||
//HAMMER_2347
|
||||
//LOGS_11760 use these loggs
|
||||
|
||||
//1889 5407 - Barb assualt QUEEN area -- 7508
|
||||
//1891 5465 - barb assualt AREA under
|
||||
|
||||
//queen spawn in Location.create(1884, 5405, 0)
|
||||
val PENANCE_QUEEN_SPAWN_LOC = Location.create(1884, 5405, 0)
|
||||
|
||||
//No prayers
|
||||
//sendMessage(player,"The barbarians forbid the use of prayer in their arena as they don't ~ value such methods!")
|
||||
|
||||
//should be multicombat
|
||||
|
|
@ -102,6 +100,7 @@ class BarbassaultGameArea : InteractionListener, MapArea {
|
|||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
//Wrong food message "That's the wrong type of poisoned food to use! Penalty!"
|
||||
on(Scenery.EGG_LAUNCHER_20133, IntType.SCENERY, "Shoot") { player, node ->
|
||||
EggCannon.openTurretIface(player)
|
||||
return@on true
|
||||
|
|
@ -197,6 +196,7 @@ class BarbassaultGameArea : InteractionListener, MapArea {
|
|||
HEALING_VIAL3_10543
|
||||
HEALING_VIAL4_10542 // 4
|
||||
*/
|
||||
sendMessage(player,"You filled the vial.")
|
||||
return@on true
|
||||
}
|
||||
//CATALYTIC_RUNE_12851, ELEMENTAL_RUNE_12850
|
||||
|
|
|
|||
|
|
@ -168,6 +168,9 @@ class BarbassaultSession( val activity: BarbassaultActivity ? = null) :LogoutLi
|
|||
})
|
||||
closeInterface(player)
|
||||
openOverlay(player, 256)
|
||||
//https://youtu.be/MpYZG3qkFUA?t=387
|
||||
//todo dialogbox message not sendMessage
|
||||
//Dialogbox: " The game ended because on of your team-mates exited early.
|
||||
sendMessage(player,"The game ended early because one of your team-mates $endReason.")
|
||||
BarbTeamManager.updateTeam(player.baSession?.team!!)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package content.minigame.barbassault.arena.scenery
|
||||
|
||||
import content.minigame.barbassault.arena.BaHornSystem
|
||||
import content.minigame.barbassault.getBarbLevels
|
||||
import core.api.EquipmentSlot
|
||||
import core.api.addItem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue