Confused with scripcondtion user defined

Hello All,

I’m trying to create a condition where…

  1.   If the status of the tickets changes it will notify all
    
  2.  BUT if the ticket status is changed to “resolved” it will not send out a notification to all but instead let the “Ticket Resolved” scrip be used.
    

I’ve read the below page and still can not figure out with my very limited Perl skill.

http://wiki.bestpractical.com/index.cgi?WriteCustomAction

Can’t figure out how to use…

perldoc /opt/rt3/lib/RT/ScripCondition.pm.

This electronic mail message contains information belonging to PaymentOne, which may be confidential and/or legal privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronically mailed information is strictly prohibited. If you receive this message in error, please immediately notify us by electronic mail and delete this message.

Am I anywhere close to what I am trying to accomplish with the script condition below?

Notify on Ticket Status
User Defined Notify Requestors, Ccs and AdminCcs with template Transaction.
^^^^^^^^^^^^

============================================================================my $TicketStatusCondition=$self->TransactionObj;
my $ticket = $self->TicketObj;

if ($ticket->Status ne ‘resolved’) {
$TicketStatusCondition=>SetExecModule(“AnyTransaction”);
$TicketStatusCondition=>SetApplicableTransTypes(“Status”);
return(1);
}
else {
return(undef);
}
Basically trying to create “On Status Change” condition and when status is “resolved” do nothing and let resolved scrip email the requestor. If this is not done, then the requestor would get 2 emails. One the status of the ticket has changed and the other saying the ticket has been resolved.

This electronic mail message contains information belonging to PaymentOne, which may be confidential and/or legal privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronically mailed information is strictly prohibited. If you receive this message in error, please immediately notify us by electronic mail and delete this message.