Do you have qglobals turned on for the npc in question? Also the brackets on your event_item are not correct :p
I think this will work (maybe :p) #edit I flipped them which should work :p
Code:
sub EVENT_ITEM {
if(plugin::check_handin(\%itemcount, 29762 => 2, 9758 => 2)) {
if(defined $qglobals{"bb2"}){
$client->Message(4,"Thank you very much, now I can continue my research with a full belly!");
quest::summonitem(11460);
} else {
quest::say("Oh my... that is soo delicious!");
quest::setglobal("bb2", 1, 5, "F");
$client->Message(0,"You've earned an AA point!");
$client->AddAAPoints(5);
quest::say("Very generous of you! Now I shall be!");
quest::summonitem(11460);
quest::ding();
}
}
elsif(plugin::check_handin(\%itemcount, 29762 => 1, 9758 => 1)) {
if(defined $qglobals{"bb1"}){
$client->Message(4,"Thank you very much, now I can continue my research with a full belly!");
quest::summonitem(10276);
} else {
quest::say("Oh my... that is soo delicious!");
quest::setglobal("bb1", 1, 5, "F");
$client->AddAAPoints(1);
$client->Message(0,"You've earned an AA point!");
quest::summonitem(10276);
}
}
plugin::return_items(\%itemcount);
}