PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Roy on 19 October, 2003, 21:36:18

Title: Anti Outwar & Pornstar Guru Script
Post by: Roy on 19 October, 2003, 21:36:18
Hi is there any script out there which can stop the 14 year old punks pasting ad's in mainchat?

was thinking about a script where u could add forbidden sites like
'http://urlcut.com'
'http://www.pornstarguru.com'
'http://www.outwar.com'

i was thinking of a script that trigged on the forbiddenlist
and was replacing it with your own hubaddy or something u could choose yourself,
like when the lamer pastes it it could say, "im a total lamer!" instead of the url he tried putting hehehe, Plop made something like that but it trigs on all url's   :(

would be very nice if it was custom both on forbidden url's and on what it replaced it with.



Roy







[20:49] Wanna see me Naked? take a look at: http://urlcut.com/1bha <= Double Klik Here!

[11:13] http://www.outwar.com/page.php?x=1239727    its the best download site.... games movies programs and everything u want.... all have to get in


[01:19] <[Bostream]N.Y.P.D.> http://www.pornstarguru.com/page.php?x=421673&m=2

the lamer below have 7340 clicks??!!!

By clicking on that link, you just made balkan87's thug followers increase by 1 and become more powerful.

balkan87 now has 7340 thugs!

balkan87's thugs will be committing street crimes for money in 1 minutes.
Title:
Post by: Alexei on 19 October, 2003, 21:56:45
Hi

Just use ANY trigger bot... Modify it a lil... and it will work...
Or even better thing -- addy-changer..

Good luck
Title:
Post by: Roy on 19 October, 2003, 22:25:52
i would if i could, but i cant make scripts or modify them that much.

But i think there are more than me that wants a script like that, maybe even a scriptwriter likes the idea and make one.


Roy
Title:
Post by: pHaTTy on 19 October, 2003, 23:29:40
Ok im sick of them now here we go :)


--Anti urlcut by Phatty

Bot = "Keiko"


function DataArrival(user,data)
if strfind(data, "www.urlcut.com",1, 1) then
SendToAll("---------===============================================-----")
SendToAll(Bot,"..///DO NOT advertise urlcut links.......Goodbye :o)\\\..")
SendToAll("---------===============================================-----")
user:Ban()
end
end


-phatty
Title:
Post by: plop on 20 October, 2003, 02:25:31
why SendToAll ????
only 1 who needs 2 see it and thats the lamer posting it.

--Anti urlcut by Phatty

Bot = "Keiko"


function DataArrival(user,data)
if strfind(data, "http://urlcut.com",1, 1) then
SendToNick(user.sName, "---------===============================================-----")
SendToNick(user.sName, Bot.."..///DO NOT advertise urlcut links.......Goodbye :o)\\\..")
SendToNick(user.sName, "---------===============================================-----")
user:Ban()
end
end

with sneaky anti adver it shows reall cool.
http://www.thegoldenangel.org its the best download site.... games movies programs and everything u want.... all have to get in
<[Bostream]N.Y.P.D.> http://www.thegoldenangel.org

i'll post sneaky anti adver here on the forum soon.
cleaned up a bit 2 good, don't remember in wich folder i placed the latest version.   lol
got some bugs 2 fix, but lacking the time, need 2 add a couple things 2 a.i. bot 1st.

plop
Title:
Post by: klownietklowniet on 20 October, 2003, 02:30:22
SendToAll.... hihi... surely copy and paste mistake... ;-)

But the string can be added to any antiadvertising bot around I think...
Title:
Post by: pHaTTy on 20 October, 2003, 02:32:54
yep it can, just cudnt be bothered to look for one hehehe ;) SendToAll was a rip from my bot, so forgot to change hehehe ;)

-phatty
Title:
Post by: Roy on 20 October, 2003, 11:08:36
Thanks guys, im gonna use that one. :D
im gonna run one for each addy i guess, or is there a easy way to add addy's to it?


Roy
Title:
Post by: TiMeTrAVelleR on 20 October, 2003, 11:13:54
if strfind(data, "http://urlcut.com,http://pornstarguru.com,http://outwar.com",1, 1) then


Think this should work

TiM?
Title:
Post by: klownietklowniet on 20 October, 2003, 14:56:18
Don't think that will work, it's all treated as a string, so you are searching for the whole string in 'data' and should never get it... I would suggest elseif:

if strfind(data, "http://urlcut.com",1, 1) then
....
elseif strfind(data, "http://pornstarguru.com",1, 1) then
....
elseif strfind(data, "http://outwar.com",1, 1) then
....
end

or something like that... can enter then in an array aswell and loop through them, just like the antiadvertising scripts... :-)
Title:
Post by: TiMeTrAVelleR on 20 October, 2003, 15:36:17
Oki  just had  a  try  new  you would correckt me if i am wrong  :P

TiM?