PDA

View Full Version : Scripting quuestion :)


SparHawk
19-05-2001, 14:45
Ive been messing about trying to make an mirc bot (more through boredom than any real need :|).

What I want is for it to remember peoples nicks and a little about them, i.e if I said "whois Sparhawk" the bot would reply with it's comments on me :). I also want to be able to set/change comments for all people in the channel.

Is this possible, and does anyone have a script I could play with. I'm pretty new to this scripting lark so go easy on meh! :P

Deathwish2000
19-05-2001, 14:53
Have you tried YourBot3.1?

Download it here Yourbot3.1 (http://www.dwbots.co.uk/yb31.zip)

SparHawk
19-05-2001, 17:40
Oooo ta, after a litle playing i got it working :)

GameGuru
19-05-2001, 18:22
In mIRC scripting dynamic variables, that is a variable that is created by an identifier such as $nick (which returns the nickname of the person that caused the event) can be created by double evaluating the identifier. for example if u wanted to create an variable that a nick caused to be made u'd create a variable like this:

set %var. [ $+ [ $nick ]] variable contents

If you called an event for that to occur and your nickname was SparHawk the variable above would read:

%var.SparHawk variable contents

Thats the basis for creating auth names and passwords for users, when creating a mIRC bot. There are probably better ways, but its the one I use :)