Jump to content
  • 0

[Request]Playername in HTML


Mitjuh

Question

14 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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 ^^

Link to comment
Share on other sites

  • 0

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 ^^

Link to comment
Share on other sites

  • 0

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 ^^

Link to comment
Share on other sites

  • 0

%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

Link to comment
Share on other sites

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...

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