User Control Panel
|
|
|
 |
Advertisements
|
 |
|
|
|
HELP US, HELP YOU!
|
| Author |
Message |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Wed Apr 07, 2004 6:44 pm Post subject: |
|
|
I just got this idea because I saw that names of fraternities and stuff use greek alphabet names like "Pi kappa alpha" and stuff.
So anyhow, I made this command that returns 3 random Greek letters.
| Code: | | # COMMAND NAME:<br /># GREEK<br /># DESCRIPTION:<br /># Get a random Greek alphabet name!<br /># COMPATIBILITY:<br /># FULLY COMPATIBLE<br /><br />sub greek {<br /> my ($self,$client,$msg,$listener) = @_;<br /><br /> # The Greek alphabet.<br /> my @alpha = (<br /> "alpha",<br /> "beta",<br /> "gamma",<br /> "delta",<br /> "epsilon",<br /> "zeta",<br /> "eta",<br /> "theta",<br /> "iota",<br /> "kappa",<br /> "lambda",<br /> "mu",<br /> "nu",<br /> "xi",<br /> "omicron",<br /> "pi",<br /> "rho",<br /> "sigma",<br /> "tau",<br /> "upsilon",<br /> "phi",<br /> "chi",<br /> "psi",<br /> "omega",<br /> );<br /><br /> # Get three words.<br /> my $one = $alpha [ int(rand(scalar(@alpha))) ];<br /> my $two = $alpha [ int(rand(scalar(@alpha))) ];<br /> my $three = $alpha [ int(rand(scalar(@alpha))) ];<br /><br /> # Return the result.<br /> return "$one $two $three";<br />}<br />1; |
_________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Wed Apr 07, 2004 6:55 pm Post subject: |
|
|
hope you dont mind but here it is in maya
| Code: | | if ($msg eq "greek") {<br /><br />my @alpha = (<br /> "alpha",<br /> "beta",<br /> "gamma",<br /> "delta",<br /> "epsilon",<br /> "zeta",<br /> "eta",<br /> "theta",<br /> "iota",<br /> "kappa",<br /> "lambda",<br /> "mu",<br /> "nu",<br /> "xi",<br /> "omicron",<br /> "pi",<br /> "rho",<br /> "sigma",<br /> "tau",<br /> "upsilon",<br /> "phi",<br /> "chi",<br /> "psi",<br /> "omega",);<br /><br />my $a = $alpha [ int(rand(scalar(@alpha))) ];<br />my $b = $alpha [ int(rand(scalar(@alpha))) ];<br />my $c = $alpha [ int(rand(scalar(@alpha))) ];<br /><br />&send($self,"$a $b $c");<br /><br />} |
|
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Wed Apr 07, 2004 7:00 pm Post subject: |
|
|
and andromeda :
| Code: | | sub greek<br />{ <br /> my ($bot, $self, $user, $msg) = @_;<br /><br /><br /><br /># The Greek alphabet.<br />my @alpha = (<br /> "alpha",<br /> "beta",<br /> "gamme",<br /> "delta",<br /> "epsilon",<br /> "zeta",<br /> "eta",<br /> "theta",<br /> "iota",<br /> "kappa",<br /> "lambda",<br /> "mu",<br /> "nu",<br /> "xi",<br /> "omicron",<br /> "pi",<br /> "rho",<br /> "sigma",<br /> "tau",<br /> "upsilon",<br /> "phi",<br /> "chi",<br /> "psi",<br /> "omega",<br />);<br /><br /># Get three words.<br />my $one = $alpha [ int(rand(scalar(@alpha))) ];<br />my $two = $alpha [ int(rand(scalar(@alpha))) ];<br />my $three = $alpha [ int(rand(scalar(@alpha))) ];<br /><br /># Return the result.<br />return "$one $two $three";<br />}<br />1<br />{<br /> Category => ':PFunny stuff', <br /> Usage => ['yomama <-- tells you a yo mama joke',],<br /> Description => 'A random greek alphabet name', <br />}; |
|
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Wed Apr 07, 2004 7:01 pm Post subject: |
|
|
| Instead use if($msg =~ /^geek/) { At the top |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Wed Apr 07, 2004 7:11 pm Post subject: |
|
|
geek ?? why would i use geek 
meh i like it so it has to be exact |
|
| Back to top |
|
 |
virus101 Young One

Joined: 17 Mar 2004 Posts: 72
   
|
Posted: Wed Apr 07, 2004 7:37 pm Post subject: |
|
|
Umm, nice command, but one thing... dazzy.. *lazy* code...
| Quote: | { Category => ':PFunny stuff', Usage => ['yomama <-- tells you a yo mama joke',], Description => 'A random greek alphabet name', }; |
umm... yomama is the usage? LMAO.... forgot to change that i think..
Good job to everyone its interestin,  |
|
| Back to top |
|
 |
|
|