• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#2928 - 08/19/08 02:04 AM !add !edIT !del for a mIRC bot
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 55
Loc: Califotnia
Does anyone know where I can get the !add !edit and !del commands for a mirc bot? I know I saw them somewhere. Example: !add command !edit command! !del command all to the MIRC Bot.
_________________________
<witty comment here>

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#2929 - 08/19/08 04:01 AM Re: !add !edIT !del for a mIRC bot [Re: jwire4]
Jared Offline
n00b

Registered: 03/03/08
Posts: 7
Loc: Louisiana. USA
I would love to see if there is one like this too. It would be really useful if someone made a script for it. smile

Top
#2933 - 08/19/08 06:41 PM Re: !add !edIT !del for a mIRC bot [Re: Jared]
Jerry Offline
newbie

Registered: 04/27/08
Posts: 35
Loc: New Jeresy, USA
You can use Woz as he has those features built in. To request him either join #woz or ask jthermane24 or Zack-mac. Sorry but we don't release those scripts.
_________________________
--Jerry Smith
#Jerry, #macfan406, #iPhone, #nick
http://jerrysmith.us.to

Top
#3079 - 09/02/08 01:35 AM Re: !add !edIT !del for a mIRC bot [Re: jwire4]
iAlex Offline
Over 100 posts

Registered: 09/01/08
Posts: 100
Loc: Kongsvinger, 2209 Norway.
uuhm.. this will be kinda hard to find.. but I quess I can make it for you wink

put this pastebin script into a text file and load it into mirc..

http://pastebin.com/m3f7b1fc1


Edited by iAlex (09/02/08 01:39 AM)
Edit Reason: o.O
_________________________
http://ialex.info
ialex94wr@gmail.com
alex@ialex.info

Top
#3082 - 09/02/08 09:59 AM Re: !add !edIT !del for a mIRC bot [Re: iAlex]
jwire4 Offline
Over 50 posts

Registered: 03/18/08
Posts: 55
Loc: Califotnia
thanks iAlex smile
_________________________
<witty comment here>

Top
#3083 - 09/02/08 10:14 AM Re: !add !edIT !del for a mIRC bot [Re: jwire4]
techman224 Offline
Over 50 posts

Registered: 07/24/08
Posts: 77
Loc: Winnipeg, Manitoba, Canada
I use Woz for that. It's much easier because it's already made and ready to go.
_________________________
Founder of #techman, #advertising, and #startrek
SOP in #vistaops, #ryanbecker, and #techhelper
AOP in #GeniusBar, #sam-ops, #vista, and #icomputer
HOP in #MRA, #samf, and #yertalert
VOP in #buracelive, #Chills, #Chris, #computertech, #iPhone, and #Karol

Top
#3086 - 09/02/08 05:14 PM Re: !add !edIT !del for a mIRC bot [Re: techman224]
boredcollegekid Offline
newbie

Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
I prefer to run my own bot if I do, because you have more control over what happens and when it is up or down.
_________________________

Top
#4348 - 02/25/09 12:08 AM Re: !add !edIT !del for a mIRC bot [Re: boredcollegekid]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
I put this together from a broken script in pastebin today for freelancer.
Code:
;Just Change the ChannelName Below
on *:TEXT:*:#TBCH: {
  if ($1 == !add) {
    ;the syntax for this is /writeini -n <inifile> <section> <item> <value>
    ;so you would use something like
    if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
    if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
    writeini commandlist.ini triggers $2 $3-
    .msg $chan $2 was added to commandlist.ini by $nick as $3-
    ;not sure what this is for so I commented it out
    ;set % $+ $2 $3-
  }
  if ($1 == !del) && ($2) { 
    remini commandlist.ini triggers $2
    .msg $chan $2 was deleted from commandlist.ini by $nick 
  }
  if ($readini(commandlist.ini,triggers,$1)) {
    .msg $chan $readini(commandlist.ini,triggers,$1) 
  }
}
;This should work if it is the first word, however it could really slow you down reading from the file.
;That's why I used hashtables
_________________________
If you already know everything, You can never learn anything :P

Top
#4350 - 02/25/09 08:37 PM Re: !add !edIT !del for a mIRC bot [Re: FordLawnmower]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
I added a !list so you can see all the triggers you added smile
Code:
on *:TEXT:*:*: {
  if ($1 == !add) {
    ;the syntax for this is /writeini -n <inifile> <section> <item> <value>
    ;so you would use something like
    if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
    if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
    writeini commandlist.ini triggers $2 $3-
    .msg $chan $2 was added to commandlist.ini by $nick as $3-
    ;not sure what this is for so I commented it out
    ;set % $+ $2 $3-
  }
  if ($1 == !del) && ($2) { 
    remini commandlist.ini triggers $2
    .msg $chan $2 was deleted from commandlist.ini by $nick 
  }
  if ($1 == !list) {
    listtriggers $chan
  }
  if ($readini(commandlist.ini,triggers,$1)) {
    .msg $chan $readini(commandlist.ini,triggers,$1) 
  }
}
alias listtriggers {
  if ($isfile(commandlist.ini)) {
    if (!$1) { .play -nttriggers $me commandlist.ini 1500 }
    if ($1) { .play -ttriggers $1 commandlist.ini 1000 }
  }
}
;This should work if it is the first word, however it could really slow you down reading from the file.
;That's why I used hashtables
_________________________
If you already know everything, You can never learn anything :P

