Id: 2486; Nick: Jqson; Timestamp: 2007-12-09 08:51:09; Pasted as: mIRC
Description: basis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
on $*:text:/^\*/:#:{ 
  var %cmd = $mid($1,2)
  If %cmd == help {
    timerone 1 0 notice $nick Help list
    timertwo 1 1 notice $nick topic cmd: *topic <text> (This will change the topic and save it)
    timerthree 1 2 notice $nick refresh cmd: *refresh (This will load the topic)
    timerfour 1 3 notice $nick remove cmd: *remove (This will remove the saved topic)
  }
  elseif %cmd == topic {
    remove topic $+ $chan $+ .txt
    write topic $+ $chan $+ .txt $2-
    topic $chan $2-
    timerpm 1 1 notice $nick topic saved.
    timerpm2 1 2 notice $nick to reset the topic, use *refresh
  } 
  elseif %cmd == refresh { 
    topic $chan $read(topic $+ $chan $+ .txt))
    notice $nick topic from channel $chan resetted.
  } 
  elseif %cmd == remove {
    remove topic $+ $chan $+ .txt
    notice $nick database: removed $chan $+ 's topic
    topic $chan Warning: Topic from $chan has been removed.. To save it again, Use *topic <text>
  }
}
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)
Nothing to see here.