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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...