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.
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.