Jump to content
  • 0

[Help] TVT/CTF/DM participation problem


Question

Posted

I can't see the Join button. I can only see this:

 

CTF Match

Current event...
... description
... reward

There are %% players blabla...

 

And no Join button...

 

P.S. I'm using l2jfree

9 answers to this question

Recommended Posts

  • 0
Posted

its don't excuse that u go over the rules ^^

 

your players won't die because they don't have 1 day no auto events...

 

so its the htm? did u chance somethings anywhere ?

  • 0
Posted

someone? :/ I'm starting to get frustrated with this problem :( Sorry about double-posting twice but this is a problem on a live server and people are starting to leave

  • 0
Posted

There is no html. It's only in java. I can paste you the html part of the script though (the whole function) :) :

 

public static void showEventHtml(L2PcInstance eventPlayer, String objectId)

{

try

{

NpcHtmlMessage adminReply = new NpcHtmlMessage(5);

 

L2TextBuilder replyMSG = L2TextBuilder.newInstance("<html><body>");

replyMSG.append("TvT Match<br><br><br>");

replyMSG.append("Current event...<br1>");

replyMSG.append("    ... name: <font color=\"00FF00\">" + _eventName + "</font><br1>");

replyMSG.append("    ... description: <font color=\"00FF00\">" + _eventDesc + "</font><br>");

if (Config.TVT_ANNOUNCE_REWARD)

replyMSG.append("    ... reward: (" + _rewardAmount + ") " + ItemTable.getInstance().getTemplate(_rewardId).getName() + "<br>");

 

if (!_started && !_joining)

replyMSG.append("<center>Wait till the admin/gm start the participation.</center>");

else if (Config.TVT_EVEN_TEAMS.equals("SHUFFLE") && !checkMaxPlayers(_playersShuffle.size()))

{

if (!TvT._started)

{

replyMSG

.append("<font color=\"FFFF00\">The event has reached its maximum capacity.</font><br>Keep checking, someone may crit and you can steal their spot.");

}

}

else if (eventPlayer.isCursedWeaponEquipped() && !Config.TVT_JOIN_CURSED)

{

replyMSG.append("<font color=\"FFFF00\">You can't participate in this event with a cursed Weapon.</font><br>");

}

else if (!_started && _joining && eventPlayer.getLevel() >= _minlvl && eventPlayer.getLevel() < _maxlvl)

{

if (_players.contains(eventPlayer) || checkShufflePlayers(eventPlayer))

{

if (Config.TVT_EVEN_TEAMS.equals("NO") || Config.TVT_EVEN_TEAMS.equals("BALANCE"))

replyMSG.append("You are already participating in team <font color=\"LEVEL\">" + eventPlayer.as(TvTPlayerInfo.class)._teamNameTvT + "</font><br><br>");

else if (Config.TVT_EVEN_TEAMS.equals("SHUFFLE"))

replyMSG.append("You are already participating!<br><br>");

 

replyMSG.append("<table border=\"0\"><tr>");

replyMSG.append("<td width=\"200\">Wait till event start or</td>");

replyMSG.append("<td width=\"60\"><center><button value=\"remove\" action=\"bypass -h npc_" + objectId

+ "_tvt_player_leave\" width=50 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></center></td>");

replyMSG.append("<td width=\"100\">your participation!</td>");

replyMSG.append("</tr></table>");

}

else

{

replyMSG.append("You want to participate in the event?<br><br>");

replyMSG.append("<td width=\"200\">Your level : <font color=\"00FF00\">" + eventPlayer.getLevel() + "</font></td><br>");

replyMSG.append("<td width=\"200\">Min level : <font color=\"00FF00\">" + _minlvl + "</font></td><br>");

replyMSG.append("<td width=\"200\">Max level : <font color=\"00FF00\">" + _maxlvl + "</font></td><br><br>");

 

if (Config.TVT_EVEN_TEAMS.equals("NO") || Config.TVT_EVEN_TEAMS.equals("BALANCE"))

{

replyMSG.append("<center><table border=\"0\">");

 

for (String team : _teams)

{

replyMSG.append("<tr><td width=\"100\"><font color=\"LEVEL\">" + team + "</font> (" + teamPlayersCount(team) + " joined)</td>");

replyMSG.append("<td width=\"60\"><button value=\"Join\" action=\"bypass -h npc_" + objectId + "_tvt_player_join " + team

+ "\" width=50 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td></tr>");

}

 

replyMSG.append("</table></center>");

}

else if (Config.TVT_EVEN_TEAMS.equals("SHUFFLE"))

{

replyMSG.append("<center><table border=\"0\">");

 

for (String team : _teams)

replyMSG.append("<tr><td width=\"100\"><font color=\"LEVEL\">" + team + "</font></td>");

 

replyMSG.append("</table></center><br>");

 

replyMSG.append("<button value=\"Join\" action=\"bypass -h npc_" + objectId

+ "_tvt_player_join eventShuffle\" width=50 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">");

replyMSG.append("Teams will be randomly generated!");

}

}

}

else if (_started && !_joining)

replyMSG.append("<center>TvT match is in progress.</center>");

else if (eventPlayer.getLevel() < _minlvl || eventPlayer.getLevel() > _maxlvl)

{

replyMSG.append("Your level : <font color=\"00FF00\">" + eventPlayer.getLevel() + "</font><br>");

replyMSG.append("Min level : <font color=\"00FF00\">" + _minlvl + "</font><br>");

replyMSG.append("Max level : <font color=\"00FF00\">" + _maxlvl + "</font><br><br>");

replyMSG.append("<font color=\"FFFF00\">You can't participate in this event.</font><br>");

}

// Show how many players joined & how many are still needed to join

replyMSG.append("<br>There are " + _playersShuffle.size() + " player(s) participating in this event.<br>");

if (_joining)

{

if (_playersShuffle.size() < _minPlayers)

{

int playersNeeded = _minPlayers - _playersShuffle.size();

replyMSG.append("The event will not start unless " + playersNeeded + " more player(s) joins!");

}

}

replyMSG.append("</body></html>");

adminReply.setHtml(replyMSG.moveToString());

eventPlayer.sendPacket(adminReply);

 

// Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet

eventPlayer.sendPacket(ActionFailed.STATIC_PACKET);

}

catch (Exception e)

{

_log.warn("TvT Engine[showEventHtlm(" + eventPlayer.getName() + ", " + objectId + ")]: exception", e);

}

}

  • 0
Posted

if (!_started && !_joining)
            replyMSG.append("<center>Wait till the admin/gm start the participation.</center>");

 

It's not obvious for you to think you have to start manually the thing ?

 

There are players level checks too (min and max).

 

----

 

Made me laugh (devs are bitches lol).

 

Keep checking, someone may crit and you can steal their spot.

Guest
This topic is now closed to further replies.


  • Posts

    • Really? Really Completely? Completely We're sorry too. It's been a great way of 10 years, and we are grateful to you for every activation you made. All the details about the closure are available on the website.    Important! The SMS-Activate brand no longer exists. There appear websites that duplicate our name — these are scammers, we have no connection to them. If you receive messages from “SMS-Activate employees”, be sure it's a scam. Currently, our technical support is only processing withdrawals from balances.
    • We are entering another season, the year 2026, which marks 20 years since the beginning of preparations for the first Chronicle server - Gracia Final.     The plans are the same as 20 years ago: to prepare a new generation of the game with the help of our edited game client, New Era.   There will be special new locations and dungeons for solo players and clans, clan quests and a clan shop, as well as special items and jewelry with attributes.     Enjoy the game at Dark Dragon             https://www.darkdragon.club/wp-content/uploads/2025/12/Dark_Dragon_login_New_Era.mp4    
    • Coming soon — New Year promotions across the entire SOCNET ecosystem We are preparing special offers, bonuses, and surprises across all our projects. Follow updates on our social media — you definitely don’t want to miss them. News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh
    • Coming soon — New Year promotions across the entire SOCNET ecosystem We are preparing special offers, bonuses, and surprises across all our projects. Follow updates on our social media — you definitely don’t want to miss them. News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh
  • Topics

×
×
  • 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