Jump to content

Voqus

Members
  • Posts

    688
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Voqus

  1. gia na to allakseis logika einai eite apo client side opws eipe o fanky pou den epitrepetai(den to gnwrizw ayto) alla 8a prepei na uparxei java code sta files ths l2j gia to max adena count opou ston interlude einai int enw sto ct2++ einai 99kkk opou einai long. an den mporeseis apla bale na kanoun exchange 1kk me 1 gb kai paei legontas.
  2. ExternalHostname=MY IP kala plaka spas? kanto 127.0.0.1
  3. not bad, i would try c4ds and bgs myself but its not really my style, the sig i made was 3 min work tho :)
  4. pata window/preferences meta Java/Installed JREs kai psa3e ston sklhro disko sou gia Java JDK oxi gia JRE, amesws meta clickare thn pio kainourgia ekdosh tou JDK kai pata ok. ksanaprospa8hse na kaneis compile 8a prepei na einai ok twra
  5. This is my first try on photoshop. P.S Text sux i know but i couldnt find anything good:'(
  6. Have you heard that before you share you should test them? Oh, wait... im noob they are java developers. (Yea +10 commits (comments: fix, reverted didnt fix it, now fixed, next bug fix, oh noes didnt fix it again im so dumb..and so on)yey! they will reach 500 commits and they will /pwn the rest interlude projects)
  7. check: http://maxcheaters.com/forum/index.php?topic=186565.0
  8. Polles fores gia na meiwseis to chance apo ena skill prepei poly apla na meiwseis to power tou. p.x <skill id="358" levels="1" name="Bluff"> <set name="weaponsAllowed" val="Dagger"/> <set name="magicLevel" val="77"/> <set name="mpConsume" val="35"/> <set name="power" val="60"/> <-- ayto edw dld. <set name="target" val="TARGET_ONE"/> <set name="saveVs" val="MEN" /> <set name="skillType" val="AGGREDUCE_CHAR" /> <set name="lvlDepend" val="1"/> <set name="operateType" val="OP_ACTIVE"/> <set name="isDebuff" val="true" /> <set name="castRange" val="40"/> <set name="effectRange" val="400"/> <set name="reuseDelay" val="30000"/> <set name="hitTime" val="1000"/> <for> <effect name="Stun" time="9" val="0" stackOrder="1" stackType="stun" effectPower="40" effectType="STUN" /> <effect name="Bluff" noicon="1" val="0" /> <effect name="RemoveTarget" noicon="1" val="0" effectPower="80" effectType="DEBUFF" /> </for> </skill>
  9. Mallon 8a ekanes kanena la8os sta integer values kai 8a ebales string anti gia integer.
  10. Sumfwna me ayto to error, ean allakseis to playersSettings.getProperty se otherSettings.getProperty 8a prepei na fix to error. Alliws mporeis na dhmiourghseis ena new filepath gia to "playersSettings" config file.
  11. Not bad imo altho fix that "Psition" to "Position" on the 2nd image at right.
  12. Well thats the code of http://l2jserver.com/nightly/ , i mean the part after "Directory Listing of /nightly/" <div id="container"> <h1>Directory Listing of /nightly/</h1> <div id="breadcrumbs"> <a href="index-2.html">home</a> </div> <!-- --> <div id="listingcontainer"> <div id="listingheader"> <div id="headerfile"><a href="index34f2.html?dir=&sort=name&order=desc">File</a></div> <div id="headersize"><a href="indexf31b.html?dir=&sort=size&order=asc">Size</a></div> <div id="headermodified">Version</a></div> </div> <div id="listing"> <div><a href="indexae6c.html?dir=old%2F" class="b"><img src="dlf/folder.png" alt="old/" /><strong>old/</strong> <em>-</em> Sep 01 2010 04:04:20 AM</a></div> <div><a href="index9f6d.html?dir=&download=L2J_DataPack-unstable.zip" class="w"><img src="dlf/archive.png" alt="L2J_DataPack-unstable.zip" /><strong>L2J_DataPack-unstable.zip</strong> <em> 13510 KByte</em> Jun 24 2011 05:05:02 AM</a></div> <div><a href="index178d.html?dir=&download=L2J_Server-unstable.zip" class="b"><img src="dlf/archive.png" alt="L2J_Server-unstable.zip" /><strong>L2J_Server-unstable.zip</strong> <em> 12534 KByte</em> Jun 24 2011 05:01:22 AM</a></div> </div> </div> </div> Also, you can take any code from website with this tutorial btw, http://www.maxcheaters.com/forum/index.php?topic=74018.0 Hope i helped. have fun.
  13. οχι απλα γραφεις //sethero ingame. (φυσικα πρεπει να εχεις ενα target).
  14. Ορίστε ο κώδικας που θέλεις, Index: /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminAdmin.java =================================================================== --- /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminAdmin.java (revision 40) +++ /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminAdmin.java (revision 45) @@ -55,5 +55,5 @@ private static final String[] ADMIN_COMMANDS = {"admin_admin", "admin_admin1", "admin_admin2", "admin_admin3", "admin_admin4", "admin_admin5", "admin_gmliston", "admin_gmlistoff", "admin_silence", "admin_diet", "admin_tradeoff", "admin_reload", "admin_set", "admin_set_menu", "admin_set_mod", - "admin_saveolymp", "admin_sethero", "admin_manualhero"}; + "admin_saveolymp", "admin_manualhero"}; private static final int REQUIRED_LEVEL = Config.GM_MENU; @@ -102,18 +102,4 @@ catch(Exception e){e.printStackTrace();} activeChar.sendMessage("olympiad stuff saved!!"); - } - else if(command.startsWith("admin_sethero")){ - L2PcInstance target = null; - - if (activeChar.getTarget() != null && activeChar.getTarget() instanceof L2PcInstance) - { - target = (L2PcInstance)activeChar.getTarget(); - target.setHero(target.isHero()? false : true); - } - else - { - target = activeChar; - target.setHero(target.isHero()? false : true); - } } else if(command.startsWith("admin_manualhero")) Index: /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminHero.java =================================================================== --- /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminHero.java (revision 45) +++ /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminHero.java (revision 45) @@ -0,0 +1,132 @@ +/* + * 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 net.sf.l2j.gameserver.handler.admincommandhandlers; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import net.sf.l2j.Config; +import net.sf.l2j.L2DatabaseFactory; +import net.sf.l2j.gameserver.GmListTable; +import net.sf.l2j.gameserver.handler.IAdminCommandHandler; +import net.sf.l2j.gameserver.model.L2Object; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.network.SystemMessageId; +import net.sf.l2j.gameserver.serverpackets.SystemMessage; + +public class AdminHero implements IAdminCommandHandler{ + private static String[] _adminCommands = {"admin_sethero"}; + private final static Log _log = LogFactory.getLog(AdminHero.class.getName()); + private static final int REQUIRED_LEVEL = Config.GM_MENU; + + public boolean useAdminCommand(String command, L2PcInstance activeChar){ + if (!Config.ALT_PRIVILEGES_ADMIN){ + if (!(checkLevel(activeChar.getAccessLevel()) && activeChar.isGM())){ + return false; + } + } + if (command.startsWith("admin_sethero")){ + L2Object target = activeChar.getTarget(); + L2PcInstance player = null; + SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2); + if (target instanceof L2PcInstance){ + player = (L2PcInstance)target; + }else{ + player = activeChar; + } + + if (player.isHero()){ + player.setHero(false); + sm.addString("You are no longer a server hero."); + GmListTable.broadcastMessageToGMs("GM "+activeChar.getName()+" removed hero stat of player"+ target.getName()); + Connection connection = null; + try{ + connection = L2DatabaseFactory.getInstance().getConnection(); + + PreparedStatement statement = connection.prepareStatement("SELECT obj_id FROM characters where char_name=?"); + statement.setString(1,target.getName()); + ResultSet rset = statement.executeQuery(); + int objId = 0; + if (rset.next()){ + objId = rset.getInt(1); + } + rset.close(); + statement.close(); + + if (objId == 0) {connection.close(); return false;} + + statement = connection.prepareStatement("UPDATE characters SET hero=0 WHERE obj_id=?"); + statement.setInt(1, objId); + statement.execute(); + statement.close(); + connection.close(); + } + catch (Exception e){ + _log.warn("could not set Hero stats of char:", e); + } + finally{ + try { connection.close(); } catch (Exception e) {} + } + }else{ + player.setHero(true); + sm.addString("You are now a server Hero, Congratulations!"); + GmListTable.broadcastMessageToGMs("GM "+activeChar.getName()+" has given Hero status to "+target.getName()+"."); + Connection connection = null; + try{ + connection = L2DatabaseFactory.getInstance().getConnection(); + + PreparedStatement statement = connection.prepareStatement("SELECT obj_id FROM characters where char_name=?"); + statement.setString(1,target.getName()); + ResultSet rset = statement.executeQuery(); + int objId = 0; + if (rset.next()){ + objId = rset.getInt(1); + } + rset.close(); + statement.close(); + + if (objId == 0) {connection.close(); return false;} + + statement = connection.prepareStatement("UPDATE characters SET hero=1 WHERE obj_id=?"); + statement.setInt(1, objId); + statement.execute(); + statement.close(); + connection.close(); + } + catch (Exception e){ + _log.warn("could not set Hero stats of char:", e); + } + finally{ + try { connection.close(); } catch (Exception e) {} + } + + } + player.sendPacket(sm); + player.broadcastUserInfo(); + if(player.isHero() == true){} + } + return false; + } + public String[] getAdminCommandList() { + return _adminCommands; + } + private boolean checkLevel(int level){ + return (level >= REQUIRED_LEVEL); + } +} Index: /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/GameServer.java (revision 30) +++ /trunk/L2J_Gameserver/java/net/sf/l2j/gameserver/GameServer.java (revision 45) @@ -92,4 +92,5 @@ import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminHeal; import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminHelpPage; +import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminHero; import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminInvul; import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminKick; @@ -529,4 +530,5 @@ _adminCommandHandler.registerAdminCommandHandler(new AdminHeal()); _adminCommandHandler.registerAdminCommandHandler(new AdminHelpPage()); + _adminCommandHandler.registerAdminCommandHandler(new AdminHero()); _adminCommandHandler.registerAdminCommandHandler(new AdminShutdown()); _adminCommandHandler.registerAdminCommandHandler(new AdminSpawn()); Θεληση να υπαρχει και ολα τα αλλα βρισκονται... :P
  15. well i dont think this is some kind of competition but nvm :>
  16. Egh... you dont wanna mess with me, cute dworfie(tibo) :P Chilling.... summer time :D Lol'd on that "small" difference in your opinions. and @ontopic again as far as vago is on talk with him altho he needs some sort of payment he will do good job. Afterall, he's developing for like 3-4 years.[seems to meet the "18+yo" requirements.] Peace bitchezz!
  17. well well well look whos back :) how's it going vago. @on topic I guess he feels a bit special.
  18. Egh, just because some of mxc users are like that doesnt mean the whole planet is. I know tons of developers with that age who can make superb thinggies with their knowledge, unlike some 25 yo dudes.
  19. I gotta say many people are into developing, and they are like 14 years old and they got high knowledge of java and other programming languages. For example, myself im 16 years old and ive been working in the past in many projects even if they failed cause of activeness,etc. If you check my ohloh u will understand. That's all i had to say. Good luck on finding some experienced and true developers as far as there are fake ones among "us". Friendly.
  20. Egh... ive been looking all these days new projects pointing out their revs, just like you "L2JDARIO VERSION: 146!!!! WOW WTF U ARE AWESOME!!! CG The thing about developing its not about the number of commits but about the fucking quality of the code. I can make 400 commits saying typo typo typo typo fixed html typo typo typo that's a bunch of bullshit. Afterall, i'll have to agree with everything that Matim said not that i know him but every single thing he said its true. FRIENDLY
  21. Howdy,i'm here to share something today. I know showing online player count to html page is useless but hey its just an idea :D Have Fun. Index: java/config/l2jmods.properties =================================================================== --- java/config/l2jmods.properties (revision 4652) +++ java/config/l2jmods.properties (working copy) @@ -348,6 +348,9 @@ # variables: $killer, $target AnnouncePvpMsg = $killer has defeated $target +# Show online players vcmd +# Default: False +ShowOnlinePlayers = False # --------------------------------------------------------------------------- # Chat Moderation Index: java/com/l2jserver/Config.java =================================================================== --- java/com/l2jserver/Config.java (revision 4652) +++ java/com/l2jserver/Config.java (working copy) @@ -1018,6 +1018,8 @@ //chatfilter public static ArrayList<String> FILTER_LIST; + public static boolean SHOW_ONLINE_PLAYERS; + /** * This class initializes all global variables for configuration.<br> * If the key doesn't appear in properties file, a default value is set by this class. @@ -2442,6 +2444,7 @@ ANNOUNCE_PK_MSG = L2JModSettings.getProperty("AnnouncePkMsg", "$killer has slaughtered $target"); ANNOUNCE_PVP_MSG = L2JModSettings.getProperty("AnnouncePvpMsg", "$killer has defeated $target"); + SHOW_ONLINE_PLAYERS = Boolean.parseBoolean(L2JModSettings.getProperty("ShowOnlinePlayers","False")); L2JMOD_CHAT_ADMIN = Boolean.parseBoolean(L2JModSettings.getProperty("ChatAdmin", "false")); L2JMOD_MULTILANG_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("MultiLangEnable", "false")); #P L2J_DataPack Index: data/scripts/handlers/MasterHandler.java =================================================================== --- data/scripts/handlers/MasterHandler.java (revision 8046) +++ data/scripts/handlers/MasterHandler.java (working copy) @@ -245,6 +245,7 @@ import handlers.voicedcommandhandlers.ChatAdmin; import handlers.voicedcommandhandlers.Debug; import handlers.voicedcommandhandlers.Lang; +import handlers.voicedcommandhandlers.Online; import handlers.voicedcommandhandlers.TvTVoicedInfo; import handlers.voicedcommandhandlers.Wedding; import handlers.voicedcommandhandlers.stats; @@ -546,6 +547,8 @@ VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Banking()); if (Config.TVT_ALLOW_VOICED_COMMAND) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new TvTVoicedInfo()); + if (Config.SHOW_ONLINE_PLAYERS) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Online()); if (Config.L2JMOD_CHAT_ADMIN) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new ChatAdmin()); if (Config.L2JMOD_MULTILANG_ENABLE && Config.L2JMOD_MULTILANG_VOICED_ALLOW) Index: data/html/mods/online/OnlineStatus.htm =================================================================== --- data/html/mods/online/OnlineStatus.htm (revision 0) +++ data/html/mods/online/OnlineStatus.htm (revision 0) @@ -0,0 +1,4 @@ +<html><title>Online players status</title> +<body><center>There are %playernumber% players online.<br> +<font color="333333">by Voqus</font><br> +<button value="Exit" action="bypass -h Close" width=45 height=25 back="L2UI_CT1.Button_DF_Down" fore="L2UI_ct1.button_df"> +</center></body></html> Index: data/scripts/handlers/voicedcommandhandlers/Online.java =================================================================== --- data/scripts/handlers/voicedcommandhandlers/Online.java (revision 0) +++ data/scripts/handlers/voicedcommandhandlers/Online.java (revision 0) @@ -0,0 +1,44 @@ +package handlers.voicedcommandhandlers; + +import com.l2jserver.gameserver.cache.HtmCache; +import com.l2jserver.gameserver.handler.IVoicedCommandHandler; +import com.l2jserver.gameserver.model.L2World; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.network.serverpackets.ActionFailed; +import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; + +/** + * @author Voqus + */ + +public class Online implements IVoicedCommandHandler +{ + public static final String[] VOICED_COMMANDS = { "online" }; + + private static final boolean USE_STATIC_HTML = true; + private static final String HTML_LINK = HtmCache.getInstance().getHtm(null, "data/html/mods/online/OnlineStatus.htm"); + + public boolean useVoicedCommand(String command, L2PcInstance player, String params) + { + String htmContent = (USE_STATIC_HTML && !HTML_LINK.isEmpty()) ? HTML_LINK : + HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "data/html/mods/online/OnlineStatus.htm"); + + if(command.equalsIgnoreCase("online")) + { + NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0); + + npcHtmlMessage.setHtml(htmContent); + npcHtmlMessage.replace("%playernumber%", String.valueOf(L2World.getInstance().getAllPlayers().size())); + player.sendPacket(npcHtmlMessage); + } + else + { + player.sendPacket(ActionFailed.STATIC_PACKET); + } + return true; + } + + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} Credits: me
  22. http://whatismyipaddress.com/ ayto to ip -> "IP Information: bla.bla.bla.bla"
×
×
  • Create New...