Jump to content

Question

Posted

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?

15 answers to this question

Recommended Posts

  • 0
Posted

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

+

  • 0
Posted

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

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

  • 0
Posted

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

  • 0
Posted

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

me liges allages 8a ine etimo..

  • 0
Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...