make sure the item has the script file ID assigned to it
here is an example of one of mine
Code:
sub EVENT_ITEM_CLICK {
my $named = $client->GetName();
if($itemid == 132496 && $ulevel == 1) {
$client->NukeItem(132496);
$client->Message(327, "You have been boosted!");
quest::we(327, "$named has been boosted!!");
quest::level(70);
$client->Message(327, "Bam! Level 70!");
$client->SetAAPoints(1000);
$client->Message(327, "You now have 1000 AA points!");
} else {
$client->Message(315, "Nice try, you're too powerful to use this");
}
}
the script is script_7150.pl, so the item 132496 has to have the scriptfileid column in the items table = 7150
hope this helps