mIRC Home    About    Download    Register    News    Help

Topic Options
#118681 - 27/04/05 09:57 PM on text / on msg ?
Snorre Offline
Bowl of petunias

Registered: 27/04/05
Posts: 2
My script is now like this:
; !scorecalc <roid> <his> <yours>

on $*:Text:m/^!scorecalc\s([0-9]+?)\s([0-9]+?)\s([0-9]+?)$/i:*:{
%g = $roidcalc($2,$3,$4)
msg $chan Result: %g
}
Alias roidcalc { Var %r = $1, %h = $2, %y = $3, %g
%g = $calc((%h / %y) * 10)
If (%g > 20) { %g = 20 }
%g = $calc((%r * %g) * 60)
Return %g
}

on *:Text:!scorecalc help:#:{ /msg $chan Yo $nick type "!scorecalc <roidcap> <hisvalue> <yourvalue>" smile
}

Seems to work ok.

But If i want to make it possible to answer if I get msg request too ?


Can anyone help?

PS: n00b detected - confused

Top
#118682 - 27/04/05 11:39 PM Re: on text / on msg ?
CtrlAltDel Offline
Hoopy frood

Registered: 15/06/03
Posts: 994
change
Code:
on *:Text:!scorecalc help:[color:red]#[/color]:{ 

to
Code:
on *:Text:!scorecalc help:[color:red]*[/color]:{ 
_________________________
I refuse to engage in a battle of wits with an unarmed person. wink

Top
#118683 - 27/04/05 11:47 PM Re: on text / on msg ?
xDaeMoN Offline
Fjord artisan

Registered: 22/03/05
Posts: 420
This would reply to pm & channel messages.

Code:
on *:Text:!scorecalc help:*:{ 
  msg $iif($chan,$v1,$nick) Yo $nick type "!scorecalc &lt;roidcap&gt; &lt;hisvalue&gt; &lt;yourvalue&gt;"
}  
_________________________
If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Top
#118684 - 28/04/05 11:04 PM Re: on text / on msg ?
Snorre Offline
Bowl of petunias

Registered: 27/04/05
Posts: 2
Thx buddys!


grin

Top