epic_group_not_in_room = {}
EnableTrigger("In_Room",true)
EnableTrigger("End_Group",true)
EnableTrigger("Start_Group",false)
table.insert(epic_group_not_in_room,"%1")
EnableTrigger("In_Room",false)
Send("gt @Y" .. #epic_group_not_in_room .. " @CPlayer(s) Missing: @W" .. table.concat(epic_group_not_in_room, ", ") .. "$C")
EnableTrigger("End_Group",false)
local not_in_area = {}
EnableTrigger("Get_Names", false)
for k,v in pairs(group_table) do
if v == 0 then
table.insert(not_in_area, k)
end
end
EnableTrigger("End_Area", false)
if SetCounterDebug == 0 then
Send("gt @W" .. #not_in_area .. " @Ymember(s) not in the area: @W" .. table.concat(not_in_area, ", ") .. "$C")
else
ColourNote("white", "darkcyan", "Epic Not Here debugging information!")
print("Epic Group")
for _,v in ipairs(epicgroup.members) do
print(v.name)
end
print("Group Table")
for k,v in pairs(group_table) do
print(k, v)
end
print("Not in Area")
print(table.concat(not_in_area, ", "))
end
if group_table["%1"] then
group_table["%1"] = 1
end
EnableTrigger("Get_Names", true)
EnableTrigger("PlayersNear", false)
EnableTrigger("End_Area", true)
EnableTrigger("Start_Group",true)
Send("group")
Send("echo ")
if not IsPluginInstalled("dff6da0f0c8bd7605fe6a5f4") then
get_updater()
else
local pid = GetPluginID()
local pfile = GetPluginInfo(pid, 6)
local pversion = GetPluginInfo(pid, 19)
CallPlugin("dff6da0f0c8bd7605fe6a5f4", "update_plugin", pid, pfile, pversion, "https://raw.githubusercontent.com/Arcidayne/Aardwolf-Scripts/master/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml")
end
group_table = {}
for _,v in ipairs(epicgroup.members) do
group_table[v.name] = 0
print(v.name)
end
EnableTrigger("PlayersNear", true)
Send("where")
Send("echo")
if "%1" == "on" then
SetCounterDebug = 1
ColourNote("white", "darkcyan", "Epic Not Here debugging on!")
else
SetCounterDebug = 0
ColourNote("white", "darkcyan", "Epic Not Here debugging off!")
end