Epic Member checker for room and area!

Contrast_Picker
Arcidayne 9 years ago
parent 0ae3301af2
commit 98865840bb

@ -84,7 +84,21 @@ for k,v in pairs(group_table) do
end end
EnableTrigger("End_Area", false) EnableTrigger("End_Area", false)
Send("gt @W" .. #not_in_area .. " @Ymember(s) not in the area: @W" .. table.concat(not_in_area, ", ") .. "$C")</send> 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</send>
</trigger> </trigger>
<trigger <trigger
group="Epic_Not_Here" group="Epic_Not_Here"
@ -96,7 +110,8 @@ Send("gt @W" .. #not_in_area .. " @Ymember(s) not in the area: @W" .. table.conc
> >
<send>if group_table["%1"] then <send>if group_table["%1"] then
group_table["%1"] = 1 group_table["%1"] = 1
end</send> end
</send>
</trigger> </trigger>
<trigger <trigger
group="Epic_Not_Here" group="Epic_Not_Here"
@ -137,13 +152,31 @@ Send("echo ")</send>
> >
<send>group_table = {} <send>group_table = {}
for _,v in ipairs(epic_group_members) do for _,v in ipairs(epicgroup.members) do
group_table[v.name] = 0 group_table[v.name] = 0
print(v.name)
end end
EnableTrigger("PlayersNear", true) EnableTrigger("PlayersNear", true)
Send("where") Send("where")
Send("echo")</send> Send("echo")</send>
</alias> </alias>
<alias
match="^grdebug (on|off)$"
enabled="y"
group="Epic_Not_Here"
regexp="y"
send_to="12"
sequence="100"
>
<send>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
</send>
</alias>
</aliases> </aliases>
<!-- Plugin help --> <!-- Plugin help -->
@ -151,8 +184,9 @@ Send("echo")</send>
<aliases> <aliases>
<alias <alias
script="OnHelp" script="OnHelp"
match="enhhelp" match="^(?:enh|gr)help$"
enabled="y" enabled="y"
regexp="y"
> >
</alias> </alias>
</aliases> </aliases>
@ -165,11 +199,19 @@ end
function OnPluginBroadcast(msg, id, name, text) function OnPluginBroadcast(msg, id, name, text)
if (id == '3e7dedbe37e44942dd46d264') and (text == 'group') then if (id == '3e7dedbe37e44942dd46d264') and (text == 'group') then
local res, group = CallPlugin("3e7dedbe37e44942dd46d264", "gmcpval", "group.members") local res, group = CallPlugin("3e7dedbe37e44942dd46d264", "gmcpval", "group")
assert( loadstring( "epic_group_members = " .. group or "")) () if group then
assert( loadstring( "epicgroup = " .. group or "")) ()
else
epicgroup = {}
end
end end
end end
function OnPluginInstall()
SetCounterDebug = 0
end
]]> ]]>
</script> </script>

Loading…
Cancel
Save