Skip to content

JAVA PRObLem!

Featured Replies

Hello ka8os anoiga to eclipse na paw na Peraso ena javacode tou Ventic to perano ola ok...vlepw to EnterWorld to arxeio error..alla auto den to pira3a..gt den evala tipota mesa.t ginete?mhpws 3erei kaneis?

Ποιοό Java code του Ventic?

δείξε μας μια pic με το error σου.

  • Author

nato...

 

88183040.png

 

 

kai na o code

Index: /Server/Ventic's_IL_GS/java/net/sf/l2j/Config.java

===================================================================

--- /Server/Ventic's_IL_GS/java/net/sf/l2j/Config.java (revision 331)

+++ /Server/Ventic's_IL_GS/java/net/sf/l2j/Config.java (revision 332)

@@ -307,4 +307,5 @@

    public static boolean  ENABLE_PMREFUSAL_COMMAND;

    public static boolean  ANNOUNCE_RAID_RESPAWN;

+    public static boolean  ANNOUNCE_CASTLE_LORDS;

   

    /** Event Settings Parameters */

@@ -1706,4 +1707,5 @@

                BLOW_BACK_RATE                  = Integer.parseInt(Modifications.getProperty("BackBlow", "70"));

                ANNOUNCE_RAID_RESPAWN            = Boolean.parseBoolean(Modifications.getProperty("AnnounceRaidRespawn", "False"));

+                ANNOUNCE_CASTLE_LORDS            = Boolean.parseBoolean(Modifications.getProperty("AnnounceCastleLords", "False"));

            }

            catch (Exception e)

Index: /Server/Ventic's_IL_GS/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

===================================================================

--- /Server/Ventic's_IL_GS/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 294)

+++ /Server/Ventic's_IL_GS/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 332)

@@ -34,4 +34,5 @@

import net.sf.l2j.gameserver.datatables.MapRegionTable;

import net.sf.l2j.gameserver.handler.AdminCommandHandler;

+import net.sf.l2j.gameserver.instancemanager.CastleManager;

import net.sf.l2j.gameserver.instancemanager.ClanHallManager;

import net.sf.l2j.gameserver.instancemanager.CoupleManager;

@@ -46,4 +47,5 @@

import net.sf.l2j.gameserver.model.L2World;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

+import net.sf.l2j.gameserver.model.entity.Castle;

import net.sf.l2j.gameserver.model.entity.ClanHall;

import net.sf.l2j.gameserver.model.entity.Couple;

@@ -254,4 +256,9 @@

sendPacket(new NpcHtmlMessage(1, serverNews));

}

+

+ if (Config.ANNOUNCE_CASTLE_LORDS)

+ {

+ notifyCastleOwner(activeChar);

+ }

 

/**

@@ -521,3 +528,18 @@

    activeChar.setPledgeClass(pledgeClass);

}

+

+ private void notifyCastleOwner(L2PcInstance activeChar)

+ {

+ L2Clan clan = activeChar.getClan();

+

+ if (clan != null)

+ {

+ if (clan.getHasCastle() > 0)

+ {

+ Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle());

+ if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId()))

+ Announcements.getInstance().announceToAll("Player: " + activeChar.getName() + " Lord of: " + castle.getName() + " Castle is Now Online!");

+ }

+ }

+ }

}

Index: /Server/Ventic's_IL_GS/Settings/Modifications.properties

===================================================================

--- /Server/Ventic's_IL_GS/Settings/Modifications.properties (revision 331)

+++ /Server/Ventic's_IL_GS/Settings/Modifications.properties (revision 332)

@@ -208,4 +208,8 @@

ClanTitle = False

 

+# Announce Castle Lords

+# This script will announce the castle lords name when they log in

+AnnounceCastleLords = False

+

δώσε μου 1 λεπτό.

δώσε μου το λινκ που βρήκες αυτο τον κόδικα.

  • Author

a mn 3exaso...ton code ton exw vgalei teleios...k akoma to error..na 3erete

Μήπως πριν απο αυτό το code προσπάθησες να βάλεις κάποιον άλλον?

logiko ine re...esy pas na to valis se epilogue,eno ego to ekana gia il.

me liges allages 8a ine etimo..

Ventic den katalabes ton code ton esbise :P Apla tou emeine error egw pisteuw opws esbine tha esbise kai kati allo mazi !

Ventic den katalabes ton code ton esbise :P Apla tou emeine error egw pisteuw opws esbine tha esbise kai kati allo mazi !

aaa..ne logiko ine..

an dn exis perasi tpt alo sbisto kai 3anakane checkout

  • Author

papaditsa mhpws mporeis na mpeis sto pc mou ligo me team viewer na to deis..?gt se 4meres prepei na ton steilo sto e3wteriko :P

  • Author

enas mod as to lock mpike o Papaditsa me team viewer kai m to ftia3e :)

Guest
This topic is now closed to further replies.

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.