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

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • 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