public boolean sendActivePetitionMessage(L2PcInstance player, String messageText)
{
//if (!isPlayerInConsultation(player))
//return false;
CreatureSay cs;
for(Petition currPetition : getPendingPetitions().values())
{
if(currPetition == null)
{
continue;
}
if(currPetition.getPetitioner() != null && currPetition.getPetitioner().getObjectId() == player.getObjectId())
{
cs = new CreatureSay(player.getObjectId(), Say2.PETITION_PLAYER, player.getName(), messageText);
currPetition.addLogMessage(cs);
currPetition.sendResponderPacket(cs);
currPetition.sendPetitionerPacket(cs);
cs = null;
return true;
}
if(currPetition.getResponder() != null && currPetition.getResponder().getObjectId() == player.getObjectId())
{
cs = new CreatureSay(player.getObjectId(), Say2.PETITION_GM, player.getName(), messageText);
currPetition.addLogMessage(cs);
currPetition.sendResponderPacket(cs);
currPetition.sendPetitionerPacket(cs);
cs = null;