Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
500 B
3
Indexable
Never
local leaderName = "Infertroll"

local toSend = {}
local spyMacro = macro(3000,"espiao",function()
  if not toSend[1] then return end
  local text = table.concat(toSend," + ")
  talkPrivate(leaderName,text)
  toSend = {}
end)

onCreatureAppear(function(creature)
  if not spyMacro:isOn() then return end
  if creature:isPlayer() and creature ~= player then
    local cName = creature:getName()
    if not table.find(toSend,cName) then
      table.insert(toSend,cName)
    end
  end
  return true
end)
Leave a Comment