need help with a bot
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

need help with a bot

Started by biggam, 19 April, 2005, 18:09:49

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biggam

yo sup i wanted this bot to only work on regs so basically i want the command to only work if done on regs or vip's
sBotName = "??w-M??k??";

sFloodUser = nil;
iFloodCount = 10;

sToFloodUser = nil;

function Main()
	frmHub:RegBot(sBotName);
	SetTimer(10);
end

function OnTimer()
	for i = 2, 20, 1 do
		iFloodCount = iFloodCount + 2;
		SendToNick(sFloodUser, "$Hello Flooder"..iFloodCount..sToFloodUser..iFloodCount.." $ ")
	end

	if(GetItemByName(sFloodUser) == nil) then
		StopTimer();
		SendToAll(sBotName, sFloodUser.." was Murked "..iFloodCount.." times & then got kicked the fuck out.");
		iFloodCount = 0;
		sFloodUser,sToFloodUser = nil,nil;
	end
end

function ChatArrival(curUser, sData)
	local s, e, cmd, user = string.find(sData, "%b<> (%S+) (%S+)%|$");

	if(cmd == nil or curUser.bOperator == nil) then return 0; end

	cmd = string.lower(cmd);

	if(cmd == "!murk" and GetItemByName(user)) then
		sFloodUser = user;
		sToFloodUser = "|$To: "..sFloodUser.." From: Flooder";
		SendToAll(sBotName, "??w-M??k?? ?$ M??k?? "..user..". P???k  .");
		StartTimer();
	end
end

??????Hawk??????

hmmmm  Lame Script...



??????Hawk??????

biggam

#2
wat u mean lame script have u got a better one   btw that scipt didin't work it dnt even work at all

jiten

QuoteOriginally posted by biggam
wat u mean lame script have u got a better one   btw that scipt didin't work it dnt even work at all
That's impossible (only if u did some mistake).

Cheers

??????Hawk??????

QuoteOriginally posted by biggam
wat u mean lame script have u got a better one  

By Lame  ..  i mean  IT is LAME to flood...

Try the Ban command  ..  it uses less resourses and gets  rid of the problem user instantly.



??????Hawk??????

Dessamator

what he means, is that is a bad script, instead of just kicking the user, ur flooding him until his dc crashes, or mayb even his pc
Ignorance is Bliss.

biggam

#6
lol ye dats the whole point o teach the guy a lesson and can sum1 please re post the script with 100% sure it will work and can u please not change the command or anythin apart from the fact dat it can only work on regs and vip's.

thank you

??????Hawk??????

#7
Removed........  Hope you learned a lesson from the code posted

jiten

Let's see if the same script posted by hawk will work with u... :D

biggam

ye ye thanx it worked....lool but wen i flood a reg or sumthin i get flooded insted

jiten

QuoteOriginally posted by biggam
ye ye thanx it worked....lool but wen i flood a reg or sumthin i get flooded insted
First script updated.

biggam


jiten

Well, "First script updated" means I've fixed that bug and updated my first post.
This is the one.

Best regards,

jiten

biggam

na still i keep gettin flooded

jiten

QuoteOriginally posted by biggam
na still i keep gettin flooded
Wierd... It's working perfectly with me ;)

??????Hawk??????

QuoteOriginally posted by biggam
na still i keep gettin flooded

ive edited my  Above post  ..  try that code...

plop

QuoteOriginally posted by biggam
na still i keep gettin flooded
not fun is it he.
you never have the right 2 crash some1 elses compie or even the software he's running.
doing this makes your hub illegal and you a script kiddy.
just ban the folks and use your bandwidth for usefull things.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

??????Hawk??????

#17
Code removed  ..  

the self flooding was intentional  .. i hope you learned something from it  ..  

Be happy...   Be  sencible   :))  :))


??????Hawk??????

Dessamator

QuoteOriginally posted by biggam
na still i keep gettin flooded
LOL
a wise man once said , "Do not do to others what you wouldnt like to be done to you"
Ignorance is Bliss.

jiten

QuoteOriginally posted by ??????Hawk??????
Code removed  ..  

the self flooding was intentional  .. i hope you learned something from it  ..  

Be happy...   Be  sencible   :))  :))


??????Hawk??????
Indeed :]

Pothead

QuoteOriginally posted by plop
you never have the right 2 crash some1 elses compie or even the software he's running.
Just a shame Cologic doesn't agree with you, in respect to his Obnoxious Filelist.  ?(

biggam

rarrr man nuttin that big soz if u people took it serious but ok kool

SMF spam blocked by CleanTalk