Currently using the lucifer anti advertising script, i want to change the user alerts to set usernames instead of all ops
i.e.
SendPmToOps ("OP Chat", "Control: User "..user.sName.." with IP "..user.sIP.." told in main: "..onlymes.."")
to
SendPmTo ("OP Chat", "Control: User "..user.sName.." with IP "..user.sIP.." told in main: "..onlymes.."")
Can this be done? ?(
Cheers
Ok, thanks for you info
This is what i come up with...checked in ptokax and came up with no errors, but im kinda new to this so...
Nicks={[" R a z e "]=1}
tabAdvert = {}
function Main()
frmHub:RegBot(BotName)
SetTimer(60000)
StartTimer()
end
function OnTimer()
for key, value in tabAdvert do
if (tabAdvert[key].iClock > clock()+60) then
tabAdvert[key]=nil
end
end
end
function DataArrival(user, data)
if not user.bOperator then
if strsub(data, 1, 1) == "<" then
local _, _, msg = strfind(data, "^%b<>%s+(.*)|")
if Verify(user.sName, msg) then
catch=strsub(user.sName,1,5) --5 is counting chars of the tag below: if u change [VIP], change it!
if catch=="[VIP]" then --ControlUser status : insert users Tag u don't want to get kicked
else
tabAdvert[user.sName]=nil
SendToAll( BotName, user.sName.." get slaughtered by Lucifer for advertising!")
user:SendPM(BotName, "I slaughtered you! Don't try again to advertise!")
user:Disconnect();
user:TimeBan(15);
s,e,onlymes = strfind(data, "%b<> (.*)")
SendPmToNick(Nicks,Report, "User "..user.sName.." with IP "..user.sIP.." advertised in main chat saying: "..onlymes.."")
end
end
Oh and i aint got a clue about that
GetItemByName(who)
lol, so anymore info on that would be appreciated.
Cheers