mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Some fuckball shoutouts
This commit is contained in:
parent
c13e86e11e
commit
afdfbfa80d
1 changed files with 40 additions and 0 deletions
|
|
@ -85,6 +85,41 @@ class SkullballCourse : MapArea {
|
|||
removeAttribute(player, attributeSkullballInstance)
|
||||
}
|
||||
}
|
||||
|
||||
fun nearestWerewolfSay(loc: Location, chatText: String) {
|
||||
var werewolfNpc = findLocalNPCs(loc, 40).filter { npc ->
|
||||
npc.id == NPCs.SKULLBALL_TRAINER_1662
|
||||
}.sortedWith { a, b ->
|
||||
a.location.getDistanceSquared(loc) - b.location.getDistanceSquared(loc)
|
||||
}.getOrNull(0)
|
||||
if (werewolfNpc != null) {
|
||||
// println("werewolf ${werewolfNpc.location}")
|
||||
sendChat(werewolfNpc, chatText)
|
||||
}
|
||||
}
|
||||
|
||||
fun randomWerewolfSay(): String {
|
||||
return listOf(
|
||||
"You have truly gifted paws!",
|
||||
"I've never seen anything like it!",
|
||||
"Claws first - think later.",
|
||||
"You need a few more skullball lessons.",
|
||||
"Keep it up!",
|
||||
"Don't give up the day job!",
|
||||
"Look at @g[her,him] go!",
|
||||
"Pathetic!",
|
||||
"What - a - goal !!!",
|
||||
"That was just plain lucky.",
|
||||
).random()
|
||||
}
|
||||
|
||||
fun randomZiplineWerewolfSay(): String {
|
||||
return listOf(
|
||||
"Give my regards to the ground...",
|
||||
"Don't let the spikes or the blood put you off...",
|
||||
"Now for a true test of teeth...",
|
||||
).random()
|
||||
}
|
||||
}
|
||||
|
||||
override fun defineAreaBorders(): Array<ZoneBorders> {
|
||||
|
|
@ -118,6 +153,11 @@ class SkullballCourse : MapArea {
|
|||
if (nextGoal < skullballGoals.size) {
|
||||
registerHintIcon(player, getScenery(extractLoc(skullballGoals[nextGoal]))!!)
|
||||
}
|
||||
if (nextGoal < skullballGoals.size) {
|
||||
nearestWerewolfSay(entity.location, randomWerewolfSay())
|
||||
} else {
|
||||
nearestWerewolfSay(entity.location, "@g[He,She] shoots - @g[He,She] scores!!!!!")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue