Just make a check if people are within x and y they can attack him otherwise not...
|
Hello Rune-Server,
Everyone in my server is abusing this safespot, and im not gonna ban people for it lol.
So how do i fix this safespot?
Help would be appreciated verry much.
Remco
Like reader said, you can do something like
and then go to CombatAssistant.java and findCode:Public boolean inCorpZone() { return( c.absX > x && c.absX< x && c.absY > y && c.absY < y); }
and add something likeCode:if (armaNpc(i) && !usingCross && !usingBow && !c.usingMagic && !usingCrystalBow() && !usingOtherRangeWeapons) { resetPlayerAttack(); c.sendMessage("You can only use mage or range aramadyl NPCs"); return; }
Or simply remove the gates.Code:if (Server.npcHandler.npcs[i].npcType == 8133 && !inCorpZone()) { resetPlayerAttack(); c.sendMessage("Nice Try"); return; }
Thanks guys, have it fixed, well the Corp can still attack you when outside of the cage, i have to look at that later.
Thanks to everyone=]
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |