Skip to content

[help] Java Code

Featured Replies

Hello pedia epsaksa gia ores sto mxc gia javacoding ke vrika kati paromio me afto pou ithela alla de vrika akrivos afto pou thelw , bori na min epsaksa arketa alla tha ithela na me help giati de mporw alo psaksimo :P, thelw ena javacode to opio na min safini na pernis pvp point otan ine same ip , opws sas ipa vrika kati paromio alla oxi afto.paraxeno giati ine poli xrisimo code !

if (getClient().getConnection().getSocket().getInetAddress().getHostAddress().equals(targetPlayer.getClient().getConnection().getSocket().getInetAddress().getHostAddress())
      return;

Se pio java arxeio prepei na mpei kai pou akrivos mporis na me dieukolinis?

 

Index: L2PcInstance.java
===================================================================
--- L2PcInstance.java	(revision 15)
+++ L2PcInstance.java	(working copy)
@@ -5823,6 +5823,9 @@
	 */
	public void increasePvpKills(L2Character target)
	{
+      if (getClient().getConnection().getSocket().getInetAddress().getHostAddress().equals(targetPlayer.getClient().getConnection().getSocket().getInetAddress().getHostAddress())
+      return;
+
		if (target instanceof L2PcInstance
				&& AntiFeedManager.getInstance().check(this, target))
		{

  • Author

eisai sigouros oti doulevei to code? giati to addara sto l2jserver gracia final mou kai mou vgazei error ...

ksanakitakse to ligo  kai sto l2pcinstance mou den iparxi line

public void increasePvpKills(L2Character target)

  • Author

to exw ksanadei aftos o kodikas safini mono mia fora na perneis pvp ton adipalo egw thelw na min perneis pvp otan einai same ip , ton exw dei afton ton kodika file ,parolafta efxaristo pou endiaferthikes na voithiseis !!!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.