mIRC Homepage
Posted By: Xiad Should be simple - $calc - variables. - 19/12/06 03:21 AM
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.
Posted By: Riamus2 Re: Should be simple - $calc - variables. - 19/12/06 03:34 AM
Code:
on 1:text:!calc *:#: { msg $chan $calc($2-) }
Posted By: Xiad Re: Should be simple - $calc - variables. - 19/12/06 03:39 AM
Thanks for your time.. worked wonderfully. smile
© mIRC Discussion Forums