Jump to content

madarismenos

Members
  • Posts

    133
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by madarismenos

  1. pige ena paidi sta ikea mpike mesa kai rotai exetai mpiftekia kai tou lei i ipalilos yes of horse :troll:
  2. Achievements Engine Adapt for l2jfrozen & l2jhellas. Credit Matim code l2jfrozen:http://pastebin.com/S7zVUMyj code l2jhellas: http://pastebin.com/p9N255Ew
  3. Hello Members to Mxc Create One Code to press .reward and select Hero,Noblesse. Photo: Add code ReqeuestBypassToServer String INSERT_DATA = "REPLACE INTO characters_custom_data (obj_Id, char_name, hero, noble, donator, hero_end_date) VALUES (?,?,?,?,?,?)"; else if (_command.startsWith("hero1")) { if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("This Menu Cannot Be Used On Olympiad Games."); } if(activeChar.isHero()) { activeChar.sendMessage("You Are Already A Hero!."); } else if (activeChar.getInventory().getInventoryItemCount(9595, 0) >= 25) { activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setHero(true); updateDatabase(activeChar, Config.HERO_CUSTOM_DAY * 24L * 60L * 60L * 1000L); activeChar.sendMessage("You Are Now a Hero,You Are Granted With Hero Status , Skills ,mxc."); activeChar.broadcastUserInfo(); activeChar.destroyItem("Consume", activeChar.getObjectId(), 1, null, false); activeChar.getInventory().addItem("Wings", 6842, 1, activeChar, null); if (!activeChar.destroyItemByItemId("Vote Reward Item", 9595, 25, activeChar, false)) return; } else { activeChar.sendMessage("You Dont Have Vote Reward Item."); } } else if (_command.startsWith("nobless")) { if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("This Menu Cannot Be Used On Olympiad Games."); } if(activeChar.isNoble()) { activeChar.sendMessage("You Are Already A Noblesse!."); } else if (activeChar.getInventory().getInventoryItemCount(9595, 0) >= 25) { activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setNoble(true); activeChar.sendMessage("You Are Now a Noble,You Are Granted With Noblesse Status , And Noblesse Skills."); activeChar.broadcastUserInfo(); activeChar.destroyItem("Consume", activeChar.getObjectId(), 1, null, false); activeChar.getInventory().addItem("Tiara", 7694, 1, activeChar, null); if (!activeChar.destroyItemByItemId("Vote Reward Item", 9595, 25, activeChar, false)) return; } else { activeChar.sendMessage("You Dont Have Vote Reward Item."); } } private void updateDatabase(L2PcInstance player, long heroTime) { Connection con = null; try { if(player == null) return; con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement stmt = con.prepareStatement(INSERT_DATA); stmt.setInt(1, player.getObjectId()); stmt.setString(2, player.getName()); stmt.setInt(3, 1); stmt.setInt(4, player.isNoble() ? 1 : 0); stmt.setInt(5, player.isDonator() ? 1 : 0); stmt.setLong(6, heroTime == 0 ? 0 : System.currentTimeMillis() + heroTime); stmt.execute(); stmt.close(); stmt = null; } catch(Exception e) { if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); _log.log(Level.SEVERE, "Error: could not update database: ", e); } finally { CloseUtil.close(con); con = null; } } go com.l2jfrozen.gameserver.handler.VoicedCommandHandler Paste Here code registerVoicedCommandHandler(new votereward()); add Code VoicedCommandHandler Name votereward /* * 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.voicedcommandhandlers; import javolution.text.TextBuilder; import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; public class votereward implements IVoicedCommandHandler { private static String[] _voicedCommands = { "reward" }; @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("reward")) { if (activeChar.getInventory().getInventoryItemCount(9595, 0) >= 1) { votepanel(activeChar); } else { activeChar.sendMessage("You Dont Have Vote Reward Items."); activeChar.sendMessage("Try again."); } } return true; } public static void votepanel(L2PcInstance activeChar) { NpcHtmlMessage adminReply = new NpcHtmlMessage(5); TextBuilder replyMSG = new TextBuilder("<html><center><body><title>Reward Panel</title><br>"); replyMSG.append("<center><font color=\"FFFF00\">"+ activeChar.getName() +"</font></center><br>"); replyMSG.append("<center><font color=3c3c3c>__________________________________</font></center><br>"); replyMSG.append("<table>"); replyMSG.append("<tr>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_r_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_e_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_w_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_a_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_r_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_d_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("</tr>"); replyMSG.append("</table>"); replyMSG.append("<br>"); replyMSG.append("<table>"); replyMSG.append("<tr>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_p_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_a_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_n_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_e_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("<td><img src=\"icon.etc_alphabet_l_i00\" width=32 height=32 align=\"center\"></td>"); replyMSG.append("</tr>"); replyMSG.append("</table><br>"); replyMSG.append("<center><font color=3c3c3c>__________________________________</font></center><br>"); if(activeChar.isHero()) { replyMSG.append("<center><font color=\"00FF00\">Hero Status:</font> Enabled</center><br>"); } else { replyMSG.append("<button value=\"Hero 1 Day (25 Vote Item)\" action=\"bypass -h hero1\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\">"); } if(activeChar.isNoble()) { replyMSG.append("<center><font color=\"00FF00\">Noble Status:</font> Enabled</center><br>"); } else { replyMSG.append("<button value=\"Noblesse (25 Vote Item)\" action=\"bypass -h nobless\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\">"); } replyMSG.append("<center><font color=3c3c3c>__________________________________</font></center><br>"); replyMSG.append("</body></html>"); adminReply.setHtml(replyMSG.toString()); activeChar.sendPacket(adminReply); adminReply = null; replyMSG = null; } @Override public String[] getVoicedCommandList() { return _voicedCommands; } }
  4. iparxounai poloi tropi.
  5. Dont work i check this ;)
  6. Hey You got courage and made the Killer Panel.Photo: Update Code go to L2PcInstance paste line 7491 public void dodiepanel(L2Character killer) { NpcHtmlMessage adminReply = new NpcHtmlMessage(5); TextBuilder replyMSG = new TextBuilder("<html><body>"); replyMSG.append("<center>Server-Name Killer Panel</center><br>"); final L2PcInstance player = killer.getActingPlayer(); replyMSG.append("<center>----->" + player.getName() + "<-----</center><br>"); replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">HP:</font> "+ player.getCurrentHp() + "/<font color=\"009900\">"+ player.getMaxHp() + "</font></td></tr>"); replyMSG.append("<tr><td><font color=\"009900\">CP:</font> "+ player.getCurrentCp() + "/<font color=\"009900\">"+ player.getMaxCp() + "</font></td></tr>"); replyMSG.append("<tr><td><font color=\"009900\">MP:</font> "+ player.getCurrentMp() + "/<font color=\"009900\">"+ player.getMaxMp() + "</font></td></tr>"); replyMSG.append("</table>"); replyMSG.append("<tr><td>==================================</tr></td>"); //Weapon if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Weapon Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Weapon Enchant:</font><font color=\"A80000\"> The player doesn't have weapon.</font></tr></td></table>"); } //helmet if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_HEAD) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Helmet Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_HEAD).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Helmet Enchant:</font><font color=\"A80000\"> The player doesn't have helmet.</font></tr></td></table>"); } //chest if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Chest Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Chest Enchant:</font><font color=\"A80000\"> The player doesn't have chest.</font></tr></td></table>"); } //Legs if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Legs Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Legs Enchant:</font><font color=\"A80000\"> The player doesn't have legs.</font></tr></td></table>"); } //Gloves if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Gloves Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Gloves Enchant:</font><font color=\"A80000\"> The player doesn't have gloves.</font></tr></td></table>"); } //Boots if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Boots Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Boots Enchant:</font><font color=\"A80000\"> The player doesn't have boots.</font></tr></td></table>"); } //Necklace if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_NECK) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Necklace Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_NECK).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">Necklace Enchant:</font><font color=\"A80000\"> The player doesn't have necklace.</font></tr></td></table>"); } //L-Earring if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEAR) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">L-Earring Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEAR).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">L-Earring Enchant:</font><font color=\"A80000\"> The player doesn't have l-earring.</font></tr></td></table>"); } //R-Earring if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_REAR) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">R-Earring Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_REAR).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">R-Earring Enchant:</font><font color=\"A80000\"> The player doesn't have r-earring.</font></tr></td></table>"); } //L-Ring if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LFINGER) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">L-Ring Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LFINGER).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">L-Ring Enchant:</font><font color=\"A80000\"> The player doesn't have l-ring.</font></tr></td></table>"); } //R-Ring if(player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RFINGER) != null) { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">R-Ring Enchant: </font>+" + player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RFINGER).getEnchantLevel() + "</tr></td></table>"); } else { replyMSG.append("<table border=0 width=\"100%\">"); replyMSG.append("<tr><td><font color=\"009900\">R-Ring Enchant:</font><font color=\"A80000\"> The player doesn't have r-ring.</font></tr></td></table>"); } replyMSG.append("</body></html>"); adminReply.setHtml(replyMSG.toString()); sendPacket(adminReply); adminReply = null; replyMSG = null; } go to L2PcInstance doDie Paste this dodiepanel(killer);
  7. what have this is server
  8. molis patiso pano apo pentes fores panw sto npc crush server
  9. http://maxcheaters.com/forum/index.php?topic=270393.0 afto edw exw
  10. L2Guardians to exei afto kai einai mia xara
  11. Signomi alla to xriazomai :/ an mpori kapios na mou vri to Fixed
  12. Hello magkes evala to Vortex System tou elfocrush se l2jfrozen kai otan patao polla kliki pano sto npc kolai o server pite mou ti na kanw Thnx.
  13. Problem HopZone plss give me fixed :/ l2jfrozen
  14. oreos post mpravo enemakos :D
  15. pedia 8elo kai egw help se afto to problima ama mpori kapios kante add msn fofas3@yahoo.gr
  16. 8elo help paidia exo to l2jbrasil kai den exo server/data/stats/skills An mpoei kanenas na mou dosi Ty
  17. oreo to epic seller mpravo sou
  18. ty gia tis sinvoulesou den exo ka8olou lag ston server m TY
  19. poli kala ta npc bravo pedia
  20. poli kalo to ekana kai ego ston server m Ty
  21. poli kalo mpravo sinexise etsi ;)
×
×
  • 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