mIRC Home    About    Download    Register    News    Help

Print Thread
#18108 05/04/03 08:21 AM
Joined: Mar 2003
Posts: 49
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2003
Posts: 49
1)How i do something like that:
When i write !setname [nick] [name]
like !setname SnakeRulez MasteR
the bot write in ini file called NamesPass.ini :
[Names]
SnakeRulez=Master
2)When someone type in query message !register [Password]
like !register 1234
the bot write in the ini file called NamesPass.ini :
[Passwords]
SnakeRulez=1234
and when someone that the bot know his name joined the bot write
Welcome [name] ($nick) to # ,enjoy!
and if i am join
Welcome MasteR (SnakeRulez) to #talks ,enjoy!
and if the nick have a password the bot write him in private
Identify yoursely type !identify <Your password>
and the people who has joined and write !identify <my password> need to do this only 1 time in a day
and if the bot doesnt know his name the bot write
Welcome $nick to # ,enjoy
and when someone register in the bot
like me
the bot write in ini file called Status.ini:
SnakeRulez=Normal
and after 1 month the bot change it to
SnakeRulez=Regular
and all time after month the bot change that
Help me do that PLeasE
frown frown frown frown

#18109 05/04/03 12:25 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help on text
/help /writeini
/help $readini
/help on join
/help access levels


Code:
//if ( khaled isgod ) echo yes | else echo no
#18110 05/04/03 10:47 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Here's a start.

/auser 1000 <nickname>

on 1000:TEXT:!setname*:#: { //writeini -n filename.ini Names $$?="Nickname" $$?="User status"

Now, read the help files. wink

#18111 05/04/03 11:05 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Slade, one error..

When a user types it, the bot will have the popup.. Try this..

Code:
on 1:START: {
  /auser 10 $me
}
on 10:TEXT:!setname*:#: {
  if ($$2 ison $chan) &amp;&amp; ($3 != $null) {
    /writeini -n file.ini Names $$2 $$3
    /msg $chan User Added ( $+ $$2 $+ ) as $$3
  }
  else {
     /msg $chan Error (Invalid Syntax): !setname &lt;user&gt; &lt;name&gt;
  }
}


Again, just add the user's whom you want o have access by doing /auser 10 <name> and you'll be all set.


-KingTomato

Link Copied to Clipboard