Sponsored By

Tommadness

Mirc Scripts

Recommended Posts

Hey.

I'm kinda new to mIRC (I was using ChatZilla addon to FireFox before, switched for the scripting function. =P) And I want to make a command that does "*Tomm dances with <random user>." I have it working, but, as you will see from my script below, I have to manually input the number of users. Is there a variable in mIRC which tells you the amount of users currently?

My script:

/randdance [b][color="red"]*Tomm dances with $nick(#,$r,$rand(0,300))

And yes, I've googled, and haven't come up with anything.

~Tomm

Share this post


Link to post
Share on other sites

nooo...

here more like this

alias randdance {
; ^^ will make /randdance a command
describe # $me dances with $nick(#,$rand(0,$nick(#,0)))
; ^^^ /describe <chan> is the same as /me
; the only prob with your $rand was there is no such identifier as $r
}

hope that helps

-Aaron

Edited by Dark_Aaron

Share this post


Link to post
Share on other sites

Here is a "power" script that outputs how many users you have power over and how many channels you are op'd in. You may be able to snatch a little of the code that calculates the number of users in the channel and use it in your script. Good luck.

http://www.hawkee.com/snippet/1988/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now