Author Topic: CMD scripts  (Read 58 times)

Daxter

  • Newbie
  • *
  • Posts: 3
CMD scripts
« on: December 16, 2014, 08:12:39 PM »
 hei guys, i wanted a script that if someone type a command like !list , the script will notify the user with some text
and i wanted to know where to put it(alias,User level,etc)

im new

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • IceChat IRC Client
Re: CMD scripts
« Reply #1 on: December 17, 2014, 08:30:39 AM »
http://www.icechat.net/site/scripting/icechat-7-scripting-style/

You will see an example there.
The example shows when someone types the word !hello in the channel #icechat

The script does not work when you type it, only someone else.
The IceChat God

Daxter

  • Newbie
  • *
  • Posts: 3
Re: CMD scripts
« Reply #2 on: December 17, 2014, 09:53:21 PM »
it didnt work, i change the script to:

on *:TEXT:!hello:#stormtalk:{
/say $chan Hello $nick , how are you
/say $chan Welcome to $chan
}



and nothing happened when i ask my friend to say !hello in channel #stormtalk.
i put the script in CTRL+S>Script
and my icechat version is IceChat 7.70 20101031

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • IceChat IRC Client
Re: CMD scripts
« Reply #3 on: December 18, 2014, 01:54:19 AM »
You need to save it as a proper file type.
Make sure it is save as an IceChat 7 Style Script (*.ics)
The IceChat God

Daxter

  • Newbie
  • *
  • Posts: 3
Re: CMD scripts
« Reply #4 on: December 18, 2014, 05:08:29 PM »
You need to save it as a proper file type.
Make sure it is save as an IceChat 7 Style Script (*.ics)
thx, it work