Help - Protect bot

Paste Your code(s) here, and state your problem.

Help - Protect bot

Postby StareX » Tue Feb 03, 2009 2:34 pm

Hello,
My script is Protect script with !protect on/off/status (i have do this 3 days :O)
I am stuck on the script i have made.. i dunno how i moving
can you help me?

Code: Select all
on *:TEXT:!protect*:#: { 
  if ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) {
    if (!$2) { notice $nick Syntax: $1 <on/off/status> | halt }
    if ($2 == on) {
      writeini settings.ini $chan protect on
      notice $nick Done.
    }
    if ($2 == off) {
      writeini settings.ini $chan protect off
      notice $nick Done.
    }
    if ($2 == status) {
      notice $nick Protection is currently: $iif($readini(settings.ini,$chan,protect),$v1,off)
    }
  }
}
on @!*:OP:#: {
  if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
  mode $chan -oo $nick $opnick
  /msg Q chanlev $chan $nick -ao
  hadd cbans $chan $address($nick,1) You are not allowed to OP anyone on $chan - violation on: $date at $time
  ban -k $chan $nick 1 You are not allowed to OP anyone on $chan - violation on: $date at $time  - by %homechan
}


on @!*:DEOP:#: {
  if ($nick == $me) {
    msg Q op $chan
  }
  if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
  mode $chan -o+o $nick $opnick
  hadd -m cbans $chan $address($nick,1) You are not allowed to DEOP anyone on $chan - violation on: $date at $time
  /msg Q chanlev $chan $nick -ao
  ban -k $chan $nick 1 You are not allowed to DEOP anyone on $chan - violation on: $date at $time
}



on @!*:KICK:#: {
  if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($
  ($chan) != on) { halt }
  /msg Q chanlev $chan $nick -ao
  writeini bans.ini $chan $address($nick,1) You are not allowed to KICK anyone on $chan - violation on: $date at $time
  ban -k $chan $nick 1 You are not allowed to KICK anyone on $chan - violation on: $date at $time
}



on @!*:BAN:#: {
  if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
  mode $chan -o+b-b $nick $address($nick,1) $banmask
  /msg Q chanlev $chan $nick -ao
  kick $chan $nick You are not allowed to BAN anyone on $chan - violation on: $date at: $time
  writeini bans.ini $chan $address($nick,1) You are not allowed to BAN anyone on $chan - violation on: $date at $time
}


on @!*:UNBAN:#: {
  if ($nick == $me) { halt }
  if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
  mode $chan -o+b+b $nick $address($nick,1) $banmask
  kick $chan $nick You are not allowed to BAN anyone on $chan - violation on: $date at: $time
  /msg Q chanlev $chan $nick -ao
  hadd cbans $chan $address($nick,1) You are not allowed to BAN anyone on $chan - violation on: $date at $time
}


on @!*:TOPIC:#: {
  if ($nick == Q) || ($readini(userl.ini,global,$address($nick,2)) == owner) || ($readini(userl.ini,global,$address($nick,2)) == master) || ($protect($chan) != on) { halt }
  mode $chan -o+b $nick $address($nick,1)
  kick $chan $nick You are not allowed to CHANGE TOPIC on $chan - violation on: $date at $time
  /msg Q chanlev $chan $nick -ao
  hadd cbans $chan $address($nick,1) You are not allowed to CHANGE TOPIC on $chan - violation on: $date at $time
  topic $chan $readini(settings.ini,topic,$chan)
}


So i am stuck..

its needed to be with
Anti:
ChangeTopic, Op, deop, ban, kick.
and its with !protect on/off/status

so i did !protect on
then it says me
Done.

then i checking status
it says me:
The protect is on

and i tested it with my friend (The userlist script is with userl.ini by AndRew)
so he wasnt in the userlist.

i tested him in a new chan with Q and all
he deop me or my bot..
My bot wasn't answers.... :(

What can i do?

Help!
I am really stuck... :(
StareX
 

Re: Help | Protect bot

Postby AndRew » Thu Feb 05, 2009 9:03 am

rofl... u made this alone? it looks almost all like mine scripts.. rofl
AndRew
 

Re: Help | Protect bot

Postby Mirora » Thu Feb 05, 2009 10:06 am

AndRew wrote:rofl... u made this alone? it looks almost all like mine scripts.. rofl




The really nice thing is, the proper english IN the script and the "oejjwoeag" english outside the script.
Mirora
 

Re: Help | Protect bot

Postby StareX » Thu Feb 05, 2009 1:55 pm

rofl... u made this alone? it looks almost all like mine scripts.. rofl

No it isn't.
StareX
 

Re: Help | Protect bot

Postby AndRew » Thu Feb 05, 2009 3:40 pm

StareX wrote:
rofl... u made this alone? it looks almost all like mine scripts.. rofl

No it isn't.


Yes it is, u stole it from mine service.mrc which i pasted on bdz's forum.. ye it's true, u changed some lines and used hash tables but anyway it's mine :)
AndRew
 

Re: Help | Protect bot

Postby Mirora » Fri Feb 06, 2009 11:31 pm

AndRew wrote:
StareX wrote:
rofl... u made this alone? it looks almost all like mine scripts.. rofl

No it isn't.


Yes it is, u stole it from mine service.mrc which i pasted on bdz's forum.. ye it's true, u changed some lines and used hash tables but anyway it's mine :)



The only thing he can change is AUTHOR!
Mirora
 

Re: Help - Protect bot

Postby teppuli » Tue Feb 10, 2009 3:41 pm

I made that !protect cmd and some other parts on this for AndRew... So StareX didn't make it...
teppuli
 

Re: Help - Protect bot

Postby PuNkTuReD » Thu Feb 12, 2009 1:26 am

i think that, users who have been caught ripping, and still show no evidence of actually learning how to script, should be banned from the forums.
i can tell ya i wont be jumping to help them any time soon.
PuNkTuReD
 


Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron