mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 26
I
Inky Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2006
Posts: 26
Some people may remember this thread...:

Here

Anyway, I need to edit it so its a BUG one. I tried editing but it all went,....wierd. I just grabbed the script, changed all the 'fish' to 'bug', but it didnt come out right. Can anyone help?


Very new to mIRC, don't know much.
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
do a find/replace all fish-bug in the remote editor and it should all work hunky dory

btk


billythekid
Joined: Jul 2006
Posts: 26
I
Inky Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2006
Posts: 26
Thats what I did!
But it still didnt work...:( , I may need a whole new script for this?


Very new to mIRC, don't know much.
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
This is shaefer's script, with a find/replace. Should work ok, I see no reason why it wouldn't. Remember to change the #YourChannelHere.

Code:
on *:TEXT:-bug:#YourChannelHere:{
  if (%noflood.bughelp) {
    set -u3 %noflood.bughelp 1
    .notice $nick Search syntax: -findbug <name>
  }
}

on 10:TEXT:-addbug *:#YourChannelHere:{
  if (!$6) { 
    .notice $nick -bugadd missing parameters.
    .notice $nick Syntax: -bugadd <name> <location> <month> <time> <money>
  }
  else {
    writeini bug.ini $2 Location $3
    writeini bug.ini $2 Month $4
    writeini bug.ini $2 Time $5
    writeini bug.ini $2 Money $6
    .notice $nick Added $2 to the database.
  }
}

on 10:TEXT:-rembug *:#YourChannelHere:{
  if ($readini(bug.ini,n,$2,Location)) {
    remini bug.ini $2
    .notice $nick Removed $2 from the database.
  }
  else {
    .notice $nick No bug named $1
  }
}

on *:TEXT:-findbug *:#YourChannelHere:{
  if (!%noflood.findbug) {
    if ($readini(bug.ini,n,$2,Location)) {
      set -u5 %noflood.findbug 1
      .notice $nick The name of this bug is $2
      .notice $nick The location of this bug is $readini(bug.ini,n,$2,Location)
      .notice $nick The month that this bug appears is in $readini(bug.ini,n,$2,Month)
      .notice $nick The time when this bug is catchable is $readini(bug.ini,n,$2,Time)
      .notice $nick This bug is worth $readini(bug.ini,n,$2,Money) bells.
    }
  }
}


-KingTomato
Joined: Jul 2006
Posts: 26
I
Inky Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2006
Posts: 26
Didnt work.


Very new to mIRC, don't know much.
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Do you have level 10 access to the bot? That's the only reason I can see it not working, is the bot's ignoring you due to unmet credentials.


-KingTomato
Joined: Jul 2006
Posts: 26
I
Inky Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2006
Posts: 26
I do have level 10 acsess to the bot.


Very new to mIRC, don't know much.
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Works for me. You must have another script conflicting. Try switching the order:

1. Open your script editor
2. From the File menu, select "order..."
3. Select the script file containing this code
4. Click the [UP] button until file is at the top
5. Click [OK] and try again.

Here's what I got:

Code:
[12:25:52] <KingTomato> -addbug 
[12:25:52] -JEVBot- -bugadd missing parameters.
[12:25:52] -JEVBot- Syntax: -bugadd <name> <location> <month> <time> <money>
[12:26:16] <KingTomato> -addbug Ladybug NH April Afternoon 10
[12:26:17] -JEVBot- Added Ladybug to the database.
[12:26:35] <KingTomato> -findbug ladybug
[12:26:36] -JEVBot- The name of this bug is ladybug
[12:26:36] -JEVBot- The location of this bug is NH
[12:26:36] -JEVBot- The month that this bug appears is in April
[12:26:36] -JEVBot- The time when this bug is catchable is Afternoon
[12:26:36] -JEVBot- This bug is worth 10 bells.
[12:27:03] <KingTomato> -rembug ladybug
[12:27:04] -JEVBot- Removed ladybug from the database.


-KingTomato
Joined: Jul 2006
Posts: 26
I
Inky Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2006
Posts: 26
Ill try that, can't get on mIRC for 2 whole weeks! frown


Very new to mIRC, don't know much.

Link Copied to Clipboard