mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2011
Posts: 3
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Apr 2011
Posts: 3
I am trying to make a script that you type !settopic (topic here) it then creates a file with what the user inputted BUT it creates the file name with their channel. Then for !topic it checks if there is a file with the channel name then it says the topic.
Example: Lets say Bob(mod of channel) wants to create a topic and his channel is called Bob's Corner. He would type !settopic Just Hanging Out , it then puts Just Hanging Out in a .txt file named Bob's Corner.txt since that is his channel name. Then when someone types !topic in his channel it looks for the file called Bob's Corner.txt since someone said it in his channel. I am doing this so the bot I am making can be in multiple channels and can set different topics for each one. Also make it so only if your a mod of the channel you can only set a topic. Thank you for whoever helps laugh

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
What particular part is troubling you?

For the basics:
/help on text
/help if-then-else (especially at "isop")

and, as I recommend to use a single .ini file instead of multiple text files:
/help /writeini
/help $readini

Joined: Apr 2011
Posts: 3
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Apr 2011
Posts: 3
Originally Posted By: Horstl
What particular part is troubling you?

For the basics:
/help on text
/help if-then-else (especially at "isop")

and, as I recommend to use a single .ini file instead of multiple text files:
/help /writeini
/help $readini


I need help on the entire script, idc what method is used, just as long as it works smile Can you please help me?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Your request, or the same request by someone else using this same name on a different help network, and the various answers and suggestions can be found here


Link Copied to Clipboard