mIRC Home    About    Download    Register    News    Help

Print Thread
#30509 18/06/03 12:09 AM
Joined: Jun 2003
Posts: 3
Z
Ziplin Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Jun 2003
Posts: 3
I have been writing an IRC, what I call an "ass puppet" for a few days now. Basically, I can remotely control it as if I was sitting there at the computer. Now dont start going all freaky on me, this isnt a war bot. I just use him for entertainment and Chan control and so forth.

Anyway, I am away from home alot with my laptop, and I love to play with my "bot". However, I frequently get annoyed because I notice a scripting error or think "this would be nice!" and I cant do anything about it. Well, what I want to do is write a simple script that will enable me to upload and activate my scripts without using anything fancy, and I ran into a stumbling block.

What I need to know is how to write to a file, like a .txt or a .dll. This would be tremendously useful. Thank you so much. Perhaps when I am done, someone may like to use it.


-Zipity do dah! Zipity day!
#30510 18/06/03 12:18 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
to write to a text file u can use /write , like:
/write file.txt text
this will write to a new line in the file
u also can write to a dll with /bwrite , like:
/bwrite file.dll -1 text
this will append to the file


#30511 18/06/03 12:19 AM
Joined: Jun 2003
Posts: 3
Z
Ziplin Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Jun 2003
Posts: 3
thanks man, im gonna try that now


-Zipity do dah! Zipity day!
#30512 18/06/03 12:32 AM
Joined: Jun 2003
Posts: 3
Z
Ziplin Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Jun 2003
Posts: 3
ok, call me a retard, but what is the ON command for a pm? dont know exactly what its called, but /msg nick message will do it or double-clicking their nick.

I am so stupid.


-Zipity do dah! Zipity day!
#30513 18/06/03 12:39 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
if u mean "the event for when some1 private msg u"
so the event is:
on *:text:something:?:{ command }
"?" means it's a pm

#30514 18/06/03 01:53 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:TEXT:something[color:red]*[/color]:?: { command }
on ^*:OPEN:*:?: { command }


Link Copied to Clipboard