cnl_cnl_cnl

Untitled

Oct 2nd, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. cnl_ping = cnl_ping or {}
  2. cnl_ping.epics = cnl_ping.epics or {}
  3. cnl_ping.epics.list = {
  4. VK = {
  5. ["2.fafnir"] = "dark 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(self)
  74. -- clean up any existing triggers
  75. if cnl_ping.epics.trigId then killTrigger(cnl_ping.epics.trigId) end
  76.  
  77. -- init the things
  78. cnl_ping.epics.counter = 0
  79. cnl_ping.epics.hits = {}
  80. cnl_ping.epics.self = self
  81.  
  82. -- why did I want to do this again?
  83. local trig_prefix = "epic_"..math.random(9999)
  84.  
  85. --
  86. local regex = "^You tell (.*) '"..trig_prefix .."(..)(.*)'$|^No-one by that name here..$"
  87. cnl_ping.epics.trigId = tempRegexTrigger(regex,cnl_ping.epics.gather)
  88.  
  89. for cont,epics in pairs(cnl_ping.epics.list) do
  90. for k,v in pairs(epics) do
  91. cnl_ping.epics.counter = cnl_ping.epics.counter + 1
  92. send(
  93. "tell "..
  94. k ..
  95. " "..
  96. trig_prefix ..
  97. cont ..
  98. v
  99. )
  100. end
  101. end
  102. end
  103.  
  104. function cnl_ping.epics.gather()
  105. cecho("<red>*\n")
  106. cnl_ping.epics.counter = cnl_ping.epics.counter - 1
  107.  
  108. if matches[2] then
  109. if cnl_ping.epics.hits[matches[3]] then
  110. cnl_ping.epics.hits[matches[3]] = cnl_ping.epics.hits[matches[3]] .. " | "..matches[4]
  111. else
  112. cnl_ping.epics.hits[matches[3]] = "[" .. matches[3] .. "] "..matches[4]
  113. end
  114. end
  115.  
  116. if cnl_ping.epics.counter == 0 then
  117. cecho("<yellow>killTrigger("..cnl_ping.epics.trigId..")\n")
  118. killTrigger(cnl_ping.epics.trigId)
  119.  
  120. local found_epics = false
  121.  
  122. for k,v in pairs(cnl_ping.epics.hits) do
  123. local v_col = v
  124. v_col = v_col:gsub("%[EU%]",r.col.mud.red..r.col.mud.unbold.."["..r.col.mud.bold.."EU"..r.col.mud.unbold.."]"..r.col.mud.white)
  125. v_col = v_col:gsub("%[SS%]",r.col.mud.yellow..r.col.mud.unbold.."["..r.col.mud.bold.."SS"..r.col.mud.unbold.."]"..r.col.mud.white)
  126. v_col = v_col:gsub("%[BH%]",r.col.mud.green..r.col.mud.unbold.."["..r.col.mud.bold.."BH"..r.col.mud.unbold.."]"..r.col.mud.white)
  127. v_col = v_col:gsub("%[LY%]",r.col.mud.purple..r.col.mud.unbold.."["..r.col.mud.bold.."LY"..r.col.mud.unbold.."]"..r.col.mud.white)
  128. v_col = v_col:gsub("%[AH%]",r.col.mud.cyan..r.col.mud.unbold.."["..r.col.mud.bold.."AH"..r.col.mud.unbold.."]"..r.col.mud.white)
  129. v_col = v_col:gsub("%[IS%]",r.col.mud.blue..r.col.mud.unbold.."["..r.col.mud.bold.."IS"..r.col.mud.unbold.."]"..r.col.mud.white)
  130. v_col = v_col:gsub("%[VK%]",r.col.mud.white..r.col.mud.unbold.."["..r.col.mud.bold.."VK"..r.col.mud.unbold.."]"..r.col.mud.white)
  131.  
  132. send("grouptell "..v_col)
  133. found_epics = true
  134. end
  135.  
  136. if not found_epics then
  137. send("grouptell No epics found!")
  138. end
  139. end
  140.  
  141. end
Advertisement
Add Comment
Please, Sign In to add comment