mIRC Home    About    Download    Register    News    Help

Print Thread
#118681 27/04/05 08:57 PM
Joined: Apr 2005
Posts: 2
S
Snorre Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Apr 2005
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

#118682 27/04/05 10:39 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
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
#118683 27/04/05 10:47 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
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!
#118684 28/04/05 10:04 PM
Joined: Apr 2005
Posts: 2
S
Snorre Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Apr 2005
Posts: 2
Thx buddys!


grin


Link Copied to Clipboard