mIRC Home    About    Download    Register    News    Help

Print Thread
#215225 08/09/09 11:28 AM
Joined: Jun 2009
Posts: 8
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jun 2009
Posts: 8
I can't get this scripts to work.

on 1:text:!t *:#adsrocks: {

>

if ( $nick isop $chan || $nick ishop $chan ) {

>

set %topic $2-

>

topic $chan %topic / %status / adamchat.byethost31.com

>

write -c C:\topic.txt $2-

write -c C:\rss.txt <?xml version="1.0" ?><rss version="2.0"><channel><title>Chat Topic</title><description>The Topic of the chat at adamchat.byethost31.com </description><link> adamchat.byethost31.com </link><item><title>Topic: $2- </title><description>Topic: $2- </description><link>adamchat.byethost31.com</link></item></channel></rss>

>

run C:\createrss.bat



>

run ftp -s:C:\ftp.txt

>

}

>

}

>

>

copy C:\rss.txt C:\rss

>

del C:\rss\rss.xml

>

rename C:\rss\rss.txt rss.xml

>

EXIT

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Getting it to work means knowing what you want to achieve with the script.

However, your copy, del and rename commands are all outside the on TEXT event to begin with.

5618 #215235 08/09/09 10:08 PM
Joined: Jun 2009
Posts: 8
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jun 2009
Posts: 8
i want it to make rss feed


Link Copied to Clipboard