mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2014
Posts: 26
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Dec 2014
Posts: 26
Hey i want to commands and i don't know how to do them.
First command:
!editcom ip [Text]
Whatit does is removes all the text from a .txt and writes what ever is in the [Text]
Second Command:
!ip [Displays whats in the .txt]

Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Why do you want it written to a text file?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on *:text:!editcom ip *:#: write -c ip.txt $3- 
on *:text:!ip:#: msg # $iif($read(ip.txt,n),$v1,No ip recorded)
Thank you Wims, may or may not have written this without actually checking what I've written. Doesn't help that I'm usually using size 14 in the scripts editor and this size is a bit too small for my eyesight :P

Last edited by Nillen; 31/01/15 01:26 PM.

Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
You have a typo on 'text' and you're not using the 'n' switch on your $read, making this code an exploit!


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard