Jump to content

ServeSATAN

Banned
  • Posts

    220
  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by ServeSATAN

  1. now work. but i told put to [/img] tag
  2. why do think my shares will use only stupid guys? and "serious" people how have good servers don't need maxcheaters....
  3. noobs you can just write //reload quest and also scripts will be reloaded
  4. can't see screens. opinion:put images in [/img] tag...
  5. guys i and all knows that i have bad java skills. i like to help people and i just create that i can. It would be good less irony...
  6. yes it mine 100% idea it's mine and i created it too
  7. Hello.today i decide to create something usefull and i create extended online command. when you type .online you can see online players online good players and evil players(if you have GvE system) online hero players online noblesse players online donator players. Credits to me. Index: lt/equal/gameserver/handler/voicedcommandhandlers/OnlinePlayers.java =================================================================== --- lt/equal/gameserver/handler/voicedcommandhandlers/OnlinePlayers.java (revision 68) +++ lt/equal/gameserver/handler/voicedcommandhandlers/OnlinePlayers.java (working copy) @@ -1,6 +1,7 @@ package lt.equal.gameserver.handler.voicedcommandhandlers; import java.sql.PreparedStatement; +import lt.equal.Config; import lt.equal.L2DatabaseFactory; import lt.equal.gameserver.network.L2GameClient; import lt.equal.gameserver.handler.IVoicedCommandHandler; @@ -20,6 +21,14 @@ if(command.equals("online")) { activeChar.sendMessage("Online Players: " + L2World.getInstance().getAllPlayersCount()); + if (Config.MOD_GVE_ENABLE_FACTION) + { + activeChar.sendMessage("Good Players: " + L2World.getInstance().getAllgoodPlayersCount()); + activeChar.sendMessage("Evil Players: " + L2World.getInstance().getAllevilPlayersCount()); + } + activeChar.sendMessage("Hero Players: " + L2World.getInstance().getAllheroPlayersCount()); + activeChar.sendMessage("Noblesse Players: " + L2World.getInstance().getAllnoblesPlayersCount()); + activeChar.sendMessage("Donator Players: " + L2World.getInstance().getAlldonatorPlayersCount()); } return true; } Index: lt/equal/gameserver/model/L2World.java =================================================================== --- lt/equal/gameserver/model/L2World.java (revision 68) +++ lt/equal/gameserver/model/L2World.java (working copy) @@ -65,6 +65,9 @@ private Map<String, L2PcInstance> _allPlayers; private Map<String, L2PcInstance> _allgoodPlayers; private Map<String, L2PcInstance> _allevilPlayers; + private Map<String, L2PcInstance> _allheroPlayers; + private Map<String, L2PcInstance> _allnoblesPlayers; + private Map<String, L2PcInstance> _alldonatorPlayers; /** L2ObjectHashMap(L2Object) containing all visible objects */ private L2ObjectMap<L2Object> _allObjects; @@ -86,6 +89,9 @@ _allPlayers = new FastMap<String, L2PcInstance>().setShared(true); _allgoodPlayers = new FastMap<String, L2PcInstance>().setShared(true); _allevilPlayers = new FastMap<String, L2PcInstance>().setShared(true); + _allheroPlayers = new FastMap<String, L2PcInstance>().setShared(true); + _allnoblesPlayers = new FastMap<String, L2PcInstance>().setShared(true); + _alldonatorPlayers = new FastMap<String, L2PcInstance>().setShared(true); _petsInstance = new FastMap<Integer, L2PetInstance>().setShared(true); _allObjects = L2ObjectMap.createL2ObjectMap(); @@ -248,7 +254,22 @@ { return _allevilPlayers.values(); } + + public Collection<L2PcInstance> getAllheroPlayers() + { + return _allheroPlayers.values(); + } + public Collection<L2PcInstance> getAllnoblesPlayers() + { + return _allnoblesPlayers.values(); + } + + public Collection<L2PcInstance> getAlldonatorPlayers() + { + return _alldonatorPlayers.values(); + } + /** * Return how many players are online.<BR> * <BR> @@ -269,7 +290,22 @@ { return _allevilPlayers.size(); } + + public int getAllheroPlayersCount() + { + return _allheroPlayers.size(); + } + public int getAllnoblesPlayersCount() + { + return _allnoblesPlayers.size(); + } + + public int getAlldonatorPlayersCount() + { + return _alldonatorPlayers.size(); + } + /** * Return the player instance corresponding to the given name.<BR> * <BR> @@ -419,6 +455,14 @@ _allevilPlayers.put(player.getName().toLowerCase(), player); } _allPlayers.put(player.getName().toLowerCase(), player); + if (((L2PcInstance) object).isHero()) + _allheroPlayers.put(player.getName().toLowerCase(), player); + + if (((L2PcInstance) object).isNoble()) + _allnoblesPlayers.put(player.getName().toLowerCase(), player); + + if (((L2PcInstance) object).isDonator()) + _alldonatorPlayers.put(player.getName().toLowerCase(), player); } // Get all visible objects contained in the _visibleObjects of L2WorldRegions
  8. ok thx for help please lock topic
  9. this is only java? no modification in client?
  10. hello maxcheaters. i have question. i want to change enchant scrolls to they take only one slot in inventory. i hope you understand what i want. p.s i'm not sure is or not this client side problem...
  11. 5967
  12. Simpe,Beutiful and Comfortable, that i like! thx for share
  13. Tested and Works! thanks for share!
  14. fixed! thx for help...
  15. yes i mean only admin can download from svn.how to do this?
  16. why? no once know this on this forum? l2jlive and l2jequal have login form i need like that
  17. i know!!!!!!!!!!!!! now life this is 20000 private static int[] NPC_LIFE_TIME = { 20000 }; but npc disappearing less when 1 minute!
  18. how? if lifetime is 20000 it's disappearing less when 1 minute!
  19. private static int[] _npcLifeTime = { 20000 }; time is in millseconds? how will be 3 minutes?
  20. i have created my space. and how to disable svn checkout for all except admin?
  21. wau thanks for this i looking this too
  22. 1.edited. 2.i can't understand, this will works? if (activeChar.isCoyote && activeChar.isAttacking) return false; if yes where add? i just want to know what method i need
  23. read this http://www.maxcheaters.com/forum/index.php?topic=164645.0
×
×
  • 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