Author Topic: HALP NAO PLOX!  (Read 8546 times)

A_K1TTEN

  • Newbie
  • *
  • Posts: 15
HALP NAO PLOX!
« on: October 15, 2008, 07:54:44 PM »
okay, so i wrote a ONTEXT script so when anyone says "gay" it bans/kicks them, and writes them a msg... well, Icechat crashed RIGHT when i saved it. no big deal right? just delete the script, huh? well, i cant open Icechat, because it crashes every time i try... AND i cant get into the script file through like My Computer... WHAT CAN I DO?!

TheCellist42

  • Full Member
  • ***
  • Posts: 143
    • TheCellist42.com
Re: HALP NAO PLOX!
« Reply #1 on: October 15, 2008, 08:30:09 PM »
This could be an IceChat error... so reinstalling IceChat may help the issue. Now, as far as deleting the script may go... to find it, go to: Start, then Run, then type: "%APPDATA%\IceChat\Scripts" This is where all of your scripts will be. You can delete it from here.

Now, as far as the script itself goes... post it here, and I will look at it. :)

~Sam
~ Sam
~ Visit my website at http://www.TheCellist42.com

HackBenjamin

  • Newbie
  • *
  • Posts: 35
Re: HALP NAO PLOX!
« Reply #2 on: October 15, 2008, 08:34:23 PM »
Were there any errors before it crashed?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: HALP NAO PLOX!
« Reply #3 on: October 15, 2008, 09:14:59 PM »
Yes, most interested in the script, so I can identify the problem here.
The IceChat God

A_K1TTEN

  • Newbie
  • *
  • Posts: 15
Re: HALP NAO PLOX!
« Reply #4 on: October 15, 2008, 09:22:37 PM »
OMG thank you so much! but there were NO errors prior, and after i deleted the script, everything works perfect!!! :DDDDDD

But, i have NO CLUE what I'm doing when it comes to scripting... i have read over the scripting tut. like... 7 times, and still, i just cant grasp it AT ALL. but everything works fine now thank you.

the horrible attempt at the script was:

on *:TEXT:*gay*:#:/msg !kb $chan $nick

p.s. the "!kb" is the channels bots thing to kick and ban someone.

and if it isn't ANY trouble, if some one in the channel says  "gay" i would like them to be ban/kicked, and send a message in the chat that says "NOT GAY, Lame, dumb, or Stupid... Kinda like yourself :D" also can i get a kick/ban counter? :D this IS the script forum after all! lololol

OH, and my old channel got overrun by someone, and i am the channel owner, he set a ban on me. is there ANY way to override their op, so that i can kick/ban them, and get my old channel back?

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: HALP NAO PLOX!
« Reply #5 on: October 15, 2008, 11:08:02 PM »
only thing i see wrong with it is you didn't put in the name of the bot
on *:TEXT:*gay*:#:/msg [bot name] !kb $chan $nickSub

here's ur kick/ban counter
Code: [Select]
Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
If inStr(LCase(Message),LCase("gay")) then
  SendCommand "/msg *botname* !kb " & Channel & " " & Nickname & "",ServerNumber
  SendCommand "/msg " & Channel & " NOT GAY, Lame, dumb, or Stupid... Kinda like yourself ",ServerNumber
  Count = GetIniFile("count.ini","count","KickBan_count",0)
  Count = Count + 1
  WriteIniFile "count.ini","count","KickBan_count",Count
SendCommand "/msg " & Channel & " Total kick/bans = " & Count &"",ServerNumber
End If
End Sub

and about regaining control of your channel it depends if you have some kind of channel service bot
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

Morio

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 256
Re: HALP NAO PLOX!
« Reply #6 on: October 16, 2008, 12:42:39 AM »
Just a small modification to Windows_95's script. The script will work as he wrote it, but the 'If' line should look like this:

Code: [Select]
If inStr(LCase(Message),"gay") then
You don't need LCase() around the word "gay", because it's already in lowercase
"I don't know what World War 3 will be fought with, but I know World War 4 with be fought with sticks and stones." - Albert Einstein

TheCellist42

  • Full Member
  • ***
  • Posts: 143
    • TheCellist42.com
Re: HALP NAO PLOX!
« Reply #7 on: October 16, 2008, 01:01:44 AM »
If the network uses a system called: "ChanServ," usually present with Anope services... has a feature like this.

If you registered the channel to your nickname... you can simply run: "/msg ChanServ UNBAN #channel"

If the network doesn't use these type of services... your best bet would probably be to contact an IRC operator.

Also, about the !kb, that is a bad idea... setting the ban yourself is a better idea. :D Just ban their host by setting the mode "+b *!*@<hostmask>" If the network has a bot service however, maybe it would be a better idea to use the command, but possibly do it through ChanServ, if you have it, by running: "/msg ChanServ BAN #channel NickName"

(P.S. The command in channels to kick/ban a user is: "!kb <nickame>")

:D

~Sam
« Last Edit: October 16, 2008, 01:04:41 AM by TheCellist42 »
~ Sam
~ Visit my website at http://www.TheCellist42.com

Windows_95

  • Newbie
  • *
  • Posts: 31
  • Who's cool and has two thumbs? This guy!
Re: HALP NAO PLOX!
« Reply #8 on: October 16, 2008, 01:49:25 AM »
haha well its quarter to 5am thats about as good as i can do this late :-D
I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. Galileo Galilei

A_K1TTEN

  • Newbie
  • *
  • Posts: 15
Re: HALP NAO PLOX!
« Reply #9 on: October 16, 2008, 08:11:00 PM »
Thank you guys soooo much :D!

A_K1TTEN

  • Newbie
  • *
  • Posts: 15
Re: HALP NAO PLOX!
« Reply #10 on: October 18, 2008, 09:55:59 PM »
Okay, well the script works.... TOO MUCH! haha. when i save it, it saves like 5 times, and if someone says "gay" it goes off how ever many times it saves. it basically just goes crazy. i have NO cluse whats wrong with it...

TheCellist42

  • Full Member
  • ***
  • Posts: 143
    • TheCellist42.com
Re: HALP NAO PLOX!
« Reply #11 on: October 18, 2008, 09:57:29 PM »
Paste it...
~ Sam
~ Visit my website at http://www.TheCellist42.com

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: HALP NAO PLOX!
« Reply #12 on: October 18, 2008, 10:38:21 PM »
And make sure you dont have a script loaded multiple times.
The IceChat God

A_K1TTEN

  • Newbie
  • *
  • Posts: 15
Re: HALP NAO PLOX!
« Reply #13 on: October 23, 2008, 12:38:50 PM »
nope, whenever i copy and paste and save it, it just shows in the Script file deal, like 5+ times... i dont load it, or anything, it just automatically happens.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: HALP NAO PLOX!
« Reply #14 on: October 23, 2008, 01:18:54 PM »
Well, thats the problem, it is being loaded multiple times.
Unload all versions of the file, and make sure it is just loaded once, or the script, will in essence, run multiple times.
The IceChat God