I want to be able to add colorbars for callup to IcyBot's script with !addbar colorbargoeshere callupcommand

So

Code:
!addbar 11,0"¼0,11¼»12,11"¼11,12¼»2,12"¼12,2¼»2,2"¼2,2¼»10,2"¼2,10¼»10,10%%%%%%0 Master Mpot 10,10%%%%%%2,10"¼10,2¼»2,2"¼2,2¼»12,2"¼2,12¼»11,12"¼12,11¼»0,11"¼11,0¼» -mpot


and the bot would write
Code:
on 1:TEXT:-mpot:#:msg $chan 11,0"¼0,11¼»12,11"¼11,12¼»2,12"¼12,2¼»2,2"¼2,2¼»10,2"¼2,10¼»10,10%%%%%%0 Master Mpot 10,10%%%%%%2,10"¼10,2¼»2,2"¼2,2¼»12,2"¼2,12¼»11,12"¼12,11¼»0,11"¼11,0¼» halt


to the last line of the file. If there's text on the last line, it'd need to create a new line on the bottom and write that one in.

The .mrc is called Callup Banners.mrc and is located in C:\IcyBot\Scripts

Also, can you write it as a on TEXT, with the access level instead of one being addbar? Thanks!

(I could probably do it myself, but I can't seem to figure out hte command. I know one if $read, but I tried /help $write and got nothing.)
d

EDIT: Tinkered some, is it:

Code:
on addbar:TEXT:!addbar*:#: /write C:\IcyBot\Scripts on 1:text:- $+ $$2:#:msg $chan $$1 | halt

halt


?

Last edited by Mpot; 19/09/07 11:58 PM.