mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
This script will only display bonus points for own nick. Would like to select a nick in the nicklist to check his/her bonus points. (only for ops) Any ideas please?

Quote:

on *:text:!Bonus:#:{
if ((%floodpoints) || ($($+(%,floodpoints.,$nick),2))) { return }
set -u10 %floodpoints On
set -u30 %floodpoints. $+ $nick On
notice $nick You have $iif($readini(Point.ini,$+(#,.,$nick),Points),$v1,0) bonus points in $chan
}

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on *:text:!Bonus*:#:{
var %target $iif($2,$2,$nick)
if ((%floodpoints) || ($($+(%,floodpoints.,$nick),2))) { return }
set -u10 %floodpoints On
set -u30 %floodpoints. $+ $nick On
notice $nick %target has $iif($readini(Point.ini,$+(#,.,%target),Points),$v1,0) bonus points in $chan
}
I added to check for other users, now you get the job done with an op check. Shouldn't be too hard :3


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
Thanks Nillen that I will manage> Enjoy your day

Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
ok fixed i think

Last edited by raycomp; 18/02/15 03:54 PM.
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
No is not working, maybe something needs to change here to?

alias -l lookUpPoints {
var %topic $+($chan,.,$nick)
var %points $readini(Point.ini,%topic,Points)
return %points
}

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
You're never triggering that alias in the script you provided. I noticed however that you use "notice $nick" which isn't supported on twitch.

I assume you're using twitch due to the fact that the code you're using is vastly spread among twitch users here.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
ahh that's why they don't receive the info. Thanks


Link Copied to Clipboard