Skin created by Amberon. Find more great skins at the IF Skin Zone.



 

 I/O with mIRC scripting, Text File I/O
Devourer09
Posted: Apr 18 2005, 11:24 AM


Newbie


Group: Members
Posts: 6
Member No.: 12
Joined: 17-April 05



I don't really understand how the whole mIRC scripting input output thing works... huh.gif If someone could show me a simple script of a script writing to a file, like a conversation logger, which I already know exists but for the sake of example, and a simple script reading info from a text file like a list of hello's or greetings when someone says hello to a bot or something. Is I/O even really possible?? Well, if someone could do that that'd be really awesome and nice and I'll give them a reward however the reward system works on this board. smile.gif
Top
Mike-sama
Posted: Apr 18 2005, 04:46 PM


Your God


Group: Admin
Posts: 89
Member No.: 1
Joined: 8-April 05



well hmm, lesse, you could make a very simple convo logger by using something like
CODE
on *:text:*:*:{
 .write text.txt  $1-
}

Which will make the file text.txt and write everything down, well except what you say, 'cause remotes won't work that way :\ which can suck at times.. bleh..

an' for the whole hello thingy lol this should work
CODE
on *:TEXT:Hello bot:*: {
.msg $chan $read(greetings.txt) $nick $+ !
}

of course in order for it to work correctly you'll need the file greetings.txt or whatever txt file you want it to read from. and each of the diffrent greetings has to be on a diffrent line like..
QUOTE
Hello
hey
wassup?
yo!

violent002.gif
Top


Topic Options



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.5463 seconds | Archive