If you are guested on irc, and you have this script it will change your nick to your main nick and identify using your password, that you would have to set using variables.
Typo helped a lot with this and he helped me understand the on load section.
on *:load:{
if (!%MainNick) { set %mainnick $$?="Enter your main nick." }
if (!%password) { set %password $$?*="Enter your nickserv password." }
if (!%homenetwork) { set %homenetwork $$?="Enter home server" }
}
on *:nick:{
if ($nick == $me) && (Guest isin $newnick) && ($network == %homenetwork) {
nick %mainnick
.timer 1 3 Msg Nickserv identify %password
}
}
Your missing a closing bracket and you should be combining your if's and you need to make sure a variable exists before using it when it isnt optional.
Brackets are off and you should combine if's when possible and use * instead of level 1 in the on text.
on *:nick:{
if ($nick == $me) && (Guest isin $newnick) {
nick %mainnick
.timer 1 3 Msg Nickserv identify %password
}
}
You need an On *:Load:{} with $inputs to set the two variables you use and possibly even another addition to the IF to make sure they exist before using them.