paloske Posted February 4, 2011 Posted February 4, 2011 posibble to do that for this script do not need any command? im talking about that if (command.startsWith("Admin_factioninfo")) HERE SCRIPT : if (command.startsWith("Admin_factioninfo")) { for (Faction fac : FactionManager.getInstance().getFactions().values()) { int kiek = 0; for (L2PcInstance plr : L2World.getInstance().getAllPlayers().values()) { if (plr.getFactionId() == fac.getId()) kiek++; } activeChar.sendMessage("ID: " + fac.getId() + " Name: " + fac.getName() + " Players: " + L2World.getInstance().getFactionOnline()[fac.getId()] + " Is Tikro: " + kiek); }
0 Matim Posted February 4, 2011 Posted February 4, 2011 Lol, and maybe at least describe your problem a bit?
0 paloske Posted February 4, 2011 Author Posted February 4, 2011 i want open this script i Community board, but now it show me only when im write //admin_factioninfo
0 paloske Posted February 4, 2011 Author Posted February 4, 2011 This script what im posted show how many and in what faction players online in game, but script show when im wrote //admin_factioninfo I want that this script work on cummunity board :) How now? :P
0 Matim Posted February 4, 2011 Posted February 4, 2011 Depends from your chronicle (now CB has own "server") And where exactly u want to put it? (which tab of the CB)
0 paloske Posted February 4, 2011 Author Posted February 4, 2011 I have l2jserver Gracia Epilogue im want add this into CustomBBSManager.java
0 Matim Posted February 4, 2011 Posted February 4, 2011 Just check how does it work (yes you will have to add new "command") Or just take a look how does REGION tab work (there are some info such as online etc) You can easily add your stats there.
0 paloske Posted February 4, 2011 Author Posted February 4, 2011 but how can i change this row if (command.startsWith("Admin_factioninfo")), that script show in BBS? I can show u all .java file if you need .
0 Matim Posted February 4, 2011 Posted February 4, 2011 I just told you, check how does other tabs works (bypasses) And compare them with bypasses from CB htm files, and you will understand everything (hope so)
Question
paloske
posibble to do that for this script do not need any command?
im talking about that if (command.startsWith("Admin_factioninfo"))
HERE SCRIPT :
10 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