L2JMobius

High Five Online Method

oRiGiNaL · 12 · 3415

Offline oRiGiNaL

  • Black Sheep
  • Knight
  • ***
    • Posts: 68
How i can put method on World.java to be available on alt+b? This is what i put on communityboard.java
https://pasteboard.co/JLVUnIW.jpg
What Method i sould put on world.java? Greetings !


Offline felipeafa

  • Knight
  • ***
    • Posts: 56
How i can put method on World.java to be available on alt+b? This is what i put on communityboard.java
https://pasteboard.co/JLVUnIW.jpg
What Method i sould put on world.java? Greetings !

Code: [Select]
World.getInstance().getPlayers().size()


Offline oRiGiNaL

  • Black Sheep
  • Knight
  • ***
    • Posts: 68
Doesn't work. I still see the html with %online%



Offline AnsS

  • Heir
  • **
    • Posts: 37
It seems you did not replace '%online%' string with the actual players number.


Offline oRiGiNaL

  • Black Sheep
  • Knight
  • ***
    • Posts: 68
Can you help me a bit to fix this? Thank's



Online gigilo1968

  • Black Sheep
  • Elder
  • ****
    • Posts: 187
    • Hi5
Delete "Players Online = " only %onLine%



Online CostyKiller

  • Distinguished King
  • *****
    • Posts: 969
If you read more carefully it says if !custom so that codes are reached only if you disable custom comm board....
You must put your code elsewhere.


Offline felipeafa

  • Knight
  • ***
    • Posts: 56
Code: [Select]
html = html.replace("%cb_online_players%", String.valueOf(World.getInstance().getPlayers().size()));


Offline oRiGiNaL

  • Black Sheep
  • Knight
  • ***
    • Posts: 68