PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: enema on 30 September, 2004, 19:11:00

Title: Users can kick theme selfes
Post by: enema on 30 September, 2004, 19:11:00
Hi this crap, which I made is a total buls*it, but its my first bot ever... Hope you will delete it  ;)

By using it, users can - Disconnect, kick and ban themselfes. Why did I made it? I dont know...

----  kick-your-self bot by ENEMA (fat-ass.no-ip.com:182)
--##  It is probably the most dumbest and useless bot in this whole world, but still, its my first bot ever...
----  If this bot is already made by someone else, then I apologize.
--##  I've never seen it anywhere else (thats probably because its so stupid)
---------------------------------------------------------------------------------------------------------------
--## Commands are:
---- !idiotversion  --- Version of bot
--## !vipkill       --- User Disconnect himself
---- !opkill        --- User kicks himself
--## !ownkill       --- User bans himself
----------------------------------------------------------------------------------------------------------------

Bot = "IDIOT_TESTER"   --- Change this botname to whatever you like

version = "2.a"        --- I dont know from where I got this kind of numbber, but its there :)

prefix = "!"

function DataArrival(user,data)

if strsub(data, 1, 1) == "<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
if cmd == prefix.."idiotversion" then
user:SendData(Bot,"Current version: "..version)
return 1
 
elseif cmd == prefix.."vipkill" then
user:Disconnect()
SendToAll(Bot,user.sName.." wannted to kill vip... hehe, dont make me laugh..")

 
elseif cmd == prefix.."opkill" then
user:TempBan()
SendToAll(Bot,user.sName.." wannted to kill OP... now that wasnt very nice...")


elseif cmd == prefix.."ownkill" then
user:Ban()
SendToAll(Bot,user.sName.." wannted to kill Owner... now im getting mad...")


end
end
end
Title:
Post by: nErBoS on 30 September, 2004, 20:39:55
Hi,

Please edit your post and deactive the smiles to not appear in the code.

Best regards, nErBoS
Title:
Post by: enema on 01 October, 2004, 07:36:06
done...