HouseMD Posted May 1, 2007 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
Scooby Posted May 2, 2007 Posted May 2, 2007 u should always preview it b4 u post... noone can use that like that
Scooby Posted May 2, 2007 Posted May 2, 2007 well i didnt know either till i realised some while loops wouldnt post.
SanZoR Posted May 2, 2007 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...
Scooby Posted May 2, 2007 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...
HouseMD Posted May 5, 2007 Author 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
Scooby Posted May 5, 2007 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.
HouseMD Posted May 5, 2007 Author 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
HouseMD Posted May 5, 2007 Author Posted May 5, 2007 oh good... Because i thought i was about to lose touch with my scriptive side
Recommended Posts