-
Posts
525 -
Joined
-
Last visited
-
Days Won
31 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by protoftw
-
Help Poker Game Npc
protoftw replied to protoftw's question in Request Server Development Help [L2J]
Sweets, I can't learn how to use java or anything else that has to do with it..I don't have the knowledge to adapt it...All i know is simple things...like changing the imports and some other staff that you've told me or you've posted here on maxcheaters..All I can do is ask for some help ..if someone can help me then ..great! I'd be very thankful...if anyone can't help me then I can't do sth about that...i'll just have to move on and simply skip those codes..thanks for ur time! -
Hey guys i found that code which is supposed to be at data/scripts/custom and not inserted via eclipse. There is 1 file named poker.java ..i tried to adapt it for L2JFrozen but I still got problems that I don't know how to fix..If anyone has the knowledge and the skills to do that it would be pretty nice...Here's the code: http://pastebin.com/3YDFAdhW (it was too long to post it here) Here you can see the ERRORS I get : 1. https://postimg.org/image/d9qog45bd/ 2. https://postimg.org/image/3yx7773a7/ 3. https://postimg.org/image/vfc9r2vnl/ 4. https://postimg.org/image/us7fv7td1/ 5. https://postimg.org/image/77gr6jg85/ and here is the original code posted on maxcheaters: http://www.maxcheaters.com/topic/115260-poker-game/
-
i have rev 1132 and this code is not implemented...also l2jfrozen's website is down and i can't use their codes
-
i get 1 error guys..can anyone help me? here's the image --> https://postimg.org/image/nxbnci0fv/
-
L2jFrozen Survey System Originally made for l2j I adapted it for l2jfrozen and I also changed some typing mistakes Survey System is a system where you can ask all online players a question.You can have up to 5 possible answers.Your question will be announced after you start the survey and players can have the opportunity to vote with a "yes" or a "no" , or whatever your answers will be. After installation you can use these commands: //survey_start //survey_results //survey_end And for players: use .survey to vote Preview: //survey_start: https://postimg.org/image/f73j8byt5/ //survey_results: https://postimg.org/image/cgwcuwbgz/ credits: Elfocrash ### Eclipse Workspace Patch 1.0 #P l2jelfo Index: java/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java =================================================================== --- java/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (revision 26) +++ java/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (working copy) @@ -22,6 +22,7 @@ import com.l2jfrozen.gameserver.datatables.AdminCommandAccessRights; import com.l2jfrozen.gameserver.handler.AdminCommandHandler; import com.l2jfrozen.gameserver.handler.IAdminCommandHandler; +import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminSurvey; import com.l2jfrozen.gameserver.handler.usercommandhandlers.Menu; import com.l2jfrozen.gameserver.model.L2Object; import com.l2jfrozen.gameserver.model.L2World; @@ -96,6 +97,86 @@ { playerHelp(activeChar, _command.substring(12)); } + else if (_command.equals("survey_vote1")) + { + if(AdminSurvey.running == false) + { + activeChar.sendMessage("There is no survey running now"); + return; + } + + if(activeChar.hasVotedSurvey()) + { + activeChar.sendMessage("You already voted for that survey."); + return; + } + + AdminSurvey.ans1_vote_count++; + activeChar.sendMessage("You voted : " + AdminSurvey.ans1 + ". Thanks for voting"); + } + + else if (_command.equals("survey_vote2")) + { + if(AdminSurvey.running == false) + { + activeChar.sendMessage("There is no survey running now"); + return; + } + if(activeChar.hasVotedSurvey()) + { + activeChar.sendMessage("You already voted for that survey."); + return; + } + + AdminSurvey.ans2_vote_count++; + activeChar.sendMessage("You voted : " + AdminSurvey.ans2 + ". Thanks for voting"); + } + else if (_command.equals("survey_vote3")) + { + if(AdminSurvey.running == false) + { + activeChar.sendMessage("There is no survey running now"); + return; + } + if(activeChar.hasVotedSurvey()) + { + activeChar.sendMessage("You already voted for that survey."); + return; + } + AdminSurvey.ans3_vote_count++; + activeChar.sendMessage("You voted : " + AdminSurvey.ans3 + ". Thanks for voting"); + } + else if (_command.equals("survey_vote4")) + { + if(AdminSurvey.running == false) + { + activeChar.sendMessage("There is no survey running now"); + return; + } + if(activeChar.hasVotedSurvey()) + { + activeChar.sendMessage("You already voted for that survey."); + return; + } + AdminSurvey.ans4_vote_count++; + activeChar.sendMessage("You voted : " + AdminSurvey.ans4 + ". Thanks for voting"); + } + + else if (_command.equals("survey_vote5")) + { + if(AdminSurvey.running == false) + { + activeChar.sendMessage("There is no survey running now"); + return; + } + if(activeChar.hasVotedSurvey()) + { + activeChar.sendMessage("You already voted for that survey."); + return; + } + AdminSurvey.ans5_vote_count++; + activeChar.sendMessage("You voted : " + AdminSurvey.ans5 + ". Thanks for voting"); + } else if (_command.startsWith("npc_")) { if (!activeChar.validateBypass(_command)) Index: java/com/l2jfrozen/gameserver/handler/AdminCommandHandler.java =================================================================== --- java/com/l2jfrozen/gameserver/handler/AdminCommandHandler.java (revision 26) +++ java/com/l2jfrozen/gameserver/handler/AdminCommandHandler.java (working copy) @@ -66,6 +66,7 @@ import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminSiege; import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminSkill; import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminSpawn; +import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminSurvey; import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminTarget; import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminTeleport; import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminUnblockIp; @@ -135,6 +136,7 @@ registerAdminCommandHandler(new AdminUnblockIp()); registerAdminCommandHandler(new AdminZone()); + registerAdminCommandHandler(new AdminSurvey()); } public void registerAdminCommandHandler(IAdminCommandHandler handler) Index: java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java =================================================================== --- java/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java (revision 26) +++ java/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -25,6 +25,7 @@ import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Heal; import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Online; +import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Survey; public class VoicedCommandHandler { @@ -45,6 +46,9 @@ { _datatable = new FastMap<>(); + registerVoicedCommandHandler(new Survey()); + + if (Config.ALLOW_ONLINE_VIEW) { registerVoicedCommandHandler(new Online()); Index: java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- java/com/l2jfrozen/gameserver/GameServer.java (revision 26) +++ java/com/l2jfrozen/gameserver/GameServer.java (working copy) @@ -231,7 +231,7 @@ OlympiadGameManager.getInstance(); Olympiad.getInstance(); Hero.getInstance(); + //Hide.getInstance(); Util.printSection("Four Sepulchers"); FourSepulchersManager.getInstance().init(); Index: java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminSurvey.java =================================================================== --- java/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminSurvey.java (revision 0) +++ java/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminSurvey.java (working copy) @@ -0,0 +1,739 @@ +/* + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <http://www.gnu.org/licenses/>. + */ +package com.l2jfrozen.gameserver.handler.admincommandhandlers; + +import java.util.Collection; +import java.util.StringTokenizer; + +import javolution.text.TextBuilder; + +import com.l2jfrozen.gameserver.handler.IAdminCommandHandler; +import com.l2jfrozen.gameserver.model.L2World; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.network.clientpackets.Say2; +import com.l2jfrozen.gameserver.network.serverpackets.CreatureSay; +import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; +import com.l2jfrozen.gameserver.util.Broadcast; + +/** + * + * @author Elfocrash + * + */ +public class AdminSurvey implements IAdminCommandHandler +{ + public static int options = 2; + public static int mode = 0; + public static boolean running = false; + private static boolean qset = false; + private static boolean ans1set = false; + private static boolean ans2set = false; + private static boolean ans3set = false; + private static boolean ans4set = false; + private static boolean ans5set = false; + public static String quest = ""; + public static String ans1 = ""; + public static String ans2 = ""; + public static String ans3 = ""; + public static String ans4 = ""; + public static String ans5 = ""; + public static int ans1_vote_count = 0; + public static int ans2_vote_count = 0; + public static int ans3_vote_count = 0; + public static int ans4_vote_count = 0; + public static int ans5_vote_count = 0; + + private static final String[] ADMIN_COMMANDS = + { + "admin_survey_start" , "admin_survey_results" , "admin_opmore" , "admin_opless" , "admin_survey_run1","admin_survey_run2","admin_survey_run3","admin_survey_run4", "admin_survey_qset", + "admin_survey_ans1set", "admin_survey_ans2set","admin_survey_ans3set","admin_survey_ans4set","admin_survey_ans5set", "admin_survey_end" ,"admin_survey_results" + }; + + @Override + public boolean useAdminCommand(String command, L2PcInstance activeChar) + { + if (command.equals("admin_survey_start")) + startHtml(activeChar); + + if (command.equals("admin_survey_results")) + resultsHtml(activeChar); + + + if (command.equals("admin_survey_end")) + { + running = false; + resultsHtml(activeChar); + quest = ""; + ans1 = ""; + ans2 = ""; + ans3 = ""; + ans4 = ""; + ans5 = ""; + mode = 0; + ans1_vote_count = 0; + ans2_vote_count = 0; + ans3_vote_count = 0; + ans4_vote_count = 0; + ans5_vote_count = 0; + setQset(false); + setAns1set(false); + setAns2set(false); + setAns3set(false); + setAns4set(false); + setAns5set(false); + + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); + for (L2PcInstance onlinePlayers : pls) + { + onlinePlayers.setHasVotedSurvey(false); + } + + + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The survey session is over.Thanks everyone for voting.")); + + } + + if(command.equals("admin_opmore")) + if(options <= 4) + { + options++; + startHtml(activeChar); + } + else + { + return false; + } + + if(command.equals("admin_opless")) + if(options >= 3) + { + options--; + startHtml(activeChar); + } + else + { + return false; + } + + if(command.startsWith("admin_survey_qset")) + { + if(isQset()) + { + quest = ""; + setQset(false); + startHtml(activeChar); + } + else if(!isQset()) + { + StringTokenizer s = new StringTokenizer(command); + s.nextToken(); + + try{ + + while(s.hasMoreTokens()) + quest = quest + s.nextToken() + " "; + setQset(true); + startHtml(activeChar); + + } + catch(Exception e) + { + e.printStackTrace(); + } + } + } + + if(command.startsWith("admin_survey_ans1set")) + { + if(isAns1set()) + { + ans1 = ""; + setAns1set(false); + startHtml(activeChar); + } + else if(!isAns1set()) + { + StringTokenizer s = new StringTokenizer(command); + s.nextToken(); + + try{ + + while(s.hasMoreTokens()) + ans1 = ans1 + s.nextToken() + " "; + setAns1set(true); + startHtml(activeChar); + + } + catch(Exception e) + { + e.printStackTrace(); + } + } + } + + if(command.startsWith("admin_survey_ans2set")) + { + if(isAns2set()) + { + ans2 = ""; + setAns2set(false); + startHtml(activeChar); + } + else if(!isAns2set()) + { + StringTokenizer s = new StringTokenizer(command); + s.nextToken(); + + try{ + + while(s.hasMoreTokens()) + ans2 = ans2 + s.nextToken() + " "; + setAns2set(true); + startHtml(activeChar); + + } + catch(Exception e) + { + e.printStackTrace(); + } + } + } + + if(command.startsWith("admin_survey_ans3set")) + { + if(isAns3set()) + { + ans3 = ""; + setAns3set(false); + startHtml(activeChar); + } + else if(!isAns3set()) + { + StringTokenizer s = new StringTokenizer(command); + s.nextToken(); + + try{ + + while(s.hasMoreTokens()) + ans3 = ans3 + s.nextToken() + " "; + setAns3set(true); + startHtml(activeChar); + + } + catch(Exception e) + { + e.printStackTrace(); + } + } + } + if(command.startsWith("admin_survey_ans4set")) + { + if(isAns4set()) + { + ans4 = ""; + setAns4set(false); + startHtml(activeChar); + } + else if(!isAns4set()) + { + StringTokenizer s = new StringTokenizer(command); + s.nextToken(); + + try{ + + while(s.hasMoreTokens()) + ans4 = ans4 + s.nextToken() + " "; + setAns4set(true); + startHtml(activeChar); + + } + catch(Exception e) + { + e.printStackTrace(); + } + } + } + + if(command.startsWith("admin_survey_ans5set")) + { + if(isAns5set()) + { + ans5 = ""; + setAns5set(false); + startHtml(activeChar); + } + else if(!isAns5set()) + { + StringTokenizer s = new StringTokenizer(command); + s.nextToken(); + + try{ + + while(s.hasMoreTokens()) + ans5 = ans5 + s.nextToken() + " "; + setAns5set(true); + startHtml(activeChar); + + } + catch(Exception e) + { + e.printStackTrace(); + } + } + } + + + + if(command.startsWith("admin_survey_run1")) + { + if(running == true) + { + activeChar.sendMessage("A survey is already in progress."); + return false; + } + if(!isQset() || !isAns1set() || !isAns2set()) + { + activeChar.sendMessage("You have to set all the fields before you start the survey"); + return false; + } + mode = 1; + running = true; + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","Admin started a new survey with main Question: "+ quest+". Use .survey to vote.")); + + + } + + if(command.startsWith("admin_survey_run2")) + { + if(running == true) + { + activeChar.sendMessage("A survey is already in progress"); + return false; + + } + if(!isQset() || !isAns1set() || !isAns2set() || !isAns3set()) + { + activeChar.sendMessage("You have to set all the fields before you start the survey"); + return false; + } + mode = 2; + running = true; + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","Admin started a new survey with main Question: "+ quest+". Use .survey to vote.")); + + + } + + if(command.startsWith("admin_survey_run3")) + { + if(running == true) + { + activeChar.sendMessage("A survey is already in progress"); + return false; + + } + + if(!isQset() || !isAns1set() || !isAns2set() || !isAns3set() || !isAns4set()) + { + activeChar.sendMessage("You have to set all the fields before you start the survey"); + return false; + } + mode = 3; + running = true; + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","Admin started a new survey with main Question: "+ quest+". Use .survey to vote.")); + + + } + + if(command.startsWith("admin_survey_run4")) + { + if(running == true) + { + activeChar.sendMessage("A survey is already in progress"); + return false; + + } + + if(!isQset() || !isAns1set() || !isAns2set() || !isAns3set() || !isAns4set() || !isAns5set()) + { + activeChar.sendMessage("You have to set all the fields before you start the survey"); + return false; + } + mode = 4; + running = true; + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","Admin started a new survey with main Question: "+ quest+". Use .survey to vote.")); + + + } + + return true; + } + + @Override + public String[] getAdminCommandList() + { + return ADMIN_COMMANDS; + } + + private static void startHtml(L2PcInstance activeChar) + { + NpcHtmlMessage nhm = new NpcHtmlMessage(5); + TextBuilder tb = new TextBuilder(""); + + tb.append("<html><head><title>Start Survey form</title></head><body>"); + tb.append("<center>"); + tb.append("<table width=\"250\" cellpadding=\"5\" bgcolor=\"000000\">"); + tb.append("<tr>"); + tb.append("<td width=\"45\" valign=\"top\" align=\"center\"><img src=\"L2ui_ch3.menubutton4\" width=\"38\" height=\"38\"></td>"); + tb.append("<td valign=\"top\"><font color=\"FF6600\">Start a Survey</font>"); + tb.append("<br1><font color=\"FF6600\">"+activeChar.getName()+"</font>, use this form in order to start a survey.<br1></td>"); + tb.append("</tr>"); + tb.append("</table>"); + tb.append("</center>"); + tb.append("<center>"); + if(!isQset()) + { + tb.append("<font color=\"FF6600\">Type in the main question of the survey.</font><br>"); + tb.append("<table border=\"0\" width=\"250\" height=\"16\" bgcolor=\"000000\">"); + tb.append("<tr><td><multiedit var=\"quest\" width=170 height=20></td><td><a action=\"bypass -h admin_survey_qset $quest\">Save</a></td></tr></table>"); + } + if(isQset()) + { + tb.append("<font color=\"FF6600\">The question set is:<br>"); + tb.append("<table border=\"0\" width=\"250\" height=\"16\" bgcolor=\"000000\">"); + tb.append("<tr><td><font color=\"FF0000\">" + quest+"</font></td><td><a action=\"bypass -h admin_survey_qset\">Edit</a></td></tr></table>"); + } + tb.append("<br><font color=\"FF6600\">Possible answers."); + tb.append("<table border=\"0\" width=\"70\" height=\"16\" bgcolor=\"000000\">"); + tb.append("<tr>"); + tb.append("<td width=\"52\">More</td>"); + tb.append("<td width=\"16\"><button action=\"bypass -h admin_opmore\" width=16 height=16 back=\"L2UI_CH3.upbutton_down\" fore=\"L2UI_CH3.upbutton\"></td>"); + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td width=\"52\">Less</td>"); + tb.append("<td width=\"16\"><button action=\"bypass -h admin_opless\" width=16 height=16 back=\"L2UI_CH3.downbutton_down\" fore=\"L2UI_CH3.downbutton_down\"></td>"); + tb.append("</tr>"); + tb.append("</table>"); + tb.append("<table width=\"300\" height=\"20\">"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 1:</td>"); + if(!isAns1set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans1\" width=150 height=16></td>"); + tb.append("<td><a action=\"bypass -h admin_survey_ans1set $ans1\">Save</a></td>"); + } + else if(isAns1set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans1 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans1set\">Edit</a></td>"); + } + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 2:</td>"); + if(!isAns2set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans2\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans2set $ans2\">Save</a></td>"); + } + else if(isAns2set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans2 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans2set\">Edit</a></td>"); + } + tb.append("</tr>"); + if(options == 3) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + if(!isAns3set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans3\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans3set $ans3\">Save</a></td>"); + } + else if(isAns3set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans3 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans3set\">Edit</a></td>"); + } + tb.append("</tr>"); + } + if(options == 4) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + if(!isAns3set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans3\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans3set $ans3\">Save</a></td>"); + } + else if(isAns3set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans3 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans3set\">Edit</a></td>"); + } + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 4:</td>"); + if(!isAns4set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans4\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans4set $ans4\">Save</a></td>"); + } + else if(isAns4set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans4 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans4set\">Edit</a></td>"); + } + tb.append("</tr>"); + } + if(options == 5) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + if(!isAns3set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans3\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans3set $ans3\">Save</a></td>"); + } + else if(isAns3set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans3 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans3set\">Edit</a></td>"); + } + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 4:</td>"); + if(!isAns4set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans4\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans4set $ans4\">Save</a></td>"); + } + else if(isAns4set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans4 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans4set\">Edit</a></td>"); + } + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 5:</td>"); + if(!isAns5set()) + { + tb.append("<td align=\"center\" width=\"150\"><multiedit var=\"ans5\" width=150 height=16></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans5set $ans5\">Save</a></td>"); + } + else if(isAns5set()) + { + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + ans5 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h admin_survey_ans5set\">Edit</a></td>"); + } + tb.append("</tr>"); + } + tb.append("</table><br>"); + if(options == 2) + tb.append("<button value=\"Start the survey\" action=\"bypass -h admin_survey_run1\" width=150 height=22 back=\"L2UI_Ch3.bigbutton3_over\" fore=\"L2UI_Ch3.bigbutton3\">"); + if(options == 3) + tb.append("<button value=\"Start the survey\" action=\"bypass -h admin_survey_run2\" width=150 height=22 back=\"L2UI_Ch3.bigbutton3_over\" fore=\"L2UI_Ch3.bigbutton3\">"); + if(options == 4) + tb.append("<button value=\"Start the survey\" action=\"bypass -h admin_survey_run3\" width=150 height=22 back=\"L2UI_Ch3.bigbutton3_over\" fore=\"L2UI_Ch3.bigbutton3\">"); + if(options == 5) + tb.append("<button value=\"Start the survey\" action=\"bypass -h admin_survey_run4\" width=150 height=22 back=\"L2UI_Ch3.bigbutton3_over\" fore=\"L2UI_Ch3.bigbutton3\">"); + tb.append("</center>"); + tb.append("</body></html>"); + + nhm.setHtml(tb.toString()); + activeChar.sendPacket(nhm); + } + + private static void resultsHtml(L2PcInstance activeChar) + { + NpcHtmlMessage nhm = new NpcHtmlMessage(5); + TextBuilder tb = new TextBuilder(""); + + tb.append("<html><head><title>Survey form</title></head><body>"); + tb.append("<center>"); + tb.append("<table width=\"250\" cellpadding=\"5\" bgcolor=\"000000\">"); + tb.append("<tr>"); + tb.append("<td width=\"45\" valign=\"top\" align=\"center\"><img src=\"L2ui_ch3.menubutton4\" width=\"38\" height=\"38\"></td>"); + tb.append("<td valign=\"top\"><font color=\"FF6600\">Survey</font>"); + tb.append("<br1><font color=\"FF6600\">"+activeChar.getName()+"</font>, here are the survey's results.<br1></td>"); + tb.append("</tr>"); + tb.append("</table>"); + tb.append("</center>"); + tb.append("<center>"); + tb.append("<font color=\"FF6600\">The question set is:<br>"); + tb.append("<font color=\"FF0000\">" + AdminSurvey.quest+"</font></center>"); + tb.append("<br><font color=\"FF6600\">Choose an answer."); + tb.append("<table width=\"300\" height=\"20\">"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 1:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans1 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans1_vote_count+ "</font></td>"); + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 2:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans2 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans2_vote_count+ "</font></td>"); + tb.append("</tr>"); + if(mode == 2) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans3 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans3_vote_count+ "</font></td>"); + + tb.append("</tr>"); + } + if(mode == 3) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans3 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans3_vote_count+ "</font></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 4:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans4 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans4_vote_count+ "</font></td>"); + + tb.append("</tr>"); + } + if(mode == 4) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans3 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans3_vote_count+ "</font></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 4:</td>"); + + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans4 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans4_vote_count+ "</font></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 5:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans5 + "</font></td>"); + tb.append("<td align=\"center\"><font color=\"FF0000\">" + AdminSurvey.ans5_vote_count+ "</font></td>"); + + tb.append("</tr>"); + } + tb.append("</table><br>"); + if(running == true) + tb.append("<center><button value=\"End the survey\" action=\"bypass -h admin_survey_end\" width=150 height=22 back=\"L2UI_Ch3.bigbutton3_over\" fore=\"L2UI_Ch3.bigbutton3\"></center>"); + tb.append("</body></html>"); + + nhm.setHtml(tb.toString()); + activeChar.sendPacket(nhm); + } + + /** + * @return the qset + */ + public static boolean isQset() + { + return qset; + } + + /** + * @param qset the qset to set + */ + public static void setQset(boolean qset) + { + AdminSurvey.qset = qset; + } + + /** + * @return the ans1set + */ + public static boolean isAns1set() + { + return ans1set; + } + + /** + * @param ans1set the ans1set to set + */ + public static void setAns1set(boolean ans1set) + { + AdminSurvey.ans1set = ans1set; + } + + /** + * @return the ans2set + */ + public static boolean isAns2set() + { + return ans2set; + } + + /** + * @param ans2set the ans2set to set + */ + public static void setAns2set(boolean ans2set) + { + AdminSurvey.ans2set = ans2set; + } + + /** + * @return the ans3set + */ + public static boolean isAns3set() + { + return ans3set; + } + + /** + * @param ans3set the ans3set to set + */ + public static void setAns3set(boolean ans3set) + { + AdminSurvey.ans3set = ans3set; + } + + /** + * @return the ans4set + */ + public static boolean isAns4set() + { + return ans4set; + } + + /** + * @param ans4set the ans4set to set + */ + public static void setAns4set(boolean ans4set) + { + AdminSurvey.ans4set = ans4set; + } + + /** + * @return the ans5set + */ + public static boolean isAns5set() + { + return ans5set; + } + + /** + * @param ans5set the ans5set to set + */ + public static void setAns5set(boolean ans5set) + { + AdminSurvey.ans5set = ans5set; + } +} \ No newline at end of file Index: java/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Survey.java =================================================================== --- java/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Survey.java (revision 0) +++ java/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Survey.java (working copy) @@ -0,0 +1,155 @@ +/* This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package com.l2jfrozen.gameserver.handler.voicedcommandhandlers; + +import javolution.text.TextBuilder; + +import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; +import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminSurvey; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; + +/** + * + * @author Elfocrash + * + */ +public class Survey implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = { "survey" }; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (command.equals("survey")) + { + if(AdminSurvey.running == false) + { + activeChar.sendMessage("There is no survey running now"); + return false; + } + + if(activeChar.hasVotedSurvey()) + { + activeChar.sendMessage("You already voted for that survey."); + return false; + } + + if(AdminSurvey.running == true) + mainHtml(activeChar); + } + + + + return true; + } + + private static void mainHtml(L2PcInstance activeChar) + { + NpcHtmlMessage nhm = new NpcHtmlMessage(5); + TextBuilder tb = new TextBuilder(""); + + tb.append("<html><head><title>Survey form</title></head><body>"); + tb.append("<center>"); + tb.append("<table width=\"250\" cellpadding=\"5\" bgcolor=\"000000\">"); + tb.append("<tr>"); + tb.append("<td width=\"45\" valign=\"top\" align=\"center\"><img src=\"L2ui_ch3.menubutton4\" width=\"38\" height=\"38\"></td>"); + tb.append("<td valign=\"top\"><font color=\"FF6600\">Survey</font>"); + tb.append("<br1><font color=\"FF6600\">"+activeChar.getName()+"</font>, use this form in order to give us feedback.<br1></td>"); + tb.append("</tr>"); + tb.append("</table>"); + tb.append("</center>"); + tb.append("<center>"); + + tb.append("<font color=\"FF6600\">The question set is:<br>"); + tb.append("<font color=\"FF0000\">" + AdminSurvey.quest+"</font>"); + tb.append("<br><font color=\"FF6600\">Choose an answer."); + tb.append("<table width=\"300\" height=\"20\">"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 1:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans1 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote1\">Vote</a></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 2:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans2 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote2\">Vote</a></td>"); + + tb.append("</tr>"); + if(AdminSurvey.mode == 2) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans3 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote3\">Vote</a></td>"); + + tb.append("</tr>"); + } + if(AdminSurvey.mode == 3) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans3 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote3\">Vote</a></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 4:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans4 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote4\">Vote</a></td>"); + + tb.append("</tr>"); + } + if(AdminSurvey.mode == 4) + { + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 3:</td>"); + + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans3 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote3\">Vote</a></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 4:</td>"); + + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans4 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote4\">Vote</a></td>"); + + tb.append("</tr>"); + tb.append("<tr>"); + tb.append("<td align=\"center\" width=\"40\">Answer 5:</td>"); + tb.append("<td align=\"center\" width=\"150\"><font color=\"FF0000\">" + AdminSurvey.ans5 + "</font></td>"); + tb.append("<td align=\"center\"><a action=\"bypass -h survey_vote5\">Vote</a></td>"); + + tb.append("</tr>"); + } + tb.append("</table><br>"); + tb.append("</center>"); + tb.append("</body></html>"); + + nhm.setHtml(tb.toString()); + activeChar.sendPacket(nhm); + } + + @Override + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} \ No newline at end of file Index: java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 26) +++ java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -365,6 +365,7 @@ private String _accountName; private long _deleteTimer; + private boolean _hasVotedSurvey = false; private boolean _isOnline = false; private long _onlineTime; private long _onlineBeginTime; @@ -11662,4 +11663,20 @@ } } } + + /** + * @return the _hasVotedSurvey + */ + public boolean hasVotedSurvey() + { + return _hasVotedSurvey; + } + + /** + * @param _hasVotedSurvey the _hasVotedSurvey to set + */ + public void setHasVotedSurvey(boolean _hasVotedSurvey) + { + this._hasVotedSurvey = _hasVotedSurvey; + } } \ No newline at end of file ### Eclipse Workspace Patch 1.0 #P l2jelfo Index: java/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java =================================================================== --- java/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (revision 27) +++ java/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (working copy) @@ -112,6 +112,7 @@ } AdminSurvey.ans1_vote_count++; + activeChar.setHasVotedSurvey(true); activeChar.sendMessage("You voted : " + AdminSurvey.ans1 + ". Thanks for voting"); } @@ -129,6 +130,7 @@ } AdminSurvey.ans2_vote_count++; + activeChar.setHasVotedSurvey(true); activeChar.sendMessage("You voted : " + AdminSurvey.ans2 + ". Thanks for voting"); } else if (_command.equals("survey_vote3")) @@ -144,6 +146,7 @@ return; } AdminSurvey.ans3_vote_count++; + activeChar.setHasVotedSurvey(true); activeChar.sendMessage("You voted : " + AdminSurvey.ans3 + ". Thanks for voting"); } else if (_command.equals("survey_vote4")) @@ -159,6 +162,7 @@ return; } AdminSurvey.ans4_vote_count++; + activeChar.setHasVotedSurvey(true); activeChar.sendMessage("You voted : " + AdminSurvey.ans4 + ". Thanks for voting"); } @@ -175,6 +179,7 @@ return; } AdminSurvey.ans5_vote_count++; + activeChar.setHasVotedSurvey(true); activeChar.sendMessage("You voted : " + AdminSurvey.ans5 + ". Thanks for voting"); } else if (_command.startsWith("npc_")) Index: java/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminSurvey.java =================================================================== --- java/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminSurvey.java (revision 27) +++ java/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminSurvey.java (working copy) @@ -73,6 +73,23 @@ if (command.equals("admin_survey_end")) { + int moreVotes = ans1_vote_count; + if (moreVotes < ans2_vote_count) {moreVotes = ans2_vote_count;} + if (moreVotes < ans3_vote_count) {moreVotes = ans3_vote_count;} + if (moreVotes < ans4_vote_count) {moreVotes = ans4_vote_count;} + if (moreVotes < ans5_vote_count) {moreVotes = ans5_vote_count;} + + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The survey session is over.Thanks everyone for voting.")); + if( moreVotes == ans1_vote_count) + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The answer "+ ans1 +" won the survey with " + ans1_vote_count +" votes on the question : "+ quest+".")); + if( moreVotes == ans2_vote_count) + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The answer "+ ans2 +" won the survey with " + ans2_vote_count +" votes on the question : "+ quest+".")); + if( moreVotes == ans3_vote_count) + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The answer "+ ans3 +" won the survey with " + ans3_vote_count +" votes on the question : "+ quest+".")); + if( moreVotes == ans4_vote_count) + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The answer "+ ans4 +" won the survey with " + ans4_vote_count +" votes on the question : "+ quest+".")); + if( moreVotes == ans5_vote_count) + Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The answer "+ ans5 +" won the survey with " + ans5_vote_count +" votes on the question : "+ quest+".")); running = false; resultsHtml(activeChar); quest = ""; @@ -101,8 +118,8 @@ } - Broadcast.toAllOnlinePlayers(new CreatureSay(0,Say2.ANNOUNCEMENT,"Survey","The survey session is over.Thanks everyone for voting.")); + } if(command.equals("admin_opmore"))
-
U mean sth like that? getActingPlayer().sendPacket(new CreatureSay(0, 17, "[AntiBot]:", instead of getActingPlayer().sendPacket(new CreatureSay(0, Say2.HERO VOICE, "[AntiBot]:", edit: thank you man ..it works perfect now ..i have just tested it :) hope u have a great night .. dont forget to be nice to ppl
-
it doesnt work...maybe u can help me by typing here the correct code?? check those images to see the errors i get.. 1--> https://postimg.org/image/u0hq3nip9/ 2--> https://postimg.org/image/fsfx56sbf/
-
i get 1 error.. sendPacket(new CreatureSay(0, Say2.HERO_VOICE, "[AntiBot]:", "Congratulations, has passed control.")); what should i replace HERO_VOICE with? i'm using l2jfrozen
-
how do i install the xml files?
-
hey man ...so i tried ur code and here are some problems that showed up.. first of all there is no such thing like: head-src/com/l2jfrozen/gameserver/custom (all i could find was head-src/com/l2jfrozen/gameserver/handler/custom) secondly, import com.l2jfrozen.util.DDSConverter; does not exist... here's a photo...hope u can help me fix it ;)
-
Beautifull Npc Collection By Poytsomaxias ;-)
protoftw replied to FreakbuZz's topic in Server Shares & Files [L2J]
I just took "Poytsomaxias" Npc and i re-edited it a little bit..If u like it check the html code.. Here's a preview: https://postimg.org/image/mpgxkufup/ And here's the html code: replace: "######" with --> "system freaks" ( without the space between the two words ) ...i dont know why it doesnt appear and it changes it to # <html> <title> Lineage 2 Shinedown GM-Shop. </title> <body> <br> <center> <table> <tr><td><img src="icon.etc_alphabet_l_i00" width=32 height=32></td><td><img src="icon.etc_alphabet_i_i00" width=32 height=32></td><td><img src="icon.etc_alphabet_n_i00" width=32 height=32></td><td><img src="icon.etc_alphabet_e_i00" width=32 height=32></td><td><img src="icon.etc_alphabet_a_i00" width=32 height=32></td><td><img src="icon.etc_alphabet_g_i00" width=32 height=32></td><td><img src="icon.etc_alphabet_e_i00" width=32 height=32></td></tr> </table> </center> <br> <br> <img src=######s.1 height=90 width=256> </center> <br> <br> <table width=240 bgcolor="12334"> <tr> <td><button value="Weapons" action="bypass -h npc_%objectId%_Chat 3" width=94 height=21 back="######s.3" fore="######s.2"></td> <td><button value="Armors" action="bypass -h npc_%objectId%_Chat 1" width=94 height=21 back="######s.3" fore="######s.2"></td> <td><button value="Jewels" action="bypass -h npc_%objectId%_Chat 2" width=94 height=21 back="######s.3" fore="######s.2"></td> </tr> </table> </center> <br> <table width=240 bgcolor="12334"> <tr> <td><button value="Other" action="bypass -h npc_%objectId%_Chat 6" width=94 height=21 back="######s.3" fore="######s.2"></td> <td><button value="Oly Weapons" action="bypass -h npc_%objectId%_multisell 505090" width=94 height=21 back="######s.3" fore="######s.2"></td> <td><button value="Special Item" action="bypass -h npc_%objectId%_multisell 505052" width=94 height=21 back="######s.3" fore="######s.2"></td> </tr> </table> </center> <br> <table width=240 bgcolor="12334"> <tr> <td><button value="Farm Items" action="bypass -h npc_%objectId%_multisell 123456" width=94 height=21 back="######s.3" fore="######s.2"></td> <td><button value="Bank" action="bypass -h npc_%objectId%_multisell 505056" width=94 height=21 back="######s.3" fore="######s.2"></td> <td><button value="Sell" action="bypass -h npc_%objectId%_Sell" width=94 height=21 back="######s.3" fore="######s.2"></td> </tr> </table> </center> </body> </html> -
Discussion Psaxnw Epic Armor
protoftw replied to spot55's topic in Server Development Discussion [Greek]
steile mou pm. -
Orc Village Bug -- L2Jfrozen
protoftw replied to Pedra's question in Request Server Development Help [L2J]
just change type="Town" to type="EffectZone" -
Help Help Respawn Problem
protoftw replied to protoftw's question in Request Server Development Help [Greek]
lock the topic..i fixed the problem ;) -
lock it...i fixed the problem ;)
-
Can someone help me with that? When someone dies and hit the button respawn/to village i see that message...
-
Hello there,if anyone can help me with that please do it ;) When someone tries to respawn after dying ... i see that at my gameserver.bat Anyone who knows how to fix it?Noone can respawn...
-
guyz what type should i use while i'm creating the Npc for that job?
-
πολύ καλή δουλειά φίλε.
-
[HELP] dagger foraei heavy
protoftw replied to SubZeRoO's question in Request Server Development Help [Greek]
sta config tou L2J Frozen exei epilogh ean 8ec na forane oi Daggerades heavy..opote pas kai vazeis False kai ola teleiwsan ;) -
ekei pou einai external kai internal ip den prepei na exei 127.0.0.1 opws exei twra.. dld... ExternalHostname = 127.0.0.1 InternalHostname = 127.0.0.1 den prepei na einai etc...as kanei no-ip h an ton exw shkwsei se eteria na valei thn ip pou tou edwsan... Epishs mporei na ftene kai ta ports..as anoi3ei ta ports 7777,2106,9014 kai meta 8a eise mia xara. pisteuw na voh8hsa ;)
-
pedia exw ta codes gia topzone kai hopzone vote reward system alla den 3erw pou vazw ka8e ti.....an 8elete ta vazw edw kai na m peite...epd den 3erw pws na ta perasw sto eclipse kai ta loipa ean m voh8ouse kapoios 8a htan para polu kalo kai 8a htan euxaristhsh moy na ton voh8hsw me kapoion allo tropo..euxaristw http://maxcheaters.com/forum/index.php?topic=239928.0 ta phra apo edw...pls help me....apla peite mou p vazw to ka8e ti... euxaristw ;)
-
New Admin Panel by StinkyMadness
protoftw replied to S-T-I-N-K-Y's topic in Server Shares & Files [L2J]
polu kalh douleia,para polu kalh mpravo file m sunexise etc -
[Help]L2J Account Manager
protoftw replied to protoftw's question in Request Server Development Help [Greek]
se euxaristw polu -
Geia...exw perasei to acm sto site telos pantwn alla den 3erw ti akrivws na valw sto kouti p leei hostname den 3erw pia ip 8elei...epishs exw dokimasei polles k sunexeia m vgazei cannot connect to database...mia mikrh voh8eia parakalw? euxaristw ;) Ti vazw sto hostname?user?password?database? allazw kai login k game? h mono login? pls help...euxaristw //########################################################################################## //############################### Login Server Configuration ############################### //########################################################################################## CONFIG::g()->ca('login_server', array( 'hostname' => 'localhost', // login host database DB 'user' => 'root', // login user 'password' => '', // login password 'database' => 'l2jdb' // login database name )); //########################################################################################## //############################### Game Server Configuration ################################ //########################################################################################## CONFIG::g()->add_game_server(array( 'id' => 1, // game id 'hostname' => 'localhost', // game host database DB 'user' => 'root', // game user 'password' => '', // game password 'database' => 'l2jdb' // game database name ));
