PDA

View Full Version : Thief suggestion


mykes
03-10-2005, 03:03 AM
I'm guessing this is a good place to make a suggestion.

When someone tries to steal from you, you get a timer set that makes you invulnerable from theft for that period of time.

This is to prevent a user from repeatedly thieving from another.

I'm not a PHP coder, but the logic is this:

It's one more table field for the timer.

if (user_timer > current_time) {
can_be_thefted();
user_timer = current_time + 10 minutes; // write user_timer to database user table
}
else {
error_can't_be_thefted_yet();
}

At worst, one query to check the timer. I'd make the '10 minutes" an option in admincp.

sim tech
03-27-2005, 07:06 PM
That's a really good idea! I constantly have had problems with members attacking someone else over and over.

Where should this code go, and can I increase it to perhaps once every 12 hours.

Thanks for the great mod!