Jump to content
  • 0

[Request] Little help


Question

Posted

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

}

10 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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

 

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

  • 0
Posted

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
Posted

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
Posted

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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