Dragon Blade Posted July 14, 2013 Posted July 14, 2013 My members were really annoyed about getting attacked every secound. So I decided to create a little thing to attack.php Its a limit You can only attack 1 person 3 times every 30 minute. Add this in attack.php - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Dragon Blade Posted July 14, 2013 Author Posted July 14, 2013 Well wouldn't call it a modfication, more of a little addon, thanks :) Quote
Dominion Posted July 15, 2013 Posted July 15, 2013 I believe thats what you want to use. The other one will make it so NO ONE can attack them but 3 times in 30 minutes. Either way could work but not clear on which you want because your message says one thing and the code another. But good luck :) PS: I have no clue if "attackedby" is the name of that in your database, so it may need to be updated to whatever is the equivalent. I believe it's "attacker" and "attacked". Quote
dnenb Posted July 15, 2013 Posted July 15, 2013 Nice way of solving this, Dragon Bade. I implemented attack turns in my game, that you get a certain amount of every 5 min, but I might add this as well. Quote
Dragon Blade Posted July 15, 2013 Author Posted July 15, 2013 This is my DB for attacklogs... log_id attacker attacked result time stole attacklog Quote
newttster Posted July 16, 2013 Posted July 16, 2013 Rather than limit the number of times a player can be hit by others ... why not implement a system that the player can use to protect themselves instead? Quote
KyleMassacre Posted July 16, 2013 Posted July 16, 2013 systems like this are a double edge blade if you ask me. You are never going to make people happy because this protects the weak people so the strong people get all pissy. If you don't have something like this then the weak people are the one complaining "I can't play the game cause I'm always in the hospital". The whole object of these games is to kick some butt so I tend to steer away from these types of things and if people don't like the way you have your game set up oh well its not for them. And this is where gangs come into play. I once played a game where if you attacked an online player and you guys were both in a gang it was automatic wartime so people thought twice about onlining another player. What you can possibly do is if you have a gang event system store the attack logs in those if the player attacked is online and send an event to both gangs or to the gang leaders that way they know what is going on and make it hell for the player being a bad ass. If their presidents dont do anything then its fair game for a war Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.