Here's an example using a Cloth Cap turn-in.
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1001 => 1)) {
my $platinum = quest::ChooseRandom(1..10);
quest::givecash(0, 0, 0, $platinum);
plugin::Whisper("Thank you for the Cloth Cap, here is $platinum Platinum.");
}
}