1package com.runehive.content.pet;
3import com.runehive.content.dialogue.DialogueFactory;
4import com.runehive.game.world.entity.mob.player.Player;
6import java.util.Arrays;
7import java.util.Optional;
21 factory.
sendOption(
"What's my PK'ing information?", () -> {
24 },
"Reset my KDR", () -> {
25 factory.
sendNpcChat(5567,
"That will cost you 5,000 blood money.",
"Would you like to proceed?");
28 factory.
sendNpcChat(5567,
"You don't have enough blood money!");
34 factory.
sendNpcChat(5567,
"Your KDR has been reset.");
35 },
"No, don't do it", factory::clear);
36 },
"Nevermind", factory::clear);
51 factory.
sendPlayerChat(
"Why does it take pirates so long to learn the alphabet?");
54 factory.
sendNpcChat(4052,
"LOOL I Get it! Aha! That was brilliant matey!");
63 factory.
sendPlayerChat(
"So... The Pyromancers, they're cool, right?");
64 factory.
sendNpcChat(7368,
"We share a common goal..");
66 factory.
sendNpcChat(7368,
"Keeping the cinders burning and preventing",
"the long night from swallowing us all.");
68 factory.
sendNpcChat(7368,
"As long as we remain vigilant and praise the Sun, all will be well.");
87 factory.
sendNpcChat(7519,
"Hee hee! What shall we talk about, human?");
89 factory.
sendNpcChat(7519,
"From eggs, of course!",
"You can't make an olmlet without breaking an egg.");
97 factory.
sendNpcChat(7370,
"I do not think thou understand the depths",
"of the darkness you have unleashed upon the world.",
"To dub it in such a scintillant manner is offensive to mine being.");
99 factory.
sendNpcChat(7370,
"Dark forces of which ye know nought have deemed that this is my geas.");
101 factory.
sendNpcChat(7370,
"*Sighs* Nae. But thine is well and truly cooked.");
109 factory.
sendPlayerChat(
"Shouldn't a prince only have two heads?");
111 factory.
sendPlayerChat(
"Well, a standard Black dragon has one, ",
"the King has three, so in between must have two?");
112 factory.
sendNpcChat(6636,
"You're overthinking this.");
116 KREE(
"Kree'arra", 12649, 6643) {
119 factory.
sendPlayerChat(
"Huh... that's odd... I thought that would be big news.");
120 factory.
sendNpcChat(6643,
"You thought what would be big news?");
121 factory.
sendPlayerChat(
"Well there seems to be an absence of a certain ",
"ornithological piece: a headline regarding mass",
"awareness of a certain avian variety.");
122 factory.
sendNpcChat(6643,
"What are you talking about?");
123 factory.
sendPlayerChat(
"Oh have you not heard?",
"It was my understanding that everyone had heard....");
124 factory.
sendNpcChat(6643,
"Heard wha...... OH NO!!!!?!?!!?!");
125 factory.
sendPlayerChat(
"OH WELL THE BIRD, BIRD, BIRD, BIRD",
"BIRD IS THE WORD. OH WELL THE BIRD,",
"BIRD, BIRD, BIRD BIRD IS THE WORD.");
126 factory.
sendStatement(
"There's a slight pause as Kree'Arra Jr. goes stiff.");
148 factory.
sendPlayerChat(
"You seem much nicer than your father. He's mean.");
149 factory.
sendNpcChat(6634,
"If you were stuck in a very dark cave",
"for centuries you'd be pretty annoyed too.");
151 factory.
sendNpcChat(6634,
"He's actually quite mellow really..");
160 factory.
sendPlayerChat(
"Not sure this is going to be worth my",
"time but... how are you?");
161 factory.
sendNpcChat(6644,
"SFudghoigdfpDSOPGnbSOBNfdbd",
"nopbdnopbddfnopdfpofhdARRRGGGGH");
167 PRIME(
"Daggonoth prime", 12644, 6629) {
170 factory.
sendPlayerChat(
"So despite there being three kings, you're",
"clearly the leader, right?");
173 factory.
sendNpcChat(6629,
"Ugh. Human, I'm not a pet.");
175 factory.
sendNpcChat(6629,
"I can't seem to stop.");
180 REX(
"Daggonoth rex", 12645, 6641) {
187 factory.
sendPlayerChat(
"So, if I tipped you upside down and shook you,",
"you'd not drop any berserker rings?");
189 factory.
sendPlayerChat(
"What if I endlessly killed your father for weeks on end,",
"would I get one then?");
190 factory.
sendNpcChat(6641,
"Been done by someone, nope");
198 factory.
sendNpcChat(6628,
"Tsssk. Next time you enter those caves,",
"human, my father will be having words.");
199 factory.
sendPlayerChat(
"Maybe next time I'll add your brothers to my collection.");
203 CHAOS(
"Chaos elemental", 11995, 2055) {
206 factory.
sendPlayerChat(
"Is it true a level 3 skiller caught one of your siblings?");
207 factory.
sendNpcChat(2055,
"Yes, they killed my mummy, kidnapped my brother,",
"smiled about it and went to sleep.");
208 factory.
sendPlayerChat(
"Aww, well you have me now! I shall call you",
"Squishy and you shall be mine and you shall be my Squishy");
209 factory.
sendPlayerChat(
"Come on, Squishy come on, little Squishy!");
217 factory.
sendNpcChat(6640,
"Not heard that one before.");
219 factory.
sendNpcChat(6640,
"We have another leg, just below the center of",
"our body that we use to move across solid surfaces.");
221 factory.
sendNpcChat(6640,
"Please, let me go back to my duties now...");
231 factory.
sendNpcChat(5558,
"You're really not funny...");
232 factory.
sendPlayerChat(
"One second, let me take a picture of you",
"with my.... kodiak camera.");
235 factory.
sendNpcChat(5558,
"If you don't stop, I'm going to leave",
"some... brown... at your feet, human.");
239 MOLE(
"Baby mole", 12646, 6651) {
243 factory.
sendNpcChat(6651,
"Well, the last time I was above ground,",
"I was having to contend with people throwing",
"snow at some weird yellow duck in my park.");
245 factory.
sendNpcChat(6651,
"No idea, I didn't stop to ask as an angry",
"mob was closing in on them pretty quickly.");
255 factory.
sendNpcChat(2127,
"Soon, Zulrah shall establish dominion over this plane.");
257 factory.
sendNpcChat(2127,
"Submit to the almighty Zulrah.");
259 factory.
sendNpcChat(2127,
"Zulrah's wilderness as a God will soon be demonstrated.");
268 factory.
sendNpcChat(2128,
"Soon, Zulrah shall establish dominion over this plane.");
270 factory.
sendNpcChat(2128,
"Submit to the almighty Zulrah.");
272 factory.
sendNpcChat(2128,
"Zulrah's wilderness as a God will soon be demonstrated.");
281 factory.
sendNpcChat(2129,
"Soon, Zulrah shall establish dominion over this plane.");
283 factory.
sendNpcChat(2129,
"Submit to the almighty Zulrah.");
285 factory.
sendNpcChat(2129,
"Zulrah's wilderness as a God will soon be demonstrated.");
293 factory.
sendPlayerChat(
"What is it with your kind and potato cactus?");
296 factory.
sendNpcChat(6637,
"Soup. We make a fine soup with it.");
298 factory.
sendNpcChat(6637,
"Nah, we just collect it and put it there",
"because we know fools like yourself will come",
"down looking for it then inevitably be killed by my mother.");
307 factory.
sendPlayerChat(
"Who is the true lord and king of the lands?");
308 factory.
sendNpcChat(5560,
"The mighty heir and lord of the Wilderness.");
309 factory.
sendPlayerChat(
"Where is he? Why hasn't he lifted your burden?");
310 factory.
sendNpcChat(5560,
"I have not fulfilled my purpose.");
312 factory.
sendNpcChat(5560,
"Not what is, what was. A great war tore this",
"land apart and, for my failings in protecting",
"this land, I carry the burden of its waste.");
320 factory.
sendPlayerChat(
"It's a good thing I don't have arachnophobia.");
321 factory.
sendNpcChat(5557,
"We're misunderstood. Without us in your house,",
"you'd be infested with flies and other REAL nasties.");
331 factory.
sendPlayerChat(
"Your kind comes in three different sizes?");
333 factory.
sendPlayerChat(
"Wow. Whoever created you wasn't very creative.",
"You're just resized versions of one another!");
341 factory.
sendPlayerChat(
"At night time, if I were to hold ultraviolet",
"light over you, would you glow?");
342 factory.
sendNpcChat(5547,
"Two things wrong there, human.");
344 factory.
sendNpcChat(5547,
"One, When has it ever been night time here?");
345 factory.
sendNpcChat(5547,
"Two, When have you ever seen ultraviolet light around here?");
347 factory.
sendNpcChat(5547,
"In answer to your question though.",
"Yes I, like every scorpion, would glow.");
352 CORP(
"Dark Core", 12816, 318) {
363 JAD(
"Tzrek-jad", 13225, 5892) {
367 factory.
sendNpcChat(5892,
"Mej-TzTok-Jad Kot-Kl!",
"(TzTok-Jad will protect us!)");
369 factory.
sendNpcChat(5892,
"Jal-Zek Kl? (Foreigner hurt us?)");
379 factory.
sendNpcChat(6716,
"Not quite, my body is formed mostly of minerals.");
381 factory.
sendNpcChat(6716,
"No, rocks are rocks, minerals are minerals.",
"I am formed from minerals.");
390 factory.
sendNpcChat(6715,
"Hop inside my mouth if you want to live!");
391 factory.
sendPlayerChat(
"I'm not falling for that... I'm not a fish!",
"I've got more foresight than that.");
408 factory.
sendNpcChat(7334,
"If you were so nutty about nuts, maybe you",
"would understand the great lengths we go to!");
426 factory.
sendStatement(
"You slip your hand into Rocky's pocket.");
427 factory.
sendNpcChat(7336,
"OY!! You're going to have to do",
"better than that! Sheesh, what an amateur.");
436 factory.
sendNpcChat(7337,
"No. From time to time I feel it shift and",
"change inside me though. It is an odd feeling.");
441 BEAVER(
"Beaver", 13322, 6717) {
444 factory.
sendPlayerChat(
"How much wood could a woodchuck chuck if a",
"woodchuck could chuck wood?");
445 factory.
sendNpcChat(6717,
"Approximately 32,768 depending on",
"his woodcutting level.");
485 public static Optional<PetData>
forItem(
int id) {
486 return Arrays.stream(values()).filter(a -> a.item ==
id).findAny();
490 public static Optional<PetData>
forNpc(
int id) {
491 return Arrays.stream(values()).filter(a -> a.npc ==
id).findAny();
496 return Arrays.stream(values()).filter(
pet ->
pet.ordinal() == ordinal).findFirst();
Represents a factory class that contains important functions for building dialogues.
final DialogueFactory execute()
Retrieves the next dialogue in the chain and executes it.
final DialogueFactory sendPlayerChat(String... lines)
Appends a PlayerDialogue to the current dialogue chain.
Player getPlayer()
The player that owns this factory.
final DialogueFactory sendNpcChat(int id, String... lines)
Appends an NpcDialogue to the current dialogue chain.
final DialogueFactory sendStatement(String... lines)
Appends a StatementDialogue to the current dialogue chain.
final DialogueFactory sendOption(String option1, Runnable action1, String option2, Runnable action2)
Appends the OptionDialogue onto the current dialogue chain.
This class represents a character controlled by a player.
final Inventory inventory
final Equipment equipment
final Killstreak killstreak
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean contains(int id)
Determines if this container contains id.
boolean contains(int[] bowsWithNoArrowsRequired)
final int npc
The npc identification of the fucking faggot pet.
static Optional< PetData > forOrdinal(int ordinal)
Gets the pet data based on the given ordinal.
final String name
The name of the pet.
final int item
The item identification of the pet.
static Optional< PetData > forNpc(int id)
Gets the pet data based on the given npc identification.
PetData(String name, int item, int npc)
Constructs a new PetData.
static Optional< PetData > forItem(int id)
Gets the pet data based on the given item identification.
abstract void dialogue(DialogueFactory factory)
The dialogue of the pet.
String getName()
Gets the name of the pet.
int getItem()
Gets the item identification of the pet.
int getNpc()
Gets the npc identification of the pet.