IceChat Forums

IceChat 7 => IceChat 7 Scripts => Topic started by: Smoke20 on September 21, 2010, 11:29:24 AM

Title: In need of a script for our gaming club
Post by: Smoke20 on September 21, 2010, 11:29:24 AM
Heya all, I'm in need of a script for a gaming club(Since I have no idea how to make on for IceChat 7, mIRC Ive got a few, but they do not work). As we do have some issues with language issues that I want to try and get rid of. Also need to have a !lookup feature in the channel we use.

What I'm in need of is for a script and I'm hoping someone can help me either understand how this works, or can write on when you have the spare time.

Cuss words in a sentence or single word form(list would need to be updated at any time)... on these would only be kicked each time.
Cuss words against women instant ban (C**t, B**ch, W**re, Sl*t, and Sk**K)
Racial Slurs are also instant ban (list would need to be updated at any time)

Also since we use different links to help with some gaming areas I need to have the following added in for a "!lookup" feature
!lookup Gaming Competitions  (posted comment would be "Go Here: Link")
!lookup Gaming Trouble Shooting  (posted comment would be "Go Here: Link")
!lookup Gaming Servers  (posted comment would be "Go Here: Link")
!lookup Gaming Patches  (posted comment would be "Go Here: Link")
!lookup Rules  (posted comment would be "Go Here: Link")
!lookup JA Server  (posted comment would be "IP Address and Password")
!lookup JO Server  (posted comment would be "IP Address and Password")
!lookup RC Server  (posted comment would be "IP Address and Password")

Last part of the script would be to have anyone that entered a specific channel, be opp'd while I am around and opp'd as well

Thanks, hopefully this can be a easy thing to write....cause at this point I'm clueless as to IceChat
Title: Re: In need of a script for our gaming club
Post by: Snerf on September 21, 2010, 04:11:34 PM
You can probably just adjust the mirc script to work in IceChat, it may just take a little moving around of brackets and such. Why not post a part of the script and we can tell you what needs to be changed. Saves having to rewrite the whole thing.

No sense posting the whole script, as you can see from a bit, how to fix the rest, most likely.
Title: Re: In need of a script for our gaming club
Post by: Smoke20 on September 28, 2010, 02:49:01 PM
Here is the two scripts for mIRC that would need to be converted to IceChat


on *:join:#yammer:{
  if ($nick == $me) {
    //mode $chan +nstk
  }
  else {
    //mode $chan +o $nick
  }
on *:text:*:#DBGaming:{
  if ( ( !lookup JA server isin $1- ) ) msg # JA: 75.102.38.209:27960 pass djbrulz
  if ( ( !lookup JO server isin $1- ) ) msg # JO: 75.102.38.56:27960 pass djbrulz
  if ( ( !lookup RC server isin $1- ) ) msg # RC: 75.102.38.110:7777
  if ( ( !lookup Rules isin $1- ) ) msg # Go Here: http://www.darkjedibrotherhood.com/wiki/index.php?title=RoC
  if ( ( !lookup Gaming Competitions isin $1- ) ) msg # See my last report!
  if ( ( !lookup Gaming Troubleshooting isin $1- ) ) msg # Go Here: http://www.darkjedibrotherhood.com/wiki/index.php?title=Gaming_Troubleshooting
  if ( ( !lookup Game Patches isin $1- ) ) msg # Go Here: http://www.darkjedibrotherhood.com/wiki/index.php?title=Gaming_Patches
  if ( ( !lookup Gaming Servers isin $1- ) ) msg # Go Here: http://www.darkjedibrotherhood.com/wiki/index.php?title=Gaming_Servers
  if ( ( !lookup RC Maps isin $1- ) ) msg # Go Here: http://www.darkjedibrotherhood.com/wiki/index.php?title=Gaming_Servers  -  Look in the RC Server section
  if ( ( !lookup JA Mod isin $1- ) ) msg # Go Here: http://www.darkjedibrotherhood.com/dbjedi/post.php?id=5903
 }



Title: Re: In need of a script for our gaming club
Post by: Snerf on September 28, 2010, 05:51:35 PM
You should have better luck doing it like this.

Code: [Select]
on *:text:*!lookup JA server*:#DBGaming:/msg $chan JA: 75.102.38.209:27960 pass djbrulz
on *:text:*!lookup JO server*:#DBGaming:/msg $chan JO: 75.102.38.56:27960 pass djbrulz
on *:text!*lookup Gaming Troubleshooting*:#DBGaming:/msg $chan Go Here: http://www.darkjedibrotherhood.com/wiki/index.php?title=Gaming_Troubleshooting

Adding * to the front and back to the trigger text makes it work with extra text around it (* is a wildcard match), but if you want an exact match, just make it :!lookup JA server: instead of :*!lookup JA server*:.

Give that a whir, see how it goes for you.