$client->GetDeity() is the object you need. Here is an example of its usage:
Code:
sub EVENT_SAY {
$deity = $client->GetDeity();
if($text=~/Hail/i && $deity == 207){
quest::summonitem(66172);
}
}
Here is a list of the Deity values:
http://www.eqemulator.net/wiki/wikka...akka=DeityList