Author Topic: Hi guys! I got a few requests.  (Read 4713 times)

SniperPro

  • Newbie
  • *
  • Posts: 44
  • Have no fear! SniperPro is here! ;D
    • Myspace
Hi guys! I got a few requests.
« on: July 04, 2008, 05:17:38 PM »
Hi guys! I am a huge fan of IceChat, I've been using it for 3 years now.

I have never really used mIRC, my friend showed me this site and a download link, I downloaded it and have been using it ever since. I have never really toyed around with scripts, because I never knew how, just recently, I have been using some scripts from here. I have tryed creating a few ONTEXT scripts but it always fails. Even when I use some ONTEXT scripts that Snerf has posted on here. I have followed all the directions and still nothing, it always gives me a syntax error.

I was wondering if Snerf, or someone else can make me a script.

A ONTEXT script so that every time someone types !help in #hangout I reply with, "If you have a question or need assistance with something then please PM me and I will help you the best I can, if I do not respond PM me at www.The-Brotherhood.org"

And also another ONTEXT script so that if someone types "SniperPro" or "Sniper" (Capitalized or not) I reply saying there name. Say if someone called Pelicans says "SniperPro" I say "Pelicans".

Sorry, but I am new to scripting and I am having difficulties.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Hi guys! I got a few requests.
« Reply #1 on: July 05, 2008, 10:28:37 AM »
The most important thing with using the VB Style Scripts, is to make sure you save it as the write file type. The default type is the IceChat 7(mirc) style, not the IceChat 5 (vbs) style. So when you paste in these scripts, make sure you save it AS an ICE (IceChat 5) file type. The next version of IceChat (7.70) will make the IceChat 5 style the default type, as it is by far the most popular.

Code: [Select]
Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
if lcase(Message) = "!help" and lcase(Channel) = "#hangout" then
  SendCommand "/msg " & Channel & " If you have a question or need assistance with something then please PM me and I will help you the best I can, if I do not respond PM at www.The-Brotherhood.org", ServerNumber
end if

if lcase(Message) = "sniper" or lcase(Message) = "sniperpro" then
  SendCommand "/msg " & Channel & " " & Nickname, ServerNumber
end if
End Sub
The IceChat God

SniperPro

  • Newbie
  • *
  • Posts: 44
  • Have no fear! SniperPro is here! ;D
    • Myspace
Re: Hi guys! I got a few requests.
« Reply #2 on: July 05, 2008, 02:27:13 PM »
That was probably the problem all along.

Thankyou so much for that script Snerf.


:D

SniperPro

  • Newbie
  • *
  • Posts: 44
  • Have no fear! SniperPro is here! ;D
    • Myspace
Re: Hi guys! I got a few requests.
« Reply #3 on: July 06, 2008, 11:40:34 PM »
Can you change it to /notice that user for the !help script?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Hi guys! I got a few requests.
« Reply #4 on: July 07, 2008, 10:14:07 AM »
Then change the command from "/msg " & Channel , to "/notice " & Nickname
The IceChat God

SniperPro

  • Newbie
  • *
  • Posts: 44
  • Have no fear! SniperPro is here! ;D
    • Myspace
Re: Hi guys! I got a few requests.
« Reply #5 on: July 07, 2008, 08:36:43 PM »


Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
if lcase(Message) = "!help" and lcase(Channel) = "#hangout" then
  SendCommand "/notice" & Nickname & " If you have a question or need assistance with something then please PM me and I will help you the best I can, if I do not respond PM at www.The-Brotherhood.org", ServerNumber
end if


I tryed that, and it doesen't work properly.

SniperPro

  • Newbie
  • *
  • Posts: 44
  • Have no fear! SniperPro is here! ;D
    • Myspace
Re: Hi guys! I got a few requests.
« Reply #6 on: July 07, 2008, 08:41:43 PM »
A dude on the #icechat channel in the network helped me. :D

Morio

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 256
Re: Hi guys! I got a few requests.
« Reply #7 on: July 07, 2008, 11:16:08 PM »
In case someone else is wondering what the problem is, there should be a space missing in the /notice command, it should look like this:

Code: [Select]
SendCommand "/notice " & Nickname & " If you have a question or need assistance with something then please PM me and I will help you the best I can, if I do not respond PM at www.The-Brotherhood.org", ServerNumber
"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