mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
Basically what I'd like is for people to be able to type !calc <equation> and by using a script it would return a value.

All I have so far is the following:

Code:
on 1:text:!calc*:*:/msg $chan $calc(<unsure?>)


My guess is that you'd need to assign a variable like so? /set %calc

But I'm not sure how to. frown

I've had a reasonable look around for premade scripts etc, but nothing turned up.

Last edited by Xiad; 19/12/06 03:34 AM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on 1:text:!calc *:#: { msg $chan $calc($2-) }


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
Thanks for your time.. worked wonderfully. smile


Link Copied to Clipboard