RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
PetData.java
1package com.osroyale.content.pet;
2
3import com.osroyale.content.dialogue.DialogueFactory;
4import com.osroyale.game.world.entity.mob.player.Player;
5
6import java.util.Arrays;
7import java.util.Optional;
8
35
36public enum PetData {
37 BABY_DARTH("Baby Darth", 671, 5567) {
38 @Override
39 public void dialogue(DialogueFactory factory) {
40 Player player = factory.getPlayer();
41 factory.sendPlayerChat("Wakey wakey baby!");
42 factory.sendNpcChat(5567, "I'm not a baby!");
43 factory.sendOption("What's my PK'ing information?", () -> {
44 factory.sendNpcChat(5567, "You have " + player.kill + " kills and " + player.death + " deaths.",
45 "Your current killstreak is " + player.killstreak.streak + ".");
46 }, "Reset my KDR", () -> {
47 factory.sendNpcChat(5567, "That will cost you 5,000 blood money.", "Would you like to proceed?");
48 factory.sendOption("Reset my KDR", () -> {
49 if (!player.inventory.contains(13307, 5000)) {
50 factory.sendNpcChat(5567, "You don't have enough blood money!");
51 return;
52 }
53 player.kill = 0;
54 player.death = 0;
55 player.inventory.remove(13307, 5000);
56 factory.sendNpcChat(5567, "Your KDR has been reset.");
57 }, "No, don't do it", factory::clear);
58 }, "Nevermind", factory::clear);
59 factory.execute();
60 }
61 },
62 VORKI("Vorki", 21992, 8025) {
63 @Override
64 public void dialogue(DialogueFactory factory) {
65 //TODO http://oldschoolrunescape.wikia.com/wiki/Vorki
66 factory.sendPlayerChat("We have yet to add Vorki's dialogue :(");
67 factory.execute();
68 }
69 },
70 PIRATE_PETE("Pirate Pete", 7505, 4052) {
71 @Override
72 public void dialogue(DialogueFactory factory) {
73 factory.sendPlayerChat("Why does it take pirates so long to learn the alphabet?");
74 factory.sendNpcChat(4052, "Uhm I don't know.");
75 factory.sendPlayerChat("Because they can spend years at C.");
76 factory.sendNpcChat(4052, "LOOL I Get it! Aha! That was brilliant matey!");
77
78 factory.execute();
79
80 }
81 },
82 PHOENIX("Phoenix", 20693, 7368) {
83 @Override
84 public void dialogue(DialogueFactory factory) {
85 factory.sendPlayerChat("So... The Pyromancers, they're cool, right?");
86 factory.sendNpcChat(7368, "We share a common goal..");
87 factory.sendPlayerChat("Which is?");
88 factory.sendNpcChat(7368, "Keeping the cinders burning and preventing", "the long night from swallowing us all.");
89 factory.sendPlayerChat("That sounds scary.");
90 factory.sendNpcChat(7368, "As long as we remain vigilant and praise the Sun, all will be well.");
91 factory.execute();
92 }
93 },
94 HELLPUPPY("Hellpuppy", 13247, 3099) {
95 @Override
96 public void dialogue(DialogueFactory factory) {
97 factory.sendPlayerChat("How many souls have you devoured?");
98 factory.sendNpcChat(3099, "None.");
99 factory.sendPlayerChat("Awww p-");
100 factory.sendNpcChat(3099, "Yet.");
101 factory.sendPlayerChat("Oh.");
102 factory.execute();
103 }
104 },
105
106 OLMLET("Olmlet", 20851, 7519) {
107 @Override
108 public void dialogue(DialogueFactory factory) {
109 factory.sendNpcChat(7519, "Hee hee! What shall we talk about, human?");
110 factory.sendPlayerChat("Where do creatures like you come from?");
111 factory.sendNpcChat(7519, "From eggs, of course!", "You can't make an olmlet without breaking an egg.");
112 factory.sendPlayerChat("That's... informative. Thank you.");
113 factory.execute();
114 }
115 },
116 SKOTOS("Skotos", 21273, 7671) {
117 @Override
118 public void dialogue(DialogueFactory factory) {
119 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.");
120 factory.sendPlayerChat("So why are you following me around?");
121 factory.sendNpcChat(7370, "Dark forces of which ye know nought have deemed that this is my geas.");
122 factory.sendPlayerChat("Your goose?");
123 factory.sendNpcChat(7370, "*Sighs* Nae. But thine is well and truly cooked.");
124
125 factory.execute();
126 }
127 },
128 PRINCE_BLACK_DRAGON("Prince Black Dragon", 12653, 6636) {
129 @Override
130 public void dialogue(DialogueFactory factory) {
131 factory.sendPlayerChat("Shouldn't a prince only have two heads?");
132 factory.sendNpcChat(6636, "Why is that?");
133 factory.sendPlayerChat("Well, a standard Black dragon has one, ", "the King has three, so in between must have two?");
134 factory.sendNpcChat(6636, "You're overthinking this.");
135 factory.execute();
136 }
137 },
138 KREE("Kree'arra", 12649, 6643) {
139 @Override
140 public void dialogue(DialogueFactory factory) {
141 factory.sendPlayerChat("Huh... that's odd... I thought that would be big news.");
142 factory.sendNpcChat(6643, "You thought what would be big news?");
143 factory.sendPlayerChat("Well there seems to be an absence of a certain ", "ornithological piece: a headline regarding mass", "awareness of a certain avian variety.");
144 factory.sendNpcChat(6643, "What are you talking about?");
145 factory.sendPlayerChat("Oh have you not heard?", "It was my understanding that everyone had heard....");
146 factory.sendNpcChat(6643, "Heard wha...... OH NO!!!!?!?!!?!");
147 factory.sendPlayerChat("OH WELL THE BIRD, BIRD, BIRD, BIRD", "BIRD IS THE WORD. OH WELL THE BIRD,", "BIRD, BIRD, BIRD BIRD IS THE WORD.");
148 factory.sendStatement("There's a slight pause as Kree'Arra Jr. goes stiff.");
149 factory.execute();
150 }
151 },
152 ZILYANA("Zilyana", 12651, 6633) {
153 @Override
154 public void dialogue(DialogueFactory factory) {
155 if (factory.getPlayer().equipment.contains(11806)) {
156 factory.sendPlayerChat("I FOUND THE GODSWORD!");
157 factory.sendNpcChat(6633, "GOOD!!!!!");
158 } else {
159 factory.sendPlayerChat("FIND THE GODSWORD!");
160 factory.sendNpcChat(6633, "FIND THE GODSWORD!");
161 }
162 factory.execute();
163 }
164 },
165 TSUROTH("K'ril tsutsaroth", 12652, 6634) {
166 @Override
167 public void dialogue(DialogueFactory factory) {
168 factory.sendPlayerChat("How's life in the light?");
169 factory.sendNpcChat(6634, "Burns slightly.");
170 factory.sendPlayerChat("You seem much nicer than your father. He's mean.");
171 factory.sendNpcChat(6634, "If you were stuck in a very dark cave", "for centuries you'd be pretty annoyed too.");
172 factory.sendPlayerChat("I guess.");
173 factory.sendNpcChat(6634, "He's actually quite mellow really..");
174 factory.sendPlayerChat("Uh.... Yeah.");
175 factory.execute();
176
177 }
178 },
179 GRAARDOR("General graardor", 12650, 6644) {
180 @Override
181 public void dialogue(DialogueFactory factory) {
182 factory.sendPlayerChat("Not sure this is going to be worth my", "time but... how are you?");
183 factory.sendNpcChat(6644, "SFudghoigdfpDSOPGnbSOBNfdbd", "nopbdnopbddfnopdfpofhdARRRGGGGH");
184 factory.sendPlayerChat("Nope. Not worth it.");
185 factory.execute();
186
187 }
188 },
189 PRIME("Daggonoth prime", 12644, 6629) {
190 @Override
191 public void dialogue(DialogueFactory factory) {
192 factory.sendPlayerChat("So despite there being three kings, you're", "clearly the leader, right?");
193 factory.sendNpcChat(6629, "Yes.");
194 factory.sendPlayerChat("I'm glad I got you as a pet.");
195 factory.sendNpcChat(6629, "Ugh. Human, I'm not a pet.");
196 factory.sendPlayerChat("Stop following me then.");
197 factory.sendNpcChat(6629, "I can't seem to stop.");
198 factory.sendPlayerChat("Pet.");
199 factory.execute();
200 }
201 },
202 REX("Daggonoth rex", 12645, 6641) {
203 @Override
204 public void dialogue(DialogueFactory factory) {
205 factory.sendPlayerChat("Do you have any berserker rings?");
206 factory.sendNpcChat(6641, "Nope.");
207 factory.sendPlayerChat("You sure?");
208 factory.sendNpcChat(6641, "Yes.");
209 factory.sendPlayerChat("So, if I tipped you upside down and shook you,", "you'd not drop any berserker rings?");
210 factory.sendNpcChat(6641, "Nope.");
211 factory.sendPlayerChat("What if I endlessly killed your father for weeks on end,", "would I get one then?");
212 factory.sendNpcChat(6641, "Been done by someone, nope");
213 factory.execute();
214 }
215 },
216 SUPREME("Daggonoth supreme", 12643, 6628) {
217 @Override
218 public void dialogue(DialogueFactory factory) {
219 factory.sendPlayerChat("Hey, so err... I kind of own you now.");
220 factory.sendNpcChat(6628, "Tsssk. Next time you enter those caves,", "human, my father will be having words.");
221 factory.sendPlayerChat("Maybe next time I'll add your brothers to my collection.");
222 factory.execute();
223 }
224 },
225 CHAOS("Chaos elemental", 11995, 2055) {
226 @Override
227 public void dialogue(DialogueFactory factory) {
228 factory.sendPlayerChat("Is it true a level 3 skiller caught one of your siblings?");
229 factory.sendNpcChat(2055, "Yes, they killed my mummy, kidnapped my brother,", "smiled about it and went to sleep.");
230 factory.sendPlayerChat("Aww, well you have me now! I shall call you", "Squishy and you shall be mine and you shall be my Squishy");
231 factory.sendPlayerChat("Come on, Squishy come on, little Squishy!");
232 factory.execute();
233 }
234 },
235 KRAKEN("Kraken", 12655, 6640) {
236 @Override
237 public void dialogue(DialogueFactory factory) {
238 factory.sendPlayerChat("What's Kraken?");
239 factory.sendNpcChat(6640, "Not heard that one before.");
240 factory.sendPlayerChat("How are you actually walking on land?");
241 factory.sendNpcChat(6640, "We have another leg, just below the center of", "our body that we use to move across solid surfaces.");
242 factory.sendPlayerChat("That's.... interesting.");
243 factory.sendNpcChat(6640, "Please, let me go back to my duties now...");
244 factory.execute();
245 }
246 },
247 CALLISTO("Callisto cub", 13178, 5558) {
248 @Override
249 public void dialogue(DialogueFactory factory) {
250 factory.sendPlayerChat("Why the grizzly face?");
251 factory.sendNpcChat(5558, "You're not funny...");
252 factory.sendPlayerChat("You should get in the.... sun more.");
253 factory.sendNpcChat(5558, "You're really not funny...");
254 factory.sendPlayerChat("One second, let me take a picture of you", "with my.... kodiak camera.");
255 factory.sendNpcChat(5558, " .....");
256 factory.sendPlayerChat("Feeling.... blue.");
257 factory.sendNpcChat(5558, "If you don't stop, I'm going to leave", "some... brown... at your feet, human.");
258 factory.execute();
259 }
260 },
261 MOLE("Baby mole", 12646, 6651) {
262 @Override
263 public void dialogue(DialogueFactory factory) {
264 factory.sendPlayerChat("Hey, Mole. How is life above ground?");
265 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.");
266 factory.sendPlayerChat("Why were they doing that?");
267 factory.sendNpcChat(6651, "No idea, I didn't stop to ask as an angry", "mob was closing in on them pretty quickly.");
268 factory.sendPlayerChat("Sounds awful.");
269 factory.sendNpcChat(6651, "Anyway, keep Molin'!");
270 factory.execute();
271 }
272 },
273 ZULRAH_GREEN("Snakeling", 12921, 2127) {
274 @Override
275 public void dialogue(DialogueFactory factory) {
276 factory.sendPlayerChat("Hey little snake!");
277 factory.sendNpcChat(2127, "Soon, Zulrah shall establish dominion over this plane.");
278 factory.sendPlayerChat("Wanna play fetch?");
279 factory.sendNpcChat(2127, "Submit to the almighty Zulrah.");
280 factory.sendPlayerChat("Walkies? Or slidies...?");
281 factory.sendNpcChat(2127, "Zulrah's wilderness as a God will soon be demonstrated.");
282 factory.sendPlayerChat("I give up...");
283 factory.execute();
284 }
285 },
286 ZULRAH_RED("Snakeling", 12939, 2128) {
287 @Override
288 public void dialogue(DialogueFactory factory) {
289 factory.sendPlayerChat("Hey little snake!");
290 factory.sendNpcChat(2128, "Soon, Zulrah shall establish dominion over this plane.");
291 factory.sendPlayerChat("Wanna play fetch?");
292 factory.sendNpcChat(2128, "Submit to the almighty Zulrah.");
293 factory.sendPlayerChat("Walkies? Or slidies...?");
294 factory.sendNpcChat(2128, "Zulrah's wilderness as a God will soon be demonstrated.");
295 factory.sendPlayerChat("I give up...");
296 factory.execute();
297 }
298 },
299 ZULRAH_BLUE("Snakeling", 12940, 2129) {
300 @Override
301 public void dialogue(DialogueFactory factory) {
302 factory.sendPlayerChat("Hey little snake!");
303 factory.sendNpcChat(2129, "Soon, Zulrah shall establish dominion over this plane.");
304 factory.sendPlayerChat("Wanna play fetch?");
305 factory.sendNpcChat(2129, "Submit to the almighty Zulrah.");
306 factory.sendPlayerChat("Walkies? Or slidies...?");
307 factory.sendNpcChat(2129, "Zulrah's wilderness as a God will soon be demonstrated.");
308 factory.sendPlayerChat("I give up...");
309 factory.execute();
310 }
311 },
312 KAL_PRINCESS("Kalphite Princess", 12654, 6637) {
313 @Override
314 public void dialogue(DialogueFactory factory) {
315 factory.sendPlayerChat("What is it with your kind and potato cactus?");
316 factory.sendNpcChat(6637, "Truthfully?");
317 factory.sendPlayerChat("Yeah, please.");
318 factory.sendNpcChat(6637, "Soup. We make a fine soup with it.");
319 factory.sendPlayerChat("Kalphites can cook?");
320 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.");
321 factory.sendPlayerChat("Evidently not, that's how I got you!");
322 factory.sendNpcChat(6637, "Touché");
323 factory.execute();
324 }
325 },
326 VETION("Vet'ion jr.", 13179, 5560) {
327 @Override
328 public void dialogue(DialogueFactory factory) {
329 factory.sendPlayerChat("Who is the true lord and king of the lands?");
330 factory.sendNpcChat(5560, "The mighty heir and lord of the Wilderness.");
331 factory.sendPlayerChat("Where is he? Why hasn't he lifted your burden?");
332 factory.sendNpcChat(5560, "I have not fulfilled my purpose.");
333 factory.sendPlayerChat("What is your purpose?");
334 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.");
335 factory.execute();
336
337 }
338 },
339 VENENATIS("Venenatis spiderling", 13177, 5557) {
340 @Override
341 public void dialogue(DialogueFactory factory) {
342 factory.sendPlayerChat("It's a damn good thing I don't have arachnophobia.");
343 factory.sendNpcChat(5557, "We're misunderstood. Without us in your house,", "you'd be infested with flies and other REAL nasties.");
344 factory.sendPlayerChat("Thanks for that enlightening fact.");
345 factory.sendNpcChat(5557, "Everybody gets one.");
346 factory.execute();
347
348 }
349 },
350 SMOKE_DEV("Smoke devil", 12648, 6655) {
351 @Override
352 public void dialogue(DialogueFactory factory) {
353 factory.sendPlayerChat("Your kind comes in three different sizes?");
354 factory.sendNpcChat(6655, "Four, actually.");
355 factory.sendPlayerChat("Wow. Whoever created you wasn't very creative.", "You're just resized versions of one another!");
356 factory.execute();
357
358 }
359 },
360 SCORPIA("Scorpia's offspring", 13181, 5547) {
361 @Override
362 public void dialogue(DialogueFactory factory) {
363 factory.sendPlayerChat("At night time, if I were to hold ultraviolet", "light over you, would you glow?");
364 factory.sendNpcChat(5547, "Two things wrong there, human.");
365 factory.sendPlayerChat("Oh?");
366 factory.sendNpcChat(5547, "One, When has it ever been night time here?");
367 factory.sendNpcChat(5547, "Two, When have you ever seen ultraviolet light around here?");
368 factory.sendPlayerChat("Hm...");
369 factory.sendNpcChat(5547, "In answer to your question though.", "Yes I, like every scorpion, would glow.");
370 factory.execute();
371
372 }
373 },
374 CORP("Dark Core", 12816, 318) {
375 @Override
376 public void dialogue(DialogueFactory factory) {
377 factory.sendPlayerChat("Got any sigils for me?");
378 factory.sendStatement("The Core shakes its head.");
379 factory.sendPlayerChat("Damnit Core-al!");
380 factory.sendPlayerChat("Let's bounce!");
381 factory.execute();
382
383 }
384 },
385 JAD("Tzrek-jad", 13225, 5892) {
386 @Override
387 public void dialogue(DialogueFactory factory) {
388 factory.sendPlayerChat("Do you miss your people?");
389 factory.sendNpcChat(5892, "Mej-TzTok-Jad Kot-Kl!", "(TzTok-Jad will protect us!)");
390 factory.sendPlayerChat("No.. I don't think so.");
391 factory.sendNpcChat(5892, "Jal-Zek Kl? (Foreigner hurt us?)");
392 factory.sendPlayerChat("No, no, I wouldn't hurt you.");
393 factory.execute();
394
395 }
396 },
397 ROCK_GOLEM("Rock golem", 13321, 2182) {
398 @Override
399 public void dialogue(DialogueFactory factory) {
400 factory.sendPlayerChat("So you're made entirely of rocks?");
401 factory.sendNpcChat(6716, "Not quite, my body is formed mostly of minerals.");
402 factory.sendPlayerChat("Aren't minerals just rocks?");
403 factory.sendNpcChat(6716, "No, rocks are rocks, minerals are minerals.", "I am formed from minerals.");
404 factory.sendPlayerChat("But you're a Rock Golem...");
405 factory.execute();
406
407 }
408 },
409 HERON("Heron", 13320, 6715) {
410 @Override
411 public void dialogue(DialogueFactory factory) {
412 factory.sendNpcChat(6715, "Hop inside my mouth if you want to live!");
413 factory.sendPlayerChat("I'm not falling for that... I'm not a fish!", "I've got more foresight than that.");
414 factory.execute();
415
416 }
417 },
418 BABY_CHINCHOMPA("Baby chinchompa", 13323, 6718) {
419 @Override
420 public void dialogue(DialogueFactory factory) {
421 factory.sendNpcChat(6718, "Squeak squeak!");
422 factory.execute();
423
424 }
425 },
426 GIANT_SQUIRREL("Giant squirrel", 20659, 7334) {
427 @Override
428 public void dialogue(DialogueFactory factory) {
429 factory.sendPlayerChat("So how come you are so agile?");
430 factory.sendNpcChat(7334, "If you were so nutty about nuts, maybe you", "would understand the great lengths we go to!");
431 factory.execute();
432
433 }
434 },
435 TANGLEROOT("Tangleroot", 20661, 7335) {
436 @Override
437 public void dialogue(DialogueFactory factory) {
438 factory.sendPlayerChat("How are you doing today?");
439 factory.sendNpcChat(7335, "I am Tangleroot!");
440 factory.execute();
441
442 }
443 },
444 ROCKY("Rocky", 20663, 7336) {
445 @Override
446 public void dialogue(DialogueFactory factory) {
447 factory.sendPlayerChat("*Whistles*");
448 factory.sendStatement("You slip your hand into Rocky's pocket.");
449 factory.sendNpcChat(7336, "OY!! You're going to have to do", "better than that! Sheesh, what an amateur.");
450 factory.execute();
451
452 }
453 },
454 RIFT_GUARDIAN("Rift guardian", 20665, 7337) {
455 @Override
456 public void dialogue(DialogueFactory factory) {
457 factory.sendPlayerChat("Can you see your own rift?");
458 factory.sendNpcChat(7337, "No. From time to time I feel it shift and", "change inside me though. It is an odd feeling.");
459 factory.execute();
460
461 }
462 },
463 BEAVER("Beaver", 13322, 6717) {
464 @Override
465 public void dialogue(DialogueFactory factory) {
466 factory.sendPlayerChat("How much wood could a woodchuck chuck if a", "woodchuck could chuck wood?");
467 factory.sendNpcChat(6717, "Approximately 32,768 depending on", "his woodcutting level.");
468 factory.execute();
469 }
470 };
471
473 private final String name;
474
476 private final int item;
477
479 private final int npc;
480
482 public abstract void dialogue(DialogueFactory factory);
483
485 PetData(String name, int item, int npc) {
486 this.item = item;
487 this.npc = npc;
488 this.name = name;
489 }
490
492 public String getName() {
493 return name;
494 }
495
497 public int getItem() {
498 return item;
499 }
500
502 public int getNpc() {
503 return npc;
504 }
505
507 public static Optional<PetData> forItem(int id) {
508 return Arrays.stream(values()).filter(a -> a.item == id).findAny();
509 }
510
512 public static Optional<PetData> forNpc(int id) {
513 return Arrays.stream(values()).filter(a -> a.npc == id).findAny();
514 }
515
517 public static Optional<PetData> forOrdinal(int ordinal) {
518 return Arrays.stream(values()).filter(pet -> pet.ordinal() == ordinal).findFirst();
519 }
520}
final DialogueFactory sendStatement(String... lines)
final DialogueFactory sendOption(String option1, Runnable action1, String option2, Runnable action2)
final DialogueFactory sendPlayerChat(String... lines)
final DialogueFactory sendNpcChat(int id, String... lines)
PetData(String name, int item, int npc)
Definition PetData.java:485
static Optional< PetData > forOrdinal(int ordinal)
Definition PetData.java:517
static Optional< PetData > forNpc(int id)
Definition PetData.java:512
static Optional< PetData > forItem(int id)
Definition PetData.java:507
abstract void dialogue(DialogueFactory factory)