Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cnl_core = cnl_core or {}
- cnl_core.epics = cnl_core.epics or {}
- cnl_core.epics.list = {
- VK = {
- --["fafnir"] = "fafnir",
- },
- BH = {
- ["lucifer"] = "luci",
- ["telebrion"] = "teleb",
- ["iggwilv"] = "iggwilv",
- ["uhhhl"] = "uhhhl",
- ["atlas"] = "atlas",
- ["kzartaxen"] = "kzar",
- ["helios-sun-god"] = "helios",
- ["takhisis"] = "takh",
- ["tasha"] = "tasha",
- ["baraneth"] = "bara",
- ["lupine"] = "lupine",
- ["klklklpa"] = "klklklpa",
- ["oth"] = "oth",
- ["lo-hoal-rose"] = "lo-haol",
- },
- AH = {
- ["Angzakstigilrash"] = "carp",
- ["bazg"] = "bazg",
- ["breath-death"] = "breath",
- ["contagion-epic"] = "contagion",
- ["arcane-ooze"] = "ooze",
- ["maleficent"] = "malef",
- ["omnimental"] = "omni",
- ["kezthall"] = "kezthall",
- },
- SS = {
- ["acid-golem"] = "acid",
- ["vouhx"] = "vouhx",
- ["alhoon"] = "alhoon",
- ["skerrit"] = "skerrit",
- ["snow-lion"] = "lion",
- ["pale-night-mother"] = "pale",
- ["miska"] = "miska",
- ["keadral"] = "keadral",
- ["zallah"] = "zallah",
- },
- IS = {
- ["tepeyollotl"] = "tepe",
- ["roberts"] = "roberts",
- ["roedrig"] = "roedrig",
- ["higgins"] = "higgins",
- ["hydra-valdh"] = "hydra",
- },
- LY = {
- ["xerxes"] = "xerxes",
- ["koshey"] = "koshey",
- ["ra-fire-god"] = "ra",
- },
- EU = {
- ["dispater"] = "dispater",
- ["mephistopheles"] = "mephis",
- ["moloch-devil-king"] = "moloch",
- ["baalzebul"] = "baal",
- ["mammon"] = "mammon",
- ["asmodeus"] = "asmo",
- ["cryonax"] = "cryonax",
- },
- }
- function epic()
- -- clean up any existing triggers
- if cnl_core.epics.trigId then killTrigger(cnl_core.epics.trigId) end
- -- init the things
- cnl_core.epics.counter = 0
- cnl_core.epics.hits = {}
- -- why did I want to do this again?
- local trig_prefix = "epic_"..math.random(9999)
- --
- local regex = "^You tell (.*) '"..trig_prefix .."(..)(.*)'$|^No-one by that name here..$"
- cnl_core.epics.trigId = tempRegexTrigger(regex,cnl_core.epics.gather)
- for cont,epics in pairs(cnl_core.epics.list) do
- for k,v in pairs(epics) do
- cnl_core.epics.counter = cnl_core.epics.counter + 1
- send(
- "tell "..
- k ..
- " "..
- trig_prefix ..
- cont ..
- v
- )
- end
- end
- end
- function cnl_core.epics.gather()
- cecho("<red>*\n")
- cnl_core.epics.counter = cnl_core.epics.counter - 1
- if matches[2] then
- if cnl_core.epics.hits[matches[3]] then
- cnl_core.epics.hits[matches[3]] = cnl_core.epics.hits[matches[3]] .. " | "..matches[4]
- else
- cnl_core.epics.hits[matches[3]] = "[" .. matches[3] .. "] "..matches[4]
- end
- end
- if cnl_core.epics.counter == 0 then
- cecho("<yellow>killTrigger("..cnl_core.epics.trigId..")\n")
- killTrigger(cnl_core.epics.trigId)
- local found_epics = false
- for k,v in pairs(cnl_core.epics.hits) do
- local v_col = v
- v_col = v_col:gsub("%[EU%]",r.col.red..r.col.unbold.."["..r.col.bold.."EU"..r.col.unbold.."]"..r.col.white)
- v_col = v_col:gsub("%[SS%]",r.col.yellow..r.col.unbold.."["..r.col.bold.."SS"..r.col.unbold.."]"..r.col.white)
- v_col = v_col:gsub("%[BH%]",r.col.green..r.col.unbold.."["..r.col.bold.."BH"..r.col.unbold.."]"..r.col.white)
- v_col = v_col:gsub("%[LY%]",r.col.purple..r.col.unbold.."["..r.col.bold.."LY"..r.col.unbold.."]"..r.col.white)
- v_col = v_col:gsub("%[AH%]",r.col.cyan..r.col.unbold.."["..r.col.bold.."AH"..r.col.unbold.."]"..r.col.white)
- v_col = v_col:gsub("%[IS%]",r.col.blue..r.col.unbold.."["..r.col.bold.."IS"..r.col.unbold.."]"..r.col.white)
- send("grouptell "..v_col)
- found_epics = true
- end
- if not found_epics then
- send("grouptell No epics found!")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement