Skip to content

[Request] Little help

Featured Replies

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);

}

Lol, and maybe at least describe your problem a bit?

  • Author

i want open this script i Community board, but now it show me only when im write //admin_factioninfo

Still can't understand anything.

  • Author

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

Depends from your chronicle (now CB has own "server")

 

And where exactly u want to put it? (which tab of the CB)

  • Author

I have l2jserver Gracia Epilogue im want add this into CustomBBSManager.java

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.

  • Author

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 .

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)

  • Author

Hm ok.. i will test it.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.