Jump to content

Theonegandalf

Members
  • Posts

    509
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Theonegandalf

  1. Awesome Mate ;D Thnx very much !!! You are the best ;)
  2. w0w ;D Very COol :P Good Work :)
  3. IF you need geodata you can't take them from here svn://l2jfree.com/repo/geodata/trunk
  4. My First Game was . . . Mario , lol ;D ! ! ! & Also Sonic At Mega Drive ( a lot of years ago ;) )
  5. Open your navicat and at L2JDB Run this query ALTER TABLE `characters` ADD `apprentice` int(1) NOT NULL DEFAULT 0 AFTER `lvl_joined_academy`;
  6. Awesome Share Vago !!!!! I was looking for it. thnx!! :)
  7. Polu Oreo Guide , Bravo , Einai Full & einai diko sou , kai periexei kai guide gia no-ip mazi ! ! ! Gratz ;)
  8. Ma8e na stelneis fishing emails se autous p exoun acc sto rs kai etc ts to kleveis ;) !!Exw klepsei kana 2-3 etc ;D
  9. Features seems very cool ^_^ ! Especially the cmds :P I'll give it a try ;D
  10. VerY CoOL Share ;D .Especially the b0w. thnx! :P
  11. Polu Orea LisT ! ! ! Good Job :P Keep Up ! ;)
  12. Try L2 Ownage ! It's a rly CoOL Server ;D
  13. Check This Btw you can also add a subclass delay , but you can do it only by Java :)
  14. It doesn't depend much on the server's pc , but in MYSQL Configurations! you can config MYSQL So it won't lag ;)
  15. LOL ;D PwNeD :D ! ! ! ! Great Collection!!! Good WOrK :P
  16. Awesome Share stef ! ! ! They are rly coOL ;D !Keep Up :)
  17. Polu oreo Guide ! ! ! Kai polu xrhsimo ! ! !.Good Job ! :)
  18. Cool ;D !!! Ala perissotero 8elo gia IL , 8a perimenw mexri na t knc share :)
  19. Polu kalo Share ! ! ! 8a voi8isei polouc :P !!Bravo ;)
  20. Very CoOL Armor :P ! Good Job m8 :) ! !
  21. Check this ;D Index: D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 933) +++ D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) @@ -36,6 +36,7 @@ import net.sf.l2j.gameserver.communitybbs.Manager.RegionBBSManager; 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.PetitionManager; import net.sf.l2j.gameserver.model.L2Clan; import net.sf.l2j.gameserver.model.L2Effect; @@ -287,7 +288,15 @@ } if (activeChar.getClan() != null) + { activeChar.sendPacket(new PledgeSkillList(activeChar.getClan())); + int castleId = CastleManager.getCharCastle(activeChar); + if (activeChar.isCastleLord(castleId) && castleId!=-1); + { + Announcements.getInstance().announceToAll("The Catle lord from " + +CastleManager.castleName(castleId)+", has Logged into the game."); + } + } RegionBBSManager.getInstance().changeCommunityBoard(); Index: D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java =================================================================== --- D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java (revision 933) +++ D:/Workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/instancemanager/CastleManager.java (working copy) @@ -26,6 +26,7 @@ import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.model.L2Clan; import net.sf.l2j.gameserver.model.L2Object; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.entity.Castle; @@ -50,7 +51,7 @@ // ========================================================= // Data Field - private List<Castle> _Castles; + private static List<Castle> _Castles; // ========================================================= // Constructor @@ -91,7 +92,7 @@ public void reload() { - this.getCastles().clear(); + CastleManager.getCastles().clear(); this.load(); } @@ -266,9 +267,56 @@ return -1; } - public final List<Castle> getCastles() + public final static List<Castle> getCastles() { if (_Castles == null) _Castles = new FastList<Castle>(); return _Castles; } + + public static int getCharCastle(L2PcInstance activeChar) + { + L2Clan clan = activeChar.getClan(); + if (clan == null) return -1; + Castle castle; + for (int i = 0; i < getCastles().size(); i++) + { + castle = getCastles().get(i); + if (castle != null && castle.getOwnerId() == clan.getClanId()) return i; + } + return -1; + + } + + public static String castleName(int id) + { + String _castleName; + if (id<1||id>9) + { + _castleName = "noCastle"; + return _castleName; + } + switch(id) + { + case 1: + return _castleName = "Gludio"; + case 2: + return _castleName ="Dion"; + case 3: + return _castleName ="Giran"; + case 4: + return _castleName ="Oren"; + case 5: + return _castleName ="Aden"; + case 6: + return _castleName ="Innadril"; + case 7: + return _castleName ="Goddard"; + case 8: + return _castleName ="Rune"; + case 9: + return _castleName ="Schuttgart"; + default: + return _castleName ="None"; + } + } } \ No newline at end of file It's from L2J Forum !!!
  22. 1.60 ? ? ? 1.95 ? ? ? ;D
  23. Nice Share Eko !!!!Pretty Useful. thnx :) !
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock