Jump to content

`NeverMore

Legendary Member
  • Posts

    4,036
  • Credits

  • Joined

  • Last visited

  • Days Won

    17
  • Feedback

    100%

Everything posted by `NeverMore

  1. i mean you should report this sh1T to moderators topic! dunno if you have access tho ...
  2. just google "free games template" and you find this template easy
  3. no way dude ;) Images loads via crests that makes this bot un-bypassable
  4. H5 H5 H5 H5 H5 H5 H5 H5 H5 H5 H5 High pvp server
  5. this is your check if (Config.ALLOW_QUAKE_PVP && (isInsideZone(ZONE_PVP))) in L2PcInstance.java
  6. no no its not look completely same with mine :D http://maxcheaters.com/forum/index.php?topic=236260.0
  7. if(player.isInsideZone(ZoneId.PVP)) { //bla bla } This is for H5 tho (unstable)
  8. thats the unique thing of this system that doesnt need any database connection since it saves namesr's status on a .txt file
  9. downloading right now ! lets eee ! i am gonna edit my comment
  10. you can also just compile a STABLE version and "leach" the way or reading the zone id's ! That will be a temp solution to your prob
  11. i gonna bypass this survey and download ! thanks man !
  12. ### 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 9) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -23,6 +23,7 @@ import net.sf.l2j.gameserver.datatables.MapRegionTable; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.datatables.SkillTable.FrequentSkill; +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; @@ -34,6 +35,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; @@ -110,6 +112,7 @@ activeChar.sendPacket(new PledgeSkillList(activeChar.getClan())); notifyClanMembers(activeChar); notifySponsorOrApprentice(activeChar); + Announcements(activeChar); // Add message at connexion if clanHall not paid. ClanHall clanHall = ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan()); @@ -250,6 +253,35 @@ activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town); } + public static void Announcements(L2PcInstance activeChar) + { + if (activeChar.isHero()) + { + Announcements.announceToAll("Hero "+activeChar.getName()+" has been logged in."); + return; + } + + /** + * + * if (activeChar.isVip()) + * { + * Announcements.announceToAll("VIP "+activeChar.getName()+" has been logged in."); + * return; + * } + * + */ + + L2Clan clan = activeChar.getClan(); + + if (clan != null) + { + if (clan.hasCastle()) + { + Castle castle = CastleManager.getInstance().getCastleById(clan.getCastleId()); + if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId())) + { + Announcements.announceToAll("Lord " + activeChar.getName() + " ruler of " + castle.getName() + " castle is now online!"); + return; + } + } + } + } + private static void engage(L2PcInstance cha) { int _chaid = cha.getObjectId(); something like this ! This way everytime that enters a check will return (aka will not continue to the next checks of the method)
  13. so if some1 is Hero and owner of a castle (leader) we will get 2 announcments since there are no "return;" in your mothod ! Good try .. keep trying
×
×
  • Create New...