HouseMD Posted May 1, 2007 Share Posted May 1, 2007 (edited) This script is nothing special, but its short and effective. This scripts sends the persons alias to a admin when they join, so no-fooling for a person that can read fast! on *:SIGNAL:mta.join: { var %pma = 0,%ID = $2 while (%pma <= $mta.server($1).cmax) { if ($gus.level($1,%pma) >= 4) { if (%pma != %ID) mta.pm $1 %pma Alias for $mta.nick($1,%ID) $+ : $iif($readini($scriptdir $+ alias.ini,ALIAS,$mta.ip($1,%ID)),$v1,Not Found) } !inc %pma } } This is for GUS script, you can change it to make it work with PRS. Edited May 2, 2007 by Guest Link to comment
Scooby Posted May 2, 2007 Share Posted May 2, 2007 u should always preview it b4 u post... noone can use that like that Link to comment
HouseMD Posted May 2, 2007 Author Share Posted May 2, 2007 thanks scoob, didn't know HTML could cause this Link to comment
Scooby Posted May 2, 2007 Share Posted May 2, 2007 well i didnt know either till i realised some while loops wouldnt post. Link to comment
SanZoR Posted May 2, 2007 Share Posted May 2, 2007 i think you know that there are some noobs what couldnt edit anything. So, i make this script for PRS. There it goes: on *:SIGNAL:mta.join: { var %pma = 0,%ID = $2 while (%pma <= $mta.server($1).cmax) { if ($mta.level($1,%pma) >= 2) { if (%pma != %ID) mta.pm $1 %pma Alias for $mta.nick($1,%ID) $+ : $iif($readini($scriptdir $+ alias.ini,ALIAS,$mta.ip($1,%ID)),$v1,Not Found) } !inc %pma } } Btw, as you can see, i put this only for lvl 2 admins... Link to comment
Scooby Posted May 2, 2007 Share Posted May 2, 2007 i think you know that there are some noobs what couldnt edit anything. So, i make this script for PRS. There it goes: on *:SIGNAL:mta.join: { var %pma = 0,%ID = $2 while (%pma <= $mta.server($1).cmax) { if ($mta.level($1,%pma) >= 2) { if (%pma != %ID) mta.pm $1 %pma Alias for $mta.nick($1,%ID) $+ : $iif($readini($scriptdir $+ alias.ini,ALIAS,$mta.ip($1,%ID)),$v1,Not Found) } !inc %pma } } Btw, as you can see, i put this only for lvl 2 admins... This isnt for PRS, wont work so dont bother... editing 1 or 2 words doesnt make u any better... Link to comment
HouseMD Posted May 5, 2007 Author Share Posted May 5, 2007 in Prs, Don't you have $prs.level or something... so if u you want it for PRS, just change the $gus.level to $prs.level Link to comment
Scooby Posted May 5, 2007 Share Posted May 5, 2007 in Prs, Don't you have $prs.level or something... so if u you want it for PRS, just change the $gus.level to $prs.level thats not the problem, the part that writes the aliases to this ini in GUS is not in PRS. of course the line could be changed. Link to comment
HouseMD Posted May 5, 2007 Author Share Posted May 5, 2007 ok... how about this... on *:SIGNAL:mta.join: { var %pma = 0,%ID = $2 while (%pma <= $mta.server($1).cmax) { if ($mta.level($1,%pma) >= 2) { if (%pma != %ID) mta.pm $1 %pma $iif(!$hget(prsalias,$mta.ip($1, %ID)),No Aliases Found For $mta.nick($1, %ID), $mta.nick($1, %ID) $+ 's Aliases: $replace($hget(prsalias,$mta.ip($1, %ID)),$chr(44),$chr(32), $mta.nick($1, %ID),$null)) } !inc %pma } } This should be for PRS, but i'll let Scooby check it Link to comment
HouseMD Posted May 5, 2007 Author Share Posted May 5, 2007 oh good... Because i thought i was about to lose touch with my scriptive side Link to comment
Recommended Posts