Sponsored Links




Topic Options
Rate This Topic
#2378 - 06/27/08 10:30 AM Trigger Script.
Lithium Offline
n00b

Registered: 06/27/08
Posts: 1
Loc: root@yourbox
Here is the one I made not too long ago smile. Simple to use and supports many triggers.

Channel OPs can use !add trigger text.

Example:
Quote:

<@[Lithium]> !add test1 test2
<lBot> (Public Commands) Added test1
<@[Lithium]> !test1
<lBot> test2


Help:
Quote:

<@[Lithium]> !help
<lBot> (Public Commands) There are 4 triggers stored in my database.
<lBot> (Public Commands) !test1 !youtube !contest !test


Enjoy smile
Code:
on *:text:!add*:#:{
  if ($nick isop #) {
    if (!$3) .notice $nick Invalid syntax. Syntax: !add trigger text
    else {
      hadd pub $+(!,$2) $3-
      msg # (Public Commands) Added $2
    }
  } 
}
on *:text:!help:#:{
  msg # (Public Commands) There are $hfind(pub,*,0,w) triggers stored in my database.
  var %x $hfind(pub,*,0,w)
  while (%x) {
    set %y $addtok(%y,$hfind(pub,*,%x,w),32)
    dec %x
  }
  msg # (Public Commands) %y
  unset %y
}
on *:text:!*:#:{
  if ($hget(pub,$1)) && (!%cmd) msg # $hget(pub,$1)
  ;Change "5" for how many seconds between each command. (Anti-Flood)
  set -u5 %cmd on

}

alias hash  hmake -s pub 100
on *:quit: hsave pub pub.hsh
on *:start: hload pub pub.hsh

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#2386 - 06/27/08 05:30 PM Re: Trigger Script. [Re: Lithium]
Jerry Offline
newbie

Registered: 04/27/08
Posts: 34
Loc: New Jeresy, USA
Cool I already have one but ill remember this one to give out to people.
_________________________
--Jerry Smith
#Jerry, #macfan406, #iPhone, #nick
http://jerrysmith.us.to

Top
#2415 - 06/29/08 10:16 PM Re: Trigger Script. [Re: Jerry]
iPhone Offline
Over 100 posts

Registered: 03/08/08
Posts: 109
Loc: New Jersey
so... I'm guessing this is an mIRC only script, right?
_________________________
-Kevin C. Nunez, CEO and Founder of #iPhone on WyldRyde

Top
#2995 - 08/28/08 03:00 PM Re: Trigger Script. [Re: iPhone]
evanrocks010 Offline
n00b

Registered: 05/26/08
Posts: 9
Loc: USA
I doesn't work for me:
<Ev4n> !add Twitter Visit my Twitter @ http://twitter.com/Ev4nsLife
<Ev4n> !help
-VitaminWater- ----- Fantasy Commands Help -----
-VitaminWater- To get a list of available commands for what you want to do, type the following:
-VitaminWater-
-VitaminWater- !help general - Shows general commands available. No special access required.
-VitaminWater- !help chaccess - Shows commands to manipulate channel access and levels list(s).
-VitaminWater- !help config - Configure the channels' settings and lists.
-VitaminWater- !help act - Commands that will make services perform certain actions.
-VitaminWater- !help ircop - Commands only available to IRC Operators.
-VitaminWater-
-VitaminWater- To get a list of all available commands, type '!help all'
-VitaminWater- --- End of cmd listing ---
<Frizzle> (Public Commands) There are 0 triggers stored in my database.
<Frizzle> (Public Commands)
<Ev4n> !add test test
<Frizzle> (Public Commands) Added test
<Ev4n> !test
<Ev4n> test
<Ev4n> !test
<Ev4n> !help
-VitaminWater- ----- Fantasy Commands Help -----
-VitaminWater- To get a list of available commands for what you want to do, type the following:
-VitaminWater-
-VitaminWater- !help general - Shows general commands available. No special access required.
-VitaminWater- !help chaccess - Shows commands to manipulate channel access and levels list(s).
-VitaminWater- !help config - Configure the channels' settings and lists.
-VitaminWater- !help act - Commands that will make services perform certain actions.
-VitaminWater- !help ircop - Commands only available to IRC Operators.
-VitaminWater-
-VitaminWater- To get a list of all available commands, type '!help all'
-VitaminWater- --- End of cmd listing ---
<Frizzle> (Public Commands) There are 0 triggers stored in my database.
<Frizzle> (Public Commands)

Top
#3003 - 08/28/08 04:16 PM Re: Trigger Script. [Re: evanrocks010]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 50
Loc: Califotnia
same problem
_________________________
<witty comment here>

Top


Recent Posts
RSS Feed for Topics
by usrbingeek
Yesterday at 11:57 PM
Lost Voice
by ruben32
Yesterday at 10:52 AM
Newstracker
by DragonHeart
01/07/09 10:08 AM
Rules for Voiced (+v) users in #Chris
by Christian
01/06/09 09:10 PM
CHannel Support? @ #Chris
by Mataniah
01/06/09 02:38 PM
Accept - Reject Pm script. Final Version.
by Phil
01/06/09 02:04 PM
Script to join channels with 30+ users.
by usrbingeek
01/05/09 02:32 PM
Ustream IRC Auto Identtifyer
by Dark_Aaron
01/05/09 10:42 AM
IRC Bot Platforms
by Sam Ferry
01/05/09 02:58 AM
Get a free forum for your channel!
by Sam Ferry
01/05/09 02:48 AM
Ban Appeal Process
by Sam Ferry
01/05/09 02:36 AM
Flood Protection
by Dark_Aaron
01/03/09 08:14 PM
Recent Pics
Xchat
mIRC on Linux
mIRC on Linux???
Who's Online
1 registered (jpbernhardt), 8 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 513
Kat 281
Phil 116
iPhone 109
Freekie 88
Justin 82
CCMike 78
techman224 75
tengrrl 58
wirelesspacket 53
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.