Top
#4425 - 03/05/09 09:12 AM Re: !add !edIT !del for a mIRC bot [Re: FordLawnmower]
LostCoder Offline
n00b

Registered: 11/03/08
Posts: 13
Loc: England
Why not, to increase speed and efficiency, use hashtables wink
_________________________
Don't forget to go to http://www.codingpod.com for all of your Coding needs

Top
#4431 - 03/05/09 03:30 PM Re: !add !edIT !del for a mIRC bot [Re: FordLawnmower]
SLT_Studios Offline
n00b

Registered: 04/10/08
Posts: 5
Loc: Raleigh, NC, USA
Also can you make it chan specific so say you were to do "!add command" in #slt it wont be able to do !command some other chan?
_________________________
"Please stand clear of the doors por favor mentenga se alejado de las puertas"- Disney Monorails

Top
#4439 - 03/05/09 09:23 PM Re: !add !edIT !del for a mIRC bot [Re: SLT_Studios]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
Here you go SLT. I changed it to be channel specific. Of course this means that if you want a common trigger in more than one channel, you will have to add it in each one. I also changed the name, to prevent a conflict, added Freelancers !* at the top and added a !list function to list the triggers.
Code:
;I still suggest putting channel names here to keep you out of
;trouble. Ex. on *:TEXT:!*:#chan1,#chan2: {
on *:TEXT:!*:#: {
  if ($1 == !add) {
    if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
    if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
    writeini TriggerList.ini $chan $+ - $+ Triggers $2 $3-
    .msg $chan $2 was added to TriggerList.ini by $nick as $3-
  }
  if ($1 == !del) && ($2) { 
    remini TriggerList.ini $chan $+ - $+ Triggers $2
    .msg $chan $2 was deleted from TriggerList.ini by $nick 
  }
  if ($1 == !list) {
    listtriggers $chan
  }
  if ($readini(Triggerlist.ini,$chan $+ - $+ Triggers,$1)) {
    .msg $chan $readini(Triggerlist,$chan $+ - $+ Triggers,$1) 
  }
}
alias listtriggers {
  if ($isfile(Triggerlist.ini)) {
    if (!$1) { .play -nt $+ $chan $+ - $+ Triggers $me Triggerlist.ini 1500 }
    if ($1) { .play -t $+ $chan $+ - $+ Triggers $1 Triggerlist.ini 1000 }
  }
}
_________________________
If you already know everything, You can never learn anything :P

Top
#4449 - 03/06/09 06:10 PM Re: !add !edIT !del for a mIRC bot [Re: FordLawnmower]
SLT_Studios Offline
n00b

Registered: 04/10/08
Posts: 5
Loc: Raleigh, NC, USA
Doesn't work it's saying "Invalid Parameters: $readini (line 1371, remote.ini)" whenever I try to run the command. If I could bring iNtellistar into #Script-Help I can show you what I'm talking about.
_________________________
"Please stand clear of the doors por favor mentenga se alejado de las puertas"- Disney Monorails

Top
#4450 - 03/06/09 09:47 PM Re: !add !edIT !del for a mIRC bot [Re: SLT_Studios]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
Sorry about that SLT Studios. I fixed it below.
Code:
;I still suggest putting channel names here to keep you out of
;trouble. Ex. on *:TEXT:!*:#chan1,#chan2: {
on *:TEXT:!*:#: {
  if ($1 == !add) {
    if (!$2) { .notice $nick Need Trigger name. Syntax !add !triggername trigger response halt }
    if (!$3) { .notice $nick Need Trigger Response. Syntax !add !triggername trigger response halt }
    writeini TriggerList.ini $chan $+ - $+ Triggers $2 $3-
    .msg $chan $2 was added to TriggerList.ini by $nick as $3-
  }
  if ($1 == !del) && ($2) { 
    remini TriggerList.ini $chan $+ - $+ Triggers $2
    .msg $chan $2 was deleted from TriggerList.ini by $nick 
  }
  if ($1 == !list) {
    listtriggers $chan
  }
  if ($readini(Triggerlist.ini,$chan $+ - $+ Triggers,$1)) {
    .msg $chan $readini(Triggerlist.ini,$chan $+ - $+ Triggers,$1) 
  }
}
alias listtriggers {
  if ($isfile(Triggerlist.ini)) {
    if (!$1) { .play -nt $+ $chan $+ - $+ Triggers $me Triggerlist.ini 1500 }
    if ($1) { .play -t $+ $chan $+ - $+ Triggers $1 Triggerlist.ini 1000 }
  }
}
_________________________
If you already know everything, You can never learn anything :P

Top
Page 1 of 2 1 2 >


Moderator:  Jeff, mandy, usrbingeek