1: <?php
2:
3: namespace Budabot\User\Modules;
4:
5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209:
210: class LootListsController {
211:
212: 213: 214: 215:
216: public $moduleName;
217:
218:
219: public $chatBot;
220:
221:
222: public $db;
223:
224:
225: public $text;
226:
227:
228: public $util;
229:
230:
231: public $raidController;
232:
233:
234: public $chatLeaderController;
235:
236: 237: 238:
239: public function setup() {
240: $this->db->loadSQLFile($this->moduleName, 'raid_loot');
241: }
242:
243: 244: 245: 246: 247: 248:
249: public function albCommand($message, $channel, $sender, $sendto, $args) {
250: $sendto->reply($this->getAlbatraumLoot('Albtraum', 'Crystals & Crystalised Memories'));
251: $sendto->reply($this->getAlbatraumLoot('Albtraum', 'Ancients'));
252: $sendto->reply($this->getAlbatraumLoot('Albtraum', 'Samples'));
253: $sendto->reply($this->getAlbatraumLoot('Albtraum', 'Rings and Preservation Units'));
254: $sendto->reply($this->getAlbatraumLoot('Albtraum', 'Pocket Boss Crystals'));
255: }
256:
257: public function getAlbatraumLoot($raid, $category) {
258: $blob = $this->findRaidLoot($raid, $category);
259: $blob .= "\n\nAlbtraum Loot By Dare2005 (RK2)";
260: return $this->text->makeBlob("$raid $category Loot", $blob);
261: }
262:
263: 264: 265: 266: 267: 268:
269: public function db1Command($message, $channel, $sender, $sendto, $args) {
270: $sendto->reply($this->getDustBrigadeLoot('DustBrigade', 'Armor'));
271: $sendto->reply($this->getDustBrigadeLoot('DustBrigade', '1'));
272: }
273:
274: 275: 276: 277: 278: 279:
280: public function db2Command($message, $channel, $sender, $sendto, $args) {
281: $sendto->reply($this->getDustBrigadeLoot('DustBrigade', 'Armor'));
282: $sendto->reply($this->getDustBrigadeLoot('DustBrigade', '2'));
283: }
284:
285: public function getDustBrigadeLoot($raid, $category) {
286: $blob = $this->findRaidLoot($raid, $category);
287: $blob .= "\n\nDust Brigrade Loot By Chachy (RK2)";
288: return $this->text->makeBlob("$raid $category Loot", $blob);
289: }
290:
291: 292: 293: 294:
295: public function apf7Command($message, $channel, $sender, $sendto, $args) {
296: $raid = "APF";
297: $category = "Sector 7";
298: $blob = $this->findRaidLoot($raid, $category);
299: $msg = $this->text->makeBlob("$raid $category Loot", $blob);
300: $sendto->reply($msg);
301: }
302:
303: 304: 305: 306:
307: public function apf13Command($message, $channel, $sender, $sendto, $args) {
308: if (!$this->chatLeaderController->checkLeaderAccess($sender)) {
309: $sendto->reply("You must be Raid Leader to use this command.");
310: return;
311: }
312:
313: $this->addAPFLootToList(13);
314: }
315:
316: 317: 318: 319:
320: public function apf28Command($message, $channel, $sender, $sendto, $args) {
321: if (!$this->chatLeaderController->checkLeaderAccess($sender)) {
322: $sendto->reply("You must be Raid Leader to use this command.");
323: return;
324: }
325:
326: $this->addAPFLootToList(28);
327: }
328:
329: 330: 331: 332:
333: public function apf35Command($message, $channel, $sender, $sendto, $args) {
334: if (!$this->chatLeaderController->checkLeaderAccess($sender)) {
335: $sendto->reply("You must be Raid Leader to use this command.");
336: return;
337: }
338:
339: $this->addAPFLootToList(35);
340: }
341:
342: public function addAPFLootToList($sector) {
343:
344: $this->raidController->addRaidToLootList('APF', "Sector $sector");
345: $msg = "Sector $sector loot table was added to the loot list.";
346: $this->chatBot->sendPrivate($msg);
347:
348: $msg = $this->raidController->getCurrentLootList();
349: $this->chatBot->sendPrivate($msg);
350: }
351:
352: 353: 354: 355:
356: public function apfCommand($message, $channel, $sender, $sendto, $args) {
357: $sector = $args[1];
358:
359: $itemlink["ICE"] = $this->text->makeItem(257968, 257968, 1, "Hacker ICE-Breaker Source");
360: $itemlink["BOARD"] = $this->text->makeItem(257706, 257706, 1, "Kyr'Ozch Helmet");
361: $itemlink["APE"] = $this->text->makeItem(257960, 257960, 250, "Action Probability Estimator");
362: $itemlink["DGRV"] = $this->text->makeItem(257962, 257962, 250, "Dynamic Gas Redistribution Valves");
363: $itemlink["KBAP"] = $this->text->makeItem(257529, 257529, 1, "Kyr'Ozch Battlesuit Audio Processor");
364: $itemlink["KVPU"] = $this->text->makeItem(257533, 257533, 1, "Kyr'Ozch Video Processing Unit");
365: $itemlink["KRI"] = $this->text->makeItem(257531, 257531, 1, "Kyr'Ozch Rank Identification");
366: $itemlink["ICEU"] = $this->text->makeItem(257110, 257110, 1, "Intrusion Countermeasure Electronics Upgrade");
367: $itemlink["OTAE"] = $this->text->makeItem(257112, 257112, 1, "Omni-Tek Award - Exemplar");
368: $itemlink["CMP"] = $this->text->makeItem(257113, 257113, 1, "Clan Merits - Paragon");
369: $itemlink["EMCH"] = $this->text->makeItem(257379, 257379, 200, "Extruder's Molybdenum Crash Helmet");
370: $itemlink["CKCNH"] = $this->text->makeItem(257115, 257115, 200, "Conscientious Knight Commander Nizno's Helmet");
371: $itemlink["SKCGH"] = $this->text->makeItem(257114, 257114, 200, "Sworn Knight Commander Genevra's Helmet");
372: $itemlink["BCOH"] = $this->text->makeItem(257383, 257383, 300, "Blackmane's Combined Officer's Headwear");
373: $itemlink["GCCH"] = $this->text->makeItem(257381, 257381, 300, "Gannondorf's Combined Commando's Headwear");
374: $itemlink["HCSH"] = $this->text->makeItem(257384, 257384, 300, "Haitte's Combined Sharpshooter's Headwear");
375: $itemlink["OCPH"] = $this->text->makeItem(257377, 257377, 300, "Odum's Combined Paramedic's Headwear");
376: $itemlink["SCMH"] = $this->text->makeItem(257380, 257380, 300, "Sillum's Combined Mercenary's Headwear");
377: $itemlink["YCSH"] = $this->text->makeItem(257382, 257382, 300, "Yakomo's Combined Scout's Headwear");
378: $itemlink["HLOA"] = $this->text->makeItem(257128, 257128, 300, "High Lord of Angst");
379: $itemlink["SKR2"] = $this->text->makeItem(257967, 257967, 300, "Silenced Kyr'Ozch Rifle - Type 2");
380: $itemlink["SKR3"] = $this->text->makeItem(257131, 257131, 300, "Silenced Kyr'Ozch Rifle - Type 3");
381: $itemlink["ASC"] = $this->text->makeItem(257126, 257126, 300, "Amplified Sleek Cannon");
382: $itemlink["IAPU"] = $this->text->makeItem(257959, 257959, 1, "Inertial Adjustment Processing Unit");
383: $itemlink["HVBCP"] = $this->text->makeItem(257119, 257119, 300, "Hadrulf's Viral Belt Component Platform");
384: $itemlink["NAC"] = $this->text->makeItem(257963, 257963, 250, "Notum Amplification Coil");
385: $itemlink["TAHSC"] = $this->text->makeItem(257124, 257124, 300, "Twice Augmented Hellspinner Shock Cannon");
386: $itemlink["ONC"] = $this->text->makeItem(257118, 257118, 250, "ObiTom's Nano Calculator");
387: $itemlink["AKC12"] = $this->text->makeItem(257143, 257143, 300, "Amplified Kyr'Ozch Carbine - Type 12");
388: $itemlink["AKC13"] = $this->text->makeItem(257142, 257142, 300, "Amplified Kyr'Ozch Carbine - Type 13");
389: $itemlink["AKC5"] = $this->text->makeItem(257144, 257144, 300, "Amplified Kyr'Ozch Carbine - Type 5");
390: $itemlink["ERU"] = $this->text->makeItem(257961, 257961, 250, "Energy Redistribution Unit");
391: $itemlink["BOB"] = $this->text->makeItem(257147, 257147, 300, "Blades of Boltar");
392: $itemlink["DVLPR"] = $this->text->makeItem(257116, 257116, 1, "De'Valos Lava Protection Ring");
393: $itemlink["VLRD"] = $this->text->makeItem(257964, 257964, 250, "Visible Light Remodulation Device");
394: $itemlink["DVRPR"] = $this->text->makeItem(257117, 257117, 1, "De'Valos Radiation Protection Ring");
395: $itemlink["SSSS"] = $this->text->makeItem(257141, 257141, 300, "Scoped Salabim Shotgun Supremo");
396: $itemlink["EPP"] = $this->text->makeItem(258345, 258345, 300, "Explosif's Polychromatic Pillows");
397: $itemlink["VNGW"] = $this->text->makeItem(257123, 257123, 300, "Vektor ND Grand Wyrm");
398: $list = '';
399:
400: switch($sector) {
401: case "7":
402: $raid = "APF";
403: $category = "Sector 7";
404: $list = $this->findRaidLoot($raid, $category);
405:
406: break;
407: case "13":
408:
409: $list .= $this->text->makeImage(257196) . "\n";
410: $list .= "Name: {$itemlink["ICE"]}\n";
411: $list .= "Purpose: {$itemlink["ICEU"]}\n";
412: $list .= "Note: <highlight>Drops on all Alien Playfield 5 times from the Boss.<end>\n\n";
413:
414:
415: $list .= $this->text->makeImage(218775) . "\n";
416: $list .= "Name: {$itemlink["KBAP"]}\n";
417: $list .= $this->text->makeImage(218758) . "\n";
418: $list .= "Name: {$itemlink["KVPU"]}\n";
419: $list .= $this->text->makeImage(218768) . "\n";
420: $list .= "Name: {$itemlink["KRI"]}\n";
421: $list .= "Purpose: <highlight>Kyr'Ozch Rank Identification, Kyr'Ozch Video Processing Unit and Kyr'Ozch Battlesuit Audio Processor can be traded at your faction vendor at the Alien Playfield Bar for Tokens or Credits.<end>\n";
422: $list .= "Note: <highlight>Drops on all Alien Playfield from the Boss (one from each type).<end>\n\n";
423:
424:
425: $list .= $this->text->makeImage(230855) . "\n";
426: $list .= "Name: {$itemlink["BOARD"]}\n";
427: $list .= "Purpose: - {$itemlink["OTAE"]}\n";
428: $list .= "<tab><tab> - {$itemlink["CMP"]}\n";
429: $list .= "Note: <highlight>Drops on all Alien Playfield from the Boss.<end>\n\n";
430:
431:
432: $list .= $this->text->makeImage(203502) . "\n";
433: $list .= "Name: {$itemlink["APE"]}\n";
434: $list .= "Purpose: - {$itemlink["EMCH"]}\n";
435: $list .= "<tab><tab> - {$itemlink["CKCNH"]}\n";
436: $list .= "<tab><tab> - {$itemlink["SKCGH"]}\n";
437: $list .= "<tab><tab> - {$itemlink["BCOH"]}\n";
438: $list .= "<tab><tab> - {$itemlink["GCCH"]}\n";
439: $list .= "<tab><tab> - {$itemlink["HCSH"]}\n";
440: $list .= "<tab><tab> - {$itemlink["OCPH"]}\n";
441: $list .= "<tab><tab> - {$itemlink["SCMH"]}\n";
442: $list .= "<tab><tab> - {$itemlink["YCSH"]}\n\n";
443:
444:
445: $list .= $this->text->makeImage(205508) . "\n";
446: $list .= "Name: {$itemlink["DGRV"]}\n";
447: $list .= "Purpose: - {$itemlink["HLOA"]}\n";
448: $list .= "<tab><tab> - {$itemlink["SKR2"]}\n";
449: $list .= "<tab><tab> - {$itemlink["SKR3"]}\n";
450: $list .= "<tab><tab> - {$itemlink["ASC"]}\n\n";
451: break;
452: case "28":
453:
454: $list .= $this->text->makeImage(257196) . "\n";
455: $list .= "Name: {$itemlink["ICE"]}\n";
456: $list .= "Purpose: {$itemlink["ICEU"]}\n";
457: $list .= "Note: <highlight>Drops on all Alien Playfield 5 times from the Boss.<end>\n\n";
458:
459:
460: $list .= $this->text->makeImage(218775) . "\n";
461: $list .= "Name: {$itemlink["KBAP"]}\n";
462: $list .= $this->text->makeImage(218758) . "\n";
463: $list .= "Name: {$itemlink["KVPU"]}\n";
464: $list .= $this->text->makeImage(218768) . "\n";
465: $list .= "Name: {$itemlink["KRI"]}\n";
466: $list .= "Purpose: <highlight>Kyr'Ozch Rank Identification, Kyr'Ozch Video Processing Unit and Kyr'Ozch Battlesuit Audio Processor can be traded at your faction vendor at the Alien Playfield Bar for Tokens or Credits.<end>\n";
467: $list .= "Note: <highlight>Drops on all Alien Playfields from the Boss (one from each type).<end>\n\n";
468:
469:
470: $list .= $this->text->makeImage(230855) . "\n";
471: $list .= "Name: {$itemlink["BOARD"]}\n";
472: $list .= "Purpose: - {$itemlink["OTAE"]}\n";
473: $list .= "<tab><tab> - {$itemlink["CMP"]}\n";
474: $list .= "Note: <highlight>Drops on all Alien Playfield from the Boss.<end>\n\n";
475:
476:
477: $list .= $this->text->makeImage(11618) . "\n";
478: $list .= "Name: {$itemlink["IAPU"]}\n";
479: $list .= "Purpose: - {$itemlink["HVBCP"]}\n\n";
480:
481:
482: $list .= $this->text->makeImage(257195) . "\n";
483: $list .= "Name: {$itemlink["NAC"]}\n";
484: $list .= "Purpose: - {$itemlink["TAHSC"]}\n";
485: $list .= "<tab><tab> - {$itemlink["ONC"]}\n";
486: $list .= "<tab><tab> - {$itemlink["AKC12"]}\n";
487: $list .= "<tab><tab> - {$itemlink["AKC13"]}\n";
488: $list .= "<tab><tab> - {$itemlink["AKC5"]}\n\n";
489: break;
490: case "35":
491:
492: $list .= $this->text->makeImage(257196) . "\n";
493: $list .= "Name: {$itemlink["ICE"]}\n";
494: $list .= "Purpose: {$itemlink["ICEU"]}\n";
495: $list .= "Note: <highlight>Drops on all Alien Playfield 5 times from the Boss.<end>\n\n";
496:
497:
498: $list .= $this->text->makeImage(218775) . "\n";
499: $list .= "Name: {$itemlink["KBAP"]}\n";
500: $list .= $this->text->makeImage(218758) . "\n";
501: $list .= "Name: {$itemlink["KVPU"]}\n";
502: $list .= $this->text->makeImage(218768) . "\n";
503: $list .= "Name: {$itemlink["KRI"]}\n";
504: $list .= "Purpose: <highlight>Kyr'Ozch Rank Identification, Kyr'Ozch Video Processing Unit and Kyr'Ozch Battlesuit Audio Processor can be traded at your faction vendor at the Alien Playfield Bar for Tokens or Credits.<end>\n";
505: $list .= "Note: <highlight>Drops on all Alien Playfield from the Boss (one from each type).<end>\n\n";
506:
507:
508: $list .= $this->text->makeImage(230855) . "\n";
509: $list .= "Name:{$itemlink["BOARD"]}\n";
510: $list .= "Purpose: - {$itemlink["OTAE"]}\n";
511: $list .= "<tab><tab> - {$itemlink["CMP"]}\n";
512: $list .= "Note: <highlight>Drops on all Alien Playfield from the Boss.<end>\n\n";
513:
514:
515: $list .= $this->text->makeImage(257197) . "\n";
516: $list .= "Name: {$itemlink["ERU"]}\n";
517: $list .= "Purpose: - {$itemlink["BOB"]}\n";
518: $list .= "<tab><tab> - {$itemlink["DVLPR"]}\n";
519: $list .= "<tab><tab> - {$itemlink["VNGW"]}\n\n";
520:
521:
522: $list .= $this->text->makeImage(235270) . "\n";
523: $list .= "Name: {$itemlink["VLRD"]}\n";
524: $list .= "Purpose: - {$itemlink["DVRPR"]}\n";
525: $list .= "<tab><tab> - {$itemlink["SSSS"]}\n";
526: $list .= "<tab><tab> - {$itemlink["EPP"]}\n\n";
527: break;
528: }
529:
530: $msg = $this->text->makeBlob("Loot table for sector $sector", $list);
531:
532: $sendto->reply($msg);
533: }
534:
535: 536: 537: 538: 539: 540:
541: public function beastarmorCommand($message, $channel, $sender, $sendto, $args) {
542: $sendto->reply($this->getPandemoniumLoot('Pande', 'Beast Armor'));
543: }
544:
545: 546: 547: 548: 549: 550:
551: public function beastweapsCommand($message, $channel, $sender, $sendto, $args) {
552: $sendto->reply($this->getPandemoniumLoot('Pande', 'Beast Weapons'));
553: }
554:
555: 556: 557: 558: 559: 560:
561: public function beaststarsCommand($message, $channel, $sender, $sendto, $args) {
562: $sendto->reply($this->getPandemoniumLoot('Pande', 'Stars'));
563: }
564:
565: 566: 567: 568: 569: 570:
571: public function sbCommand($message, $channel, $sender, $sendto, $args) {
572: $sendto->reply($this->getPandemoniumLoot('Pande', 'Shadowbreeds'));
573: }
574:
575: 576: 577: 578: 579: 580:
581: public function tnhCommand($message, $channel, $sender, $sendto, $args) {
582: $sendto->reply($this->getPandemoniumLoot('Pande', 'The Night Heart'));
583: }
584:
585: 586: 587: 588: 589: 590:
591: public function ariesCommand($message, $channel, $sender, $sendto, $args) {
592: $sendto->reply($this->getPandemoniumLoot('Pande', 'Aries'));
593: }
594:
595: 596: 597: 598: 599: 600:
601: public function leoCommand($message, $channel, $sender, $sendto, $args) {
602: $sendto->reply($this->getPandemoniumLoot('Pande', 'Leo'));
603: }
604:
605: 606: 607: 608: 609: 610:
611: public function virgoCommand($message, $channel, $sender, $sendto, $args) {
612: $sendto->reply($this->getPandemoniumLoot('Pande', 'Virgo'));
613: }
614:
615: 616: 617: 618: 619: 620:
621: public function aquariusCommand($message, $channel, $sender, $sendto, $args) {
622: $sendto->reply($this->getPandemoniumLoot('Pande', 'Aquarius'));
623: }
624:
625: 626: 627: 628: 629: 630:
631: public function cancerCommand($message, $channel, $sender, $sendto, $args) {
632: $sendto->reply($this->getPandemoniumLoot('Pande', 'Cancer'));
633: }
634:
635: 636: 637: 638: 639: 640:
641: public function geminiCommand($message, $channel, $sender, $sendto, $args) {
642: $sendto->reply($this->getPandemoniumLoot('Pande', 'Gemini'));
643: }
644:
645: 646: 647: 648: 649: 650:
651: public function libraCommand($message, $channel, $sender, $sendto, $args) {
652: $sendto->reply($this->getPandemoniumLoot('Pande', 'Libra'));
653: }
654:
655: 656: 657: 658: 659: 660:
661: public function piscesCommand($message, $channel, $sender, $sendto, $args) {
662: $sendto->reply($this->getPandemoniumLoot('Pande', 'Pisces'));
663: }
664:
665: 666: 667: 668: 669: 670:
671: public function taurusCommand($message, $channel, $sender, $sendto, $args) {
672: $sendto->reply($this->getPandemoniumLoot('Pande', 'Taurus'));
673: }
674:
675: 676: 677: 678: 679: 680:
681: public function capricornCommand($message, $channel, $sender, $sendto, $args) {
682: $sendto->reply($this->getPandemoniumLoot('Pande', 'Capricorn'));
683: }
684:
685: 686: 687: 688: 689: 690:
691: public function sagittariusCommand($message, $channel, $sender, $sendto, $args) {
692: $sendto->reply($this->getPandemoniumLoot('Pande', 'Sagittarius'));
693: }
694:
695: 696: 697: 698: 699: 700:
701: public function scorpioCommand($message, $channel, $sender, $sendto, $args) {
702: $sendto->reply($this->getPandemoniumLoot('Pande', 'Scorpio'));
703: }
704:
705: 706: 707: 708: 709: 710:
711: public function bastionCommand($message, $channel, $sender, $sendto, $args) {
712: $sendto->reply($this->getPandemoniumLoot('Pande', 'Bastion'));
713: }
714:
715: public function getPandemoniumLoot($raid, $category) {
716: $blob = $this->findRaidLoot($raid, $category);
717: $blob .= "\n\nPande Loot By Marinerecon (RK2)";
718: return $this->text->makeBlob("$raid $category Loot", $blob);
719: }
720:
721: 722: 723: 724: 725: 726:
727: public function pandeCommand($message, $channel, $sender, $sendto, $args) {
728: $list .= "<header2>The Beast<end>\n";
729: $list .= "<tab>".$this->text->makeChatcmd("Beast Armor\n", "/tell <myname> beastarmor");
730: $list .= "<tab>".$this->text->makeChatcmd("Beast Weapons\n", "/tell <myname> beastweaps");
731: $list .= "<tab>".$this->text->makeChatcmd("Beast Stars\n", "/tell <myname> beaststars");
732: $list .= "\n<header2>The Night Heart<end>\n";
733: $list .= "<tab>".$this->text->makeChatcmd("TNH\n", "/tell <myname> tnh");
734: $list .= "\n<header2>West Zodiacs<end>\n";
735: $list .= "<tab>".$this->text->makeChatcmd("Aries\n", "/tell <myname> aries");
736: $list .= "<tab>".$this->text->makeChatcmd("Leo\n", "/tell <myname> leo");
737: $list .= "<tab>".$this->text->makeChatcmd("Virgo\n", "/tell <myname> virgo");
738: $list .= "\n<header2>East Zodiacs<end>\n";
739: $list .= "<tab>".$this->text->makeChatcmd("Aquarius\n", "/tell <myname> aquarius");
740: $list .= "<tab>".$this->text->makeChatcmd("Cancer\n", "/tell <myname> cancer");
741: $list .= "<tab>".$this->text->makeChatcmd("Gemini\n", "/tell <myname> gemini");
742: $list .= "\n<header2>Middle Zodiacs<end>\n";
743: $list .= "<tab>".$this->text->makeChatcmd("Libra\n", "/tell <myname> libra");
744: $list .= "<tab>".$this->text->makeChatcmd("Pisces\n", "/tell <myname> pisces");
745: $list .= "<tab>".$this->text->makeChatcmd("Taurus\n", "/tell <myname> taurus");
746: $list .= "\n<header2>North Zodiacs<end>\n";
747: $list .= "<tab>".$this->text->makeChatcmd("Capricorn\n", "/tell <myname> capricorn");
748: $list .= "<tab>".$this->text->makeChatcmd("Sagittarius\n", "/tell <myname> sagittarius");
749: $list .= "<tab>".$this->text->makeChatcmd("Scorpio\n", "/tell <myname> scorpio");
750: $list .= "\n<header2>Other<end>\n";
751: $list .= "<tab>".$this->text->makeChatcmd("Shadowbreeds\n", "/tell <myname> sb");
752: $list .= "<tab>".$this->text->makeChatcmd("Bastion\n", "/tell <myname> bastion");
753:
754: $list .= "\n\nPandemonium Loot By Marinerecon (RK2)";
755:
756: $msg = $this->text->makeBlob("Pandemonium Loot", $list);
757: $sendto->reply($msg);
758: }
759:
760: 761: 762: 763: 764: 765:
766: public function xanVortexxCommand($message, $channel, $sender, $sendto, $args) {
767: $sendto->reply($this->getXanLoot('Vortexx', 'General'));
768: $sendto->reply($this->getXanLoot('Vortexx', 'Symbiants'));
769: $sendto->reply($this->getXanLoot('Vortexx', 'Spirits'));
770: }
771:
772: 773: 774: 775: 776: 777:
778: public function xanMitaarCommand($message, $channel, $sender, $sendto, $args) {
779: $sendto->reply($this->getXanLoot('Mitaar', 'General'));
780: $sendto->reply($this->getXanLoot('Mitaar', 'Symbiants'));
781: $sendto->reply($this->getXanLoot('Mitaar', 'Spirits'));
782: }
783:
784: 785: 786: 787: 788: 789:
790: public function xan12mCommand($message, $channel, $sender, $sendto, $args) {
791: $sendto->reply($this->getXanLoot('12Man', 'General'));
792: $sendto->reply($this->getXanLoot('12Man', 'Symbiants'));
793: $sendto->reply($this->getXanLoot('12Man', 'Spirits'));
794: $sendto->reply($this->getXanLoot('12Man', 'Profession Gems'));
795: }
796:
797: public function getXanLoot($raid, $category) {
798: $blob = $this->findRaidLoot($raid, $category);
799: $blob .= "\n\nXan Loot By Morgo (RK2)";
800: return $this->text->makeBlob("$raid $category Loot", $blob);
801: }
802:
803: 804: 805: 806: 807: 808:
809: public function xanCommand($message, $channel, $sender, $sendto, $args) {
810: $list = $this->text->makeChatcmd("Vortexx", "/tell <myname> vortexx") . "\n";
811: $list .= "<tab>General\n";
812: $list .= "<tab>Symbiants (Beta)\n";
813: $list .= "<tab>Spirits (Beta)\n\n";
814:
815: $list .= $this->text->makeChatcmd("Mitaar Hero", "/tell <myname> mitaar") . "\n";
816: $list .= "<tab>General\n";
817: $list .= "<tab>Symbiants (Beta)\n";
818: $list .= "<tab>Spirits (Beta)\n\n";
819:
820: $list .= $this->text->makeChatcmd("12 Man", "/tell <myname> 12m") . "\n";
821: $list .= "<tab>General\n";
822: $list .= "<tab>Symbiants (Beta)\n";
823: $list .= "<tab>Spirits (Beta)\n";
824: $list .= "<tab>Profession Gems\n";
825:
826: $list .= "\n\nXan Loot By Morgo (RK2)";
827:
828: $msg = $this->text->makeBlob("Legacy of the Xan Loot", $list);
829: $sendto->reply($msg);
830: }
831:
832: 833: 834: 835:
836: public function pohCommand($message, $channel, $sender, $sendto, $args) {
837: $blob = $this->findRaidLoot('Pyramid of Home', 'General');
838: $blob .= $this->findRaidLoot('Pyramid of Home', 'HUD/NCU');
839: $msg = $this->text->makeBlob("Pyramid of Home Loot", $blob);
840:
841: $sendto->reply($msg);
842: $sendto->reply($this->getPandemoniumLoot('Pande', 'Beast Weapons'));
843: }
844:
845: public function findRaidLoot($raid, $category) {
846: $sql =
847: "SELECT *, COALESCE(a.name, r.name) AS name
848: FROM raid_loot r LEFT JOIN aodb a ON (r.name = a.name AND r.ql >= a.lowql AND r.ql <= a.highql)
849: WHERE raid = ? AND category = ?";
850: $data = $this->db->query($sql, $raid, $category);
851:
852: if (count($data) == 0) {
853: return null;
854: }
855:
856: $blob = "\n";
857: forEach ($data as $row) {
858: $blob .= "<pagebreak>";
859: if ($row->lowid) {
860: $blob .= $this->text->makeItem($row->lowid, $row->highid, $row->ql, "<img src=rdb://{$row->icon}>");
861: }
862: $blob .= "\n<highlight>{$row->name}<end>";
863: if ($row->multiloot > 1) {
864: $blob .= " x" . $row->multiloot;
865: }
866: if (!empty($row->comment)) {
867: $blob .= " ($row->comment)";
868: }
869: $blob .= "\n";
870: $blob .= $this->text->makeChatcmd("Add to Loot List", "/tell <myname> loot add $row->id");
871: $blob .= "\n\n";
872: }
873:
874: return $blob;
875: }
876: }
877: