mIRC Home    About    Download    Register    News    Help

Print Thread
#94292 15/08/04 08:50 AM
Joined: Jan 2004
Posts: 16
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
How can I turn someones nick into a variable?

In other words, if someone interacts with a bot in any way basically, I'd like to be able to inc and dec a variable that has the same name as their nick for easy retreival later on.

#94293 15/08/04 08:57 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
if i understand you correctly, then you can do that by:
/set $nick %nick
$nick can be replace by the actual nick (ie. if your typing it in yourself) along with other identifiers such as $2

#94294 15/08/04 10:38 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
What you want it,

inc $+(%,$nick) 1

Increases a variable called, for example, %SuppyMappy

Eamonn.

#94295 15/08/04 10:29 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
If you have other variables it might be safer to use something like
inc $+(%,botcount.,$nick)
to avoid situations where someone has a nick that makes a %var from another script increase...


Link Copied to Clipboard