--- MarkD <[EMAIL PROTECTED]> wrote: > Hey list, > I was just thinking about ways I can optimize my mud and I thought about > removing aggr_update. What i'm wondering is whether calling a function > every time a player moves into a room with a mob in it would be better. The > function would check if the mob has the ACT_AGGRESSIVE flag set and whether > or not it should attack, etc. I'm not sure if what i'm saying would work, > but any feedback would be appreciated.
Yes, it would work fine... The only reason aggro update is in it's own timer rather than checking aggro when someone moves into the room right away is that it gives the aggro mob a chance to attack someone who is following the first person rather than always hitting the leader of a group every time... ~Kender ===== -----BEGIN GEEK CODE BLOCK----- Version 3.1 GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$ P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@ b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++ ------END GEEK CODE BLOCK------ __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/

