Jump to content
  • 0

[Request]Playername in HTML


Question

14 answers to this question

Recommended Posts

  • 0
Posted

I don't have Eclipse here so I'll just write with what I remember.

For getting the player count:

L2World.getInstance().getAllPlayers().count;

For the HTML do something like this:

html.replace("%playerName%", getName());

  • 0
Posted

%playerName%

%npcName%

%targetName%

%playerLevel%

%targetLevel%

 

you can edit the handlers and set it to read current/max hp ... etc

  • 0
Posted

can we add the number of online players on NPC ?

Offcourse.

Just name the variable w/e you want %onlinecount% html.replace("%onlinecount%", L2World.getInstance().getAllPlayers().count);

  • 0
Posted

Just name the variable w/e you want %onlinecount% html.replace("%onlinecount%", L2World.getInstance().getAllPlayers().count);

 

:D .count?

 

.size is ;p

  • 0
Posted

Just name the variable w/e you want %onlinecount% html.replace("%onlinecount%", L2World.getInstance().getAllPlayers().count);

 

:D .count?

 

.size is ;p

Pretty much the same in this case ^^

  • 0
Posted

hmm downloaded eclipse followed the guide from l2j but i dont know how to install subversion anyone can help me with this?

Help > Software Updates > Available Software > Add Site > Add your Site.

Help > Software Updates > Available Software > Expand Subeclipse (Subversion) > Install the Required Files

Thats it ^^

  • 0
Posted

I'll try it thanks

You're welcome.

These questions should not be answered here, either at L2jFree (Where meh works) or L2j the official home of both projects, there people will be more experienced with errors,etc ^^

  • 0
Posted

%playerName%

%npcName%

%targetName%

%playerLevel%

%targetLevel%

 

you can edit the handlers and set it to read current/max hp ... etc

 

Hey i putted in the htm file %npcName%  but it doesnt work :S

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