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: 108
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
Rules for Voiced (+v) users in #Chris
by Axlin
Yesterday at 05:36 PM
WyldRyde Channel Management Script **BETA**
by usrbingeek
11/19/08 12:35 AM
Saying Hello
by cirian75
11/18/08 02:13 PM
Multiple Network question
by usrbingeek
11/16/08 10:00 PM
Recruiting new ops and half ops in #iPhone
by techman224
11/14/08 07:09 PM
Common Commands Script
by burace17
11/14/08 02:55 PM
Rules for Voiced Users being Enforced More
by abcd
11/14/08 08:33 AM
New bot policy
by Freekie
11/11/08 10:11 PM
my favorite channels on WR
by sbushfan11
11/10/08 05:42 AM
Volunteer Half-Op Positions Available In My New Ch
by mikem
11/08/08 03:16 PM
Script Bots. Need One?
by Samuel
11/07/08 10:10 PM
Services Help Version 2.4
by Jerry
11/06/08 09:41 PM
Recent Pics
mIRC on Linux???
Computer Spam o_O
My Windows Desktop
Who's Online
1 registered (Ryan), 5 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 469
Kat 266
iPhone 108
Phil 91
Freekie 85
techman224 75
CCMike 73
Justin 70
tengrrl 55
wirelesspacket 52
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.