if you're wanting for it to occur when a player uses a click effect, use EVENT_CLICK_CAST.
note that you will need to have the client cast a spell in the event with $client->CastSpell() or they won't be able to do anything else.
it won't show you the spell that is cast (in the case of the fireworks rack, it's "Use Ability", according to ZAM) in the event, but it will show you the itemID that was clicked.
|