From b6b44921bc445d85f7761ef742229ad6f389157f Mon Sep 17 00:00:00 2001 From: Arcidayne <9382522b@opayq.com> Date: Thu, 24 Dec 2015 13:48:06 -0800 Subject: [PATCH] Change in gathering info --- .../Epic_Not_Here_Counter.xml | 52 ++++--------------- 1 file changed, 10 insertions(+), 42 deletions(-) diff --git a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml index 71c27d2..9e310ef 100644 --- a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml +++ b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml @@ -15,7 +15,7 @@ save_state="y" date_written="2015-10-25 12:00:38" requires="4.00" - version="2.4" + version="2.5" > - - 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) - send_to="12" sequence="100" > - EnableTrigger("Start_Group",true) -Send("group") -Send("echo ") + local group_not_here = {} + for _,v in iparis(epicgroup.members) do + if v.here == 0 then + table.insert(group_not_here, v.name) + end + end + +Send("gt @Y" .. #group_not_here .. " @CPlayer(s) Missing: @W" .. table.concat(group_not_here, ", ") .. "$C") +