baiumbg Posted November 28, 2010 Posted November 28, 2010 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
0 baiumbg Posted November 28, 2010 Author Posted November 28, 2010 Come on people :/ I need help fast. It's a live server...
0 SkyNet Posted November 28, 2010 Posted November 28, 2010 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 baiumbg Posted November 28, 2010 Author Posted November 28, 2010 haven't touched any html. And it's not one day, it's from 3 days. I just haven't posted yet.
0 baiumbg Posted November 29, 2010 Author Posted November 29, 2010 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 zeratul Posted November 30, 2010 Posted November 30, 2010 post html code... sometimes its an error inthe code...
0 baiumbg Posted November 30, 2010 Author Posted November 30, 2010 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 Tryskell Posted November 30, 2010 Posted November 30, 2010 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.
0 baiumbg Posted December 1, 2010 Author Posted December 1, 2010 Damn I'm an idiot -.- I made it <= _maxlvl because I had set 85 max lvl and in my server no one is lower :D Problem Solved. Request Lock.
Question
baiumbg
I can't see the Join button. I can only see this:
And no Join button...
P.S. I'm using l2jfree
9 answers to this question
Recommended Posts