;Greet Script on *:TEXT:!greets *:#: { if ($nick isop $chan || $nick ishop $chan) { if (!$2) { notice $nick To set greets on For Channel type !greets on to turn off type !greets off. | halt } if ($2 == !on||!off) { notice $nick Syntax : Setgreet on !greets on, Setgreet off !greets off. | halt } if ($2 == on) { if ($readini(chanset.ini,$chan,greet) == on) { notice $nick Greets are already on for $chan | halt } if ($readini(chanset.ini,$chan,greet) == $null || $readini(chanset.ini,$chan,greet) == off) { notice $nick Greets turned on for $chan $+ . writeini chanset.ini $chan greet on | halt } } if ($2 == off) { if ($readini(chanset.ini,$chan,greet) == off) { notice $nick Greets are already off for $chan | halt } if ($readini(chanset.ini,$chan,greet) == $null || $readini(chanset.ini,$chan,greet) == on) { notice $nick Greets turned off for $chan $+ . writeini chanset.ini $chan greet off | halt } } else { notice $nick You need Halfop or Op to set greets on or off } } } on *:TEXT:!setgreet*:#:{ if (*$* iswm $2) { notice $nick Dont Use Identifier in Greet Scripts | echo -s Identifier used in setgreet Script by $nick | Halt } if (!$2) { notice $nick Please Set a Greet. | HALT } if ($2 == off) && ($readini(greets.ini,$nick,pgreet) == off) { notice $nick Your Greets are already turned off. | halt } if ($2 == off) { notice $nick You have Set your Greet off writeini greets.ini $nick pgreet off halt } if ($2 == on) && ($readini(greets.ini,$nick,pgreet) == on) { notice $nick You Greets are already turned on. | halt } if ($2 == on) { notice $nick You have set your Greet on writeini greets.ini $nick pgreet on halt } else { writeini greets.ini $nick pgreetg $2- writeini greets.ini $nick pgreet on notice $nick You Personal Greet Has been Changed to: $2- } } on *:JOIN:#:{ if ($nick == $me) { Halt } if ($chan == #bots) { halt } if ($readini(greets.ini,$nick,pgreet) == $null) { notice $nick You Have not set a greet type !setgreet (greet message). | HALT } if ($readini(greets.ini,$nick,pgreet) == off) { notice $nick Your Greet has been Turned off Type !setgreet on to turn on Your Greet message. | halt } if ($readini(chanset.ini,$chan,greet) == on) { if ($readini(greets.ini,$nick,pgreet) == on) { msg $chan [ iSony Bot Greets - $nick ] $readini(greets.ini,$nick,pgreetg) $+ . | halt } else { Halt } } }