Thats because if the player isn't attacking anybody and is being attacked case 73 still isn't called. You would have to find a way around it.
|
Dear rune-server members,
My server has 50% pvp and i want to make it better, it has one really stupid bug, When player attacks other player the player ho Gets attacked if he doesnt do anything like attack back, others can attack him too.
If it's needed heres 1v1 code from case 73:
Code:if (AttackingOn2.attackingPlayerId != playerId && AttackingOn2.attackingPlayerId != 0) { sendMessage("That player is already in combat."); attackingPlayerId = 0; ResetAttack(); break; }
Thats because if the player isn't attacking anybody and is being attacked case 73 still isn't called. You would have to find a way around it.
Or you can just make the client that is attacking set a variable on the client he is attacking.
Search for the method - ResetAttack, if this is with an uppercase R then your case isn't called, other way... if your method is "resetAttack" with a lowercase 'r' then you gotta make it resetAttack(); in your if statement.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |