init start
local SafeList = {"Bubble", "Eternal Oblivion"}
local Leader = "Leader Name"
-- DO NOT EDIT BELOW --
local Seen, RefreshRate = {}, 120000 + $timems
table.lower(SafeList)
init end
auto(200)
foreach creature cre "psx" do
if not table.find(SafeList, cre.name:lower()) and not Seen[cre.name] then
if ischannel(Leader) then
say(Leader, string.format("%s is on my screen", cre.name))
else
say(string.format("* %s * %s is on my screen", Leader, cre.name))
end
Seen[cre.name] = true
end
end
if $timems >= RefreshRate then
RefreshRate, Seen = $timems + 120000, {}
end
02-25-2014, 11:59 AM
K4r4biN
Quote:
Originally Posted by Colandus
SEEN is nil... You have to remove it from the if-statement as well.
Well, I didn't check it, I just deleted 1 thing and changed while to auto :P
-- Config
init start
local SAFELIST = {"Imba"}
local yourName = "Your name"
local msgDelayTime = 2000 -- time in ms between msgs
init end
auto(200, 500)
foreach creature p "psx" do
if not table.find(SAFELIST, p.name:lower()) then
say("*"..yourName.."* "..p.name.." is on my screen")
wait(msgDelayTime)
end
end
02-25-2014, 12:09 PM
Imba
Leonardo's code looks perfect as always :p
Quote:
Originally Posted by Colandus
SEEN is nil... You have to remove it from the if-statement as well.
I didnt get it, it should be empty
02-25-2014, 12:50 PM
Colandus
Quote:
Originally Posted by Imba
Leonardo's code looks perfect as always :p
I didnt get it, it should be empty
It would be empty if he didnt remove SEEN = {}
02-25-2014, 01:22 PM
Imba
aaaaaa i got it now, i was watching my code, not K4r4bin's
07-16-2015, 01:49 PM
Maslo
is it possible to sent on guild chat? :)
07-16-2015, 02:21 PM
Maslo
if someone need for guild chat
-- Config init start local SAFELIST = {"Maslo Rozpruwaczek"} local guildChat = "xxxx" local msgDelayTime = 2000 -- time in ms between msgs init end
auto(200, 500) foreach creature p "psx" do if not table.find(SAFELIST, p.name:lower()) then say(guildChat, p.name.." na screenie skurwysyn corymy") wait(msgDelayTime) end end