Hello,
I've had a boatwatch script when I used Ibot,
it's like
if player on screen - msg name to main char
with a safelist, so if someone comes on screen u copy/paste his name in safelist and it won't pm the mainchar.
thanks in advance
Printable View
Hello,
I've had a boatwatch script when I used Ibot,
it's like
if player on screen - msg name to main char
with a safelist, so if someone comes on screen u copy/paste his name in safelist and it won't pm the mainchar.
thanks in advance
-- Config
init start
local SAFELIST = {"Imba"}
local yourName = "Your name"
local msgDelayTime = 2000 -- time in ms between msgs
init end
-- Code
local SEEN = {}
table.lower(SAFELIST)
while (true) do
foreach creature p "psx" do
if (not table.find(SEEN, p.name:lower())) and (not table.find(SAFELIST, p.name:lower())) then
say("*"..yourName.."* "..p.name.." is on my screen")
wait(msgDelayTime)
table.insert(SEEN, p.name:lower())
end
end
wait(200, 400)
end
This will only send 1 pm for each guy, this means that if some guy will keep running, bot wont pm you. If you want me to edit it tag me @
will try it out! Thanks!
-- Config
init start
local SAFELIST = {"Imba"}
local yourName = "Your name"
local msgDelayTime = 2000 -- time in ms between msgs
init end
auto(100)
while (true) do
foreach creature p "psx" do
if (not table.find(SEEN, p.name:lower())) and (not table.find(SAFELIST, p.name:lower())) then
say("*"..yourName.."* "..p.name.." is on my screen")
wait(msgDelayTime)
end
end
wait(200, 400)
end
Try now.
@Imba remember to add auto() or it will check just once.
Jesus fucking christ, please don't fucking use while true to make it repeat every x seconds.
We have auto() for that.
Why so mean QQ
@Imba somethimes it fails to send the message, so he writes it but doesn't press 'enter' any solutions?
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
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
aaaaaa i got it now, i was watching my code, not K4r4bin's
is it possible to sent on guild chat? :)
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
possible to add guild as safelist?
bumppp