on LO:TEXT:*:#:{
var %c = $strip($2), %cc = $strip($1)
if (!%c) && (%cc == !cords) {
.privmsg $chan 4Let me explain how to use this command real quick.
.privmsg $chan 4This is a multi-command. Meaning it has more then one use. To save space in my data base.
.privmsg $chan 4Its very simple to use. So heres how to use it with examples:
.privmsg $chan 4!cords -a/-u/+a/+h/-h/-ah the -a, -u, +a, +h, -h, are sub-commands to the command.
.privmsg $chan 0Examples: !cords -a Will show all the cords of every user by for 4Example: Adolf 150:1600 in my data base.
.privmsg $chan 0!cords -u [Player's Name] Will show only the cords for that player.
.privmsg $chan 0!cords +a [Player's Name] [Cords] Will add a user's cords to my data base. 4Example: Adolf 150:1600 This would now be logged in my data base for later use.
.privmsg $chan 0!cords +h [Player's Name] [Cords] This will add the user to my known hits for that cord.
.privmsg $chan 0!cords -h [Player's Name] This will show the cords hit on the player.
.privmsg $chan 0Note any cords shown 9in0 have already been hit. Those shown 4in0 have not been hit.
}
if (%cc == !cords) && (%c == -a) {
.privmsg $chan Pulling up all the names in my data base...
var %x = 1, %l = $ini($cf,Lords,0)
while (%x <= %l) {
var %n = $ini($cf,Lords,%x), %c = $readini($cf,Lords,%n)
.timer 1 $calc(%x + 2) /privmsg $chan %n $+ 's Cords are: %c
inc %x
}
.timer 1 $calc(%x + 3) /privmsg $chan All the cords in my data base $nick <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' />
}
if (%cc == !cords) && (%c == -u) {
if ($3) {
var %h = $readini($cf,Hits,$3), %n = $readini($cf,Lords,$strip($3))
if (%n) { .privmsg $chan $3 $+ 's cords are:4 %n }
elseif (!%n) { .privmsg $chan $3 isnt on my data base sorry. }
}
}
if (%cc == !cords) && (%c == +a) {
var %n = $3, %c = $readini($cf,Lords,%n), %c = %c $4- $+ $chr(32)
if (%n) { .writeini $cf Lords %n %c | .privmsg $chan The cords for %n have been added to my data base. $4- has been added to %c }
}
if (%cc == !cords) && (%c == -h) {
var %n = $3, %c = $readini($cf,Hits,%n)
.privmsg $chan %n $+ 's cords that have been hit are: %c
}
if (%cc == !cords) && (%c == +h) {
var %n = $3, %cord = $strip($4-), %cord = %cord $readini($cf,Lords,%n) $+ $chr(32)
if (%n) && (%cord) {
.writeini $cf Hits %n $hits(%cord)
.privmsg $chan %n $+ 's cords have been added to hitlist.
}
}
}
is the full code I still cant seem to figure out how to add the color tags he wanted.