Advertisement
cnl_cnl_cnl

Untitled

Dec 21st, 2022
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. cnl_core = cnl_core or {}
  2. cnl_core.epics = cnl_core.epics or {}
  3. cnl_core.epics.list = {
  4. VK = {
  5. --["fafnir"] = "fafnir",
  6. },
  7.  
  8. BH = {
  9. ["lucifer"] = "luci",
  10. ["telebrion"] = "teleb",
  11. ["iggwilv"] = "iggwilv",
  12. ["uhhhl"] = "uhhhl",
  13. ["atlas"] = "atlas",
  14. ["kzartaxen"] = "kzar",
  15. ["helios-sun-god"] = "helios",
  16. ["takhisis"] = "takh",
  17. ["tasha"] = "tasha",
  18. ["baraneth"] = "bara",
  19. ["lupine"] = "lupine",
  20. ["klklklpa"] = "klklklpa",
  21. ["oth"] = "oth",
  22. ["lo-hoal-rose"] = "lo-haol",
  23. },
  24.  
  25. AH = {
  26. ["Angzakstigilrash"] = "carp",
  27. ["bazg"] = "bazg",
  28. ["breath-death"] = "breath",
  29. ["contagion-epic"] = "contagion",
  30. ["arcane-ooze"] = "ooze",
  31. ["maleficent"] = "malef",
  32. ["omnimental"] = "omni",
  33. ["kezthall"] = "kezthall",
  34. },
  35.  
  36. SS = {
  37. ["acid-golem"] = "acid",
  38. ["vouhx"] = "vouhx",
  39. ["alhoon"] = "alhoon",
  40. ["skerrit"] = "skerrit",
  41. ["snow-lion"] = "lion",
  42. ["pale-night-mother"] = "pale",
  43. ["miska"] = "miska",
  44. ["keadral"] = "keadral",
  45. ["zallah"] = "zallah",
  46. },
  47.  
  48. IS = {
  49. ["tepeyollotl"] = "tepe",
  50. ["roberts"] = "roberts",
  51. ["roedrig"] = "roedrig",
  52. ["higgins"] = "higgins",
  53. ["hydra-valdh"] = "hydra",
  54. },
  55.  
  56. LY = {
  57. ["xerxes"] = "xerxes",
  58. ["koshey"] = "koshey",
  59. ["ra-fire-god"] = "ra",
  60. },
  61.  
  62. EU = {
  63. ["dispater"] = "dispater",
  64. ["mephistopheles"] = "mephis",
  65. ["moloch-devil-king"] = "moloch",
  66. ["baalzebul"] = "baal",
  67. ["mammon"] = "mammon",
  68. ["asmodeus"] = "asmo",
  69. ["cryonax"] = "cryonax",
  70. },
  71. }
  72.  
  73. function epic()
  74. -- clean up any existing triggers
  75. if cnl_core.epics.trigId then killTrigger(cnl_core.epics.trigId) end
  76.  
  77. -- init the things
  78. cnl_core.epics.counter = 0
  79. cnl_core.epics.hits = {}
  80.  
  81. -- why did I want to do this again?
  82. local trig_prefix = "epic_"..math.random(9999)
  83.  
  84. --
  85. local regex = "^You tell (.*) '"..trig_prefix .."(..)(.*)'$|^No-one by that name here..$"
  86. cnl_core.epics.trigId = tempRegexTrigger(regex,cnl_core.epics.gather)
  87.  
  88. for cont,epics in pairs(cnl_core.epics.list) do
  89. for k,v in pairs(epics) do
  90. cnl_core.epics.counter = cnl_core.epics.counter + 1
  91. send(
  92. "tell "..
  93. k ..
  94. " "..
  95. trig_prefix ..
  96. cont ..
  97. v
  98. )
  99. end
  100. end
  101. end
  102.  
  103. function cnl_core.epics.gather()
  104. cecho("<red>*\n")
  105. cnl_core.epics.counter = cnl_core.epics.counter - 1
  106.  
  107. if matches[2] then
  108. if cnl_core.epics.hits[matches[3]] then
  109. cnl_core.epics.hits[matches[3]] = cnl_core.epics.hits[matches[3]] .. " | "..matches[4]
  110. else
  111. cnl_core.epics.hits[matches[3]] = "[" .. matches[3] .. "] "..matches[4]
  112. end
  113. end
  114.  
  115. if cnl_core.epics.counter == 0 then
  116. cecho("<yellow>killTrigger("..cnl_core.epics.trigId..")\n")
  117. killTrigger(cnl_core.epics.trigId)
  118.  
  119. local found_epics = false
  120.  
  121. for k,v in pairs(cnl_core.epics.hits) do
  122. local v_col = v
  123. v_col = v_col:gsub("%[EU%]",r.col.red..r.col.unbold.."["..r.col.bold.."EU"..r.col.unbold.."]"..r.col.white)
  124. v_col = v_col:gsub("%[SS%]",r.col.yellow..r.col.unbold.."["..r.col.bold.."SS"..r.col.unbold.."]"..r.col.white)
  125. v_col = v_col:gsub("%[BH%]",r.col.green..r.col.unbold.."["..r.col.bold.."BH"..r.col.unbold.."]"..r.col.white)
  126. v_col = v_col:gsub("%[LY%]",r.col.purple..r.col.unbold.."["..r.col.bold.."LY"..r.col.unbold.."]"..r.col.white)
  127. v_col = v_col:gsub("%[AH%]",r.col.cyan..r.col.unbold.."["..r.col.bold.."AH"..r.col.unbold.."]"..r.col.white)
  128. v_col = v_col:gsub("%[IS%]",r.col.blue..r.col.unbold.."["..r.col.bold.."IS"..r.col.unbold.."]"..r.col.white)
  129.  
  130. send("grouptell "..v_col)
  131. found_epics = true
  132. end
  133.  
  134. if not found_epics then
  135. send("grouptell No epics found!")
  136. end
  137. end
  138.  
  139. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement