You are going to need to have an update function in update.c, have it called every half-second or something, and just put a call to do_jog in it. It'll look something like this.
[code]
void jog_update(void)
{
CHAR_DATA *wch;
for( wch = char_list; wch != NULL; wch = wch->next)
if(IS_AWAKE(wch) && ch->position == POS_STANDING)
do_jog(ch, ch->jogdata);
}
[/quote]
then in update_handler, make sure your update is getting called every 3 pulses or something. maybe copy the aggr_update framework, thats close enough
I am not claiming thats going to work perfectly or anything, its just to get you started with something working, if you can find a better implementation go with that.
|