mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2014
Posts: 1
C
c4ldd Offline OP
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Sep 2014
Posts: 1
I am new to mIRC coding and don't know how to make this script. I want it to pull info from a .txt file. It would be a code that pulls information for people's records. I want it to be like:

user:!p playera(s)
bot: playera's (s) record is 100

user:!p playera(b)
bot: playera's (b) record is 230

user:!p playerb(s)
bot: playerb's (s) record is 120

the .txt file is setup like
playerb(a) 100
playerb(b) 230
playerb(c) 123

with multiple players and 7 different categories or (x)s


Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
/help $read
Example:
Code:
on *:text:!p &:#: { 
var %player $2
if ($read(textfile.txt,ns,%player)) { 
msg # %player $+ 's record is $v1
}
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You may want to use an ini files instead of plain text:

/help writeini
/help $readini


Link Copied to Clipboard