Jump to content

Kяaσh

Legendary Member
  • Posts

    4,494
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Kяaσh

  1. today i dont see any errors only down time cuz of hacks
  2. les dld na stamataei to reuse otan pe8ainei enas xarakthras?
  3. if someone kill the some character more than 1 time dont take pvp point Index: src/main/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- src/main/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 7252) +++ src/main/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -731,7 +731,9 @@ private boolean _IsWearingFormalWear = false; // Current force buff this caster is casting to a target - protected ForceBuff _forceBuff; + protected ForceBuff _forceBuff; + + private int _lastKillerId = 0; /** Skill casting information (used to queue when several skills are cast in a short time) **/ public class SkillDat @@ -4498,7 +4500,8 @@ ) ) { - increasePvpKills(); + if (targetPlayer.getLastKillerId() != getObjectId()) + increasePvpKills(); // give faction pvp points if (Config.FACTION_ENABLED && targetPlayer.getSide() != getSide() @@ -4533,7 +4536,8 @@ if (clanWarKill) { // 'Both way war' -> 'PvP Kill' - increasePvpKills(); + if (targetPlayer.getLastKillerId() != getObjectId()) + increasePvpKills(); return; } @@ -4550,6 +4554,7 @@ increasePkKillsAndKarma(targetPlayer.getLevel()); } } + targetPlayer.setLastKillerId(getObjectId()); } /** @@ -11194,4 +11199,14 @@ public void updateFOSTitleFlag(){ FortressSiege.setTitleSiegeFlags(this); } + + public final int getLastKillerId() + { + return _lastKillerId; + } + + public final void setLastKillerId(int id) + { + _lastKillerId = id; + } } credits Savormix // Check if it's pvp String attacker = getClient().getConnection().getInetAddress().getHostAddress(); String attacked = targetPlayer.getClient().getConnection().getInetAddress().getHostAddress(); if (attacker.equals(attacked)) { sendMessage("What you though? You cannot use dumb exploit's NOOB!"); return; } if ( ( checkIfPvP(target) && // Can pvp and targetPlayer.getPvpFlag() != 0 // Target player has pvp flag set ) || // or ( isInsideZone(ZONE_PVP) && // Player is inside pvp zone and targetPlayer.isInsideZone(ZONE_PVP) // Target player is inside pvp zone ) ) { increasePvpKills(); } else // Target player doesn't have pvp flag set { // check about wars if (targetPlayer.getClan() != null && getClan() != null) { if (getClan().isAtWarWith(targetPlayer.getClanId())) { if (targetPlayer.getClan().isAtWarWith(getClanId())) { // 'Both way war' -> 'PvP Kill' increasePvpKills(); return; } } } // 'No war' or 'One way war' -> 'Normal PK' if (attacker.equals(attacked)) { sendMessage("What you though? You cannot use dumb exploit's NOOB!"); return; } else if (targetPlayer.getKarma() > 0) // Target player has karma { if ( Config.KARMA_AWARD_PK_KILL ) { increasePvpKills(); } } else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma { if (attacker.equals(attacked)) { sendMessage("What you though? You cannot use dumb exploit's NOOB!"); return; } Osiris Code
  4. analoga ta class p einai pio balanced se ka8e server
  5. t kanonika parabiazeis lei p 8ena kanas kanonas oti dn mporeis na dineis tin clan hahah
  6. Adventure lol 10000 fores kaluteros
  7. F1 Curse Gloom F2 Death spike F3 Vamp Claw F4 Vortex F5 Anchro F6 Silence F7 Cp Potions F8 Warrior Bane F9 Mage Bane F10 Healing Potion F11 Mp Potion F12 Heal
  8. 192.168.1.1 nat/virtual server kai gg
  9. i tested this pack cuz i was interested the best IL Pack
  10. Finally :D
  11. Thnx Bro For The Sig ;)
  12. BRO Thnx a lot <3
  13. Kala Xristougenna
  14. One Of The Best Interlude Servers asapz0r JOIN!
  15. i can close your server with many things ;) btw you have server and you dont know the noobish error? :S.......
  16. noob? :S
  17. i don't know you are a good dev :)
  18. i mean i can crash your server hello? login is down gameserver is down?
  19. y amazing 1 attack and is down :P j1maras22 Pro Dev :D
  20. Server Closed -Locked
  21. you must find a new mmocore file and you can edit it
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..