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

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

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

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