Skip to content

[Request]Playername in HTML

Featured Replies

How can I put something like in a shop:

 

Welcome [Playername]

 

and like how many players there are online in html?

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

  • Author

I'll try thanks ;)

%playerName%

%npcName%

%targetName%

%playerLevel%

%targetLevel%

 

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

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

  • Author

ahhh k nice that I possible do know how to use :) thanks ^^

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

 

:D .count?

 

.size is ;p

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

  • Author

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

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

  • Author

I'll try it thanks

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

  • Author

Well I thought you did something with java so i thought he probably knows how to install it :P

  • Author

%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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.