> I've been messing with a small AFK snippet I found on a Circle site awhile > ago, and I have it working fine, with a couple of my "modifications" <g>. > Anyways, I don't want people running around with AFK flags on, so I went > into interpreter.c and tried to find where I could add in a REMOVE_BIT for > the AFK flag, so that when they did something it would go off. I could not > find this spot, I tried where the AFF_HIDE bit was removed, but that > caused me to get a "You are no longer AFK." message each time I typed > something. So I added an if check, making it look like this: > > if (PRF_FLAGGED(ch, PRF_AFK) > REMOVE_BIT(PRF_FLAGS(ch), PRF_AFK) > Im not sure but this is a thought to having the afk flag removed upon them doing something: if(PRF_FLAGGED(ch,PRF_AFK) { if(cmd){ REMOVE_BIT(PRF_FLAGS(ch), PRF_AFK); } } This is just idea as to where you would put the check, hmmm. Abram +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST