PDA

View Full Version : mIRC Scripting


dniwebdesign
08-02-2008, 10:06 PM
Does anyone happen to know any mIRC scripting that would be able to help me with a script?

borntoslow
08-07-2008, 08:58 AM
Sure, fire away. Whats yuor problem?

derzok
08-07-2008, 03:17 PM
I haven't used it in years (since version 5.88) but I'm sure I could help. I used it a lot.

rafiki
08-07-2008, 05:49 PM
Did you "CUIL" it?
http://www.cuil.com/search?q=IRC+scripting
:P

dniwebdesign
08-08-2008, 06:30 AM
Alrighty then... I have the script I made below, and it is loaded on a bot of mine: on 400:text:>count*:#: {
//echo -s $me ison $2
set %include $3
set %notinclude $4
set %theChan $2
if (%theChan == $null) {
set %theChan $chan
}
if (%include == $null) {
set %include a
}
if (%notinclude == $null) {
set %notinclude 0
}
if ($me ison %theChan) {
//notice $nick %theChan currently has $nick(%theChan,0,%include,%notinclude) online users.
}
else {
//join %theChan
//timer 1 5 //notice $nick %theChan currently has $!nick(%theChan,0,%include,%notinclude) online users.
//timer 1 10 //part %theChan Checking User Count
}
unset %include
unset %notinclude
unset %theChan
}
When the bot is idling in the channel the >count command works fine, even when called from a different channel. Example: [02:30] -db|Clammer- #pinkgator currently has 62 online users.

However, when the bot isn't on the channel requested, it joins... does the notice and parts however it returns:
[01:59] -D`Artagnan- #FSS currently has online users.
Why isn't it counting the users in the channel it has to join first?

dniwebdesign
08-09-2008, 09:21 PM
Small nudge to the top... :cool:

borntoslow
08-11-2008, 09:33 AM
i cant see anything wrong with it??? I will have a good look when i get home from work.

This should be fun :)

dniwebdesign
08-16-2008, 06:54 AM
:bumps: :)