Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
MoMoProxy has updated more static residential proxies for USA location, anyone interested in can view: https://momoproxy.com/static-residential-proxies
Question
TEOGR_hItMaKeR
Βρήκα αυτόν τον κώδικα
### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 173) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -27,6 +27,7 @@ import net.sf.l2j.gameserver.datatables.AdminCommandAccessRights; import net.sf.l2j.gameserver.datatables.MapRegionTable; import net.sf.l2j.gameserver.datatables.SkillTable; +import net.sf.l2j.gameserver.instancemanager.CastleManager; import net.sf.l2j.gameserver.instancemanager.ClanHallManager; import net.sf.l2j.gameserver.instancemanager.CoupleManager; import net.sf.l2j.gameserver.instancemanager.DimensionalRiftManager; @@ -38,6 +39,7 @@ import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.L2Character; 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; import net.sf.l2j.gameserver.model.entity.Siege; @@ -223,6 +225,11 @@ if (serverNews != null) sendPacket(new NpcHtmlMessage(1, serverNews)); } + + if (Config.ANNOUNCE_CASTLE_LORDS) + { + notifyCastleOwner(activeChar); + } PetitionManager.getInstance().checkPetitionMessages(activeChar); @@ -321,4 +328,18 @@ { return "[C] 03 EnterWorld"; } + 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("Lord " + activeChar.getName() + " Of " + castle.getName() + " Castle is now online!"); + } + } + } } \ No newline at end of file Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 173) +++ java/net/sf/l2j/Config.java (working copy) @@ -80,6 +80,7 @@ public static boolean ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE; public static boolean ALT_MEMBERS_CAN_WITHDRAW_FROM_CLANWH; public static boolean REMOVE_CASTLE_CIRCLETS; + public static boolean ANNOUNCE_CASTLE_LORDS; /** Manor */ public static int ALT_MANOR_REFRESH_TIME; @@ -717,6 +718,7 @@ ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE = Boolean.parseBoolean(clans.getProperty("AltNewCharAlwaysIsNewbie", "False")); ALT_MEMBERS_CAN_WITHDRAW_FROM_CLANWH = Boolean.parseBoolean(clans.getProperty("AltMembersCanWithdrawFromClanWH", "False")); REMOVE_CASTLE_CIRCLETS = Boolean.parseBoolean(clans.getProperty("RemoveCastleCirclets", "True")); + ANNOUNCE_CASTLE_LORDS = Boolean.parseBoolean(clans.getProperty("AnnounceCastleLords", "false")); ALT_MANOR_REFRESH_TIME = Integer.parseInt(clans.getProperty("AltManorRefreshTime", "20")); ALT_MANOR_REFRESH_MIN = Integer.parseInt(clans.getProperty("AltManorRefreshMin", "00")); Index: config/clans.properties =================================================================== --- config/clans.properties (revision 173) +++ config/clans.properties (working copy) @@ -37,6 +37,9 @@ #Remove Castle circlets after a clan lose its castle or a player leaves a clan? - default true RemoveCastleCirclets = True +# Announce castle lords on enter game? - default false +AnnounceCastleLords = False + #============================================================= # Manor Config #=============================================================Και καθώς προσπαθούσα να τον περάσω στο acis 367 μου έβγαζε έρρορ σε αυτά τα σημεία
εδώ
και εδώ ...
Sorry αλλά είμαι λίγο newbie σαυτά ...
Έχω αλλάξει το l2pcinstance σε player παρεπιπτόντως
Αν κάποιος μπορεί να με βοηθήσει !
Here is the code at pastebin https://pastebin.com/TKzBDwk6 made by sweets Ο κώδικας στο πάστεμπιν από τον sweets
Edited by TEOGR_hItMaKeR22 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now