Here's an example. I have a DLL that I wrote in VB whose assemby name was Weather and whose class was gweather. There was a function that took a string as a value. In the on START event, I have "comopen weather weather.gweather", and I wanted my DLL triggered on notices, so I have this:
on *:NOTICE:!weather*:*:{
if ($com(weather)) {
var %zip = $2
noop $com(weather,GetWeather,3,bstr,%zip)
var %weather = $com(weather).result
notice $nick %weather
echo -a $nick %weather
}
}
Let me know if you have any questions about how that works.