Thread: Need new event
View Single Post
  #14  
Old 02-21-2004, 08:20 PM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

Every mob does not send an HP update packet every second. It really starts when their HP < 100% (or when first engaged, have to double-check).

Also, a perl script isn't really "run" in the sense that it keeps reading these scripts off of the disk. They are compiled when loaded, and remain in memory for the duration of the package, afaik. This isn't taking into account exported variables, of course.

I hadn't thought of Lurker's idea. If the script timers are working well, that doesn't sound bad at all. We could export a variable that would say whether the mob was engaged or not, and when EVENT_TIMER was triggered, it could disable based on that.

On a side note, one of the things I don't like is the amount of variables exported. I have XS code that will work in terms of creating functions that can be called from perl, and receive a return value. You still would need to have a module.pm file somewhere for it to be able to deal with it, however. But this would eliminate some overhead.
Reply With Quote