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

    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store ✅ ➡ Our SMM-Boosting Panel: socnet.pro ✅ ➡ Telegram Shop Bot: 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: 79051904467✅ ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ✅ ➡ Email Support: solomonbog@socnet.store ✅
    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store ✅ ➡ Our SMM-Boosting Panel: socnet.pro ✅ ➡ Telegram Shop Bot: 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: 79051904467✅ ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ✅ ➡ Email Support: solomonbog@socnet.store ✅
    • https://www.l2jbrasil.com/topic/149147-daily-reward-tested-on-l2jsunrise/  to h5 sunrise
    • https://www.l2jbrasil.com/topic/149147-daily-reward-tested-on-l2jsunrise/   
    • A lot of people say L2 is dead, and ACIS is still in development. But seriously, you’ve got the skills and knowledge why not make your own game with a clean brand new client from scratch? The only thing missing is client devs, and you can find plenty here or on freelance sites. Stop treating it like a hobby and turn it into something that can actually make money and people happy, you have the name just move forward, even AI can help you script quests, me first I would totally play any game you made similar to l2 anyway 🍪 have one i know you like them
  • 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