mIRC Home    About    Download    Register    News    Help

Print Thread
A
Athenlayjoshr
Athenlayjoshr
A
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]

B
Belhifet
Belhifet
B
Why do you want it written to a text file?

Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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.
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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