Jump to content

kostantinosftw

Members
  • Posts

    325
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by kostantinosftw

  1. 1o Ekana edit to "commandname-e" kai pros8esa sto telos 113 112 withdraw 114 113 partyduel +115 114 delevel 2o Dhmiourgisa Delevel.java sto net.sf.l2j.gameserver.handler.usercommandhandlers to e3is arxeio /* * 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.usercommandhandlers; import net.sf.l2j.gameserver.handler.IUserCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.base.Experience; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.instancemanager.GrandBossManager; import net.sf.l2j.gameserver.network.SystemMessageId; public class Delevel implements IUserCommandHandler { private static final int[] COMMAND_IDS = { 114 }; @Override public boolean useUserCommand(int id, L2PcInstance activeChar) { if (activeChar.isCastingNow() || activeChar.isSitting() || activeChar.isMovementDisabled() || activeChar.isOutOfControl() || activeChar.isInOlympiadMode() || activeChar.inObserverMode() || activeChar.isFestivalParticipant() || activeChar.isInJail() || GrandBossManager.isInBossZone(activeChar)) { activeChar.sendMessage("Your current state doesn't allow you to use the /delevel command."); return false; } activeChar.stopMove(null); if (activeChar.isGM()) activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0); else { activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0); } return true; } @Override public int[] getUserCommandList() { return COMMAND_IDS; } } Alla den douleuei.. kapoia voh8ia ti mporei na exw kanei la8os?
  2. Epitelous ena oloklhromeno guide.. keep going! Ta peri "wraio alla uparxoun kai alla" toso analutika den uparxoun, mpourdologoune ade 1-2 na uparxoun me dead links stis photo. Tespa, gj k pali! Pws alliws mporeis na to kaneis?
  3. koita sto navicat ti ip exeis katw apo to host! prepei na einai 127.0.0.1
  4. http://www.maxcheaters.com/topic/173224-lf-gm-shop-with-proper-weapon-stracture/
  5. Problem solved. Had to use command: $ less /etc/services and manualy add the ports. Also sudo iptables -I INPUT -p tcp --dport 7777 --syn -j ACCEPT sudo iptables -I INPUT -p udp --dport 7777 -j ACCEPT sudo iptables -I INPUT -p tcp --dport 2100 --syn -j ACCEPT sudo iptables -I INPUT -p udp --dport 2100 -j ACCEPT After, i had to test it with telnet localhost 7777 telnet 192.168.1.3 7777 telnet example.no-ip.org 7777 to check if everything works. Thank you FirefoxAurora (da spammer) -request lock
  6. ok buttheart boi, have a nice day spammer x2. I would appreciate to give me more specific awnsers. Thank you.
  7. you own linux? or its host machine? - own, what has to do with my problem? -.- loops got priviliges? - yes ofc @ Lnx OS ports are open by default - then try to help me to correct loginserver and gameserver (spammer)
  8. Hello, I'm using linux server. Server machine infos: internet ip : example.no-ip.net Lan ip: 192.168.1.3 login port: 2100 gamserver port: 7777 --------------------------------------------------- How to config my files in order to work properly? Loginserver.properties: ExternalHostname = examples.no-ip.org InternalHostname = 192.168.1.3 LoginserverHostname = 192.168.1.3 LoginserverPort = 2100 LoginHostname = 127.0.0.1 LoginPort = 1821 Gameserver.properties: GameserverHostname = 192.168.1.3 GameserverPort = 7777 ExternalHostname = example.no-ip.org InternalHostname = 192.168.1.3 LoginPort = 1821 LoginHost = 127.0.0.1 Also how i can open 2100 and 7777 ports on linux server? Thank you in advance.
  9. new dedicated ++ WIPE!! no old playa powa! equal start 4 all!!
  10. I can't see in his code "votes = Integer.valueOf(inputLine.split(">")[2].replace("</div", ""));" so I guess this isn't going to help him :/
  11. stop mother-beep-er saying "thanks" to something that DO NOT WORKS! :) and here is the fix (copy paste it) make sure u will take a backup <3 /* 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 net.sf.l2j.gameserver.model; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.util.Collection; import net.sf.l2j.Config; import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.GmListTable; import net.sf.l2j.gameserver.ThreadPoolManager; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * * @author eXtr3me, mod by Rizel and ErHarD * */ public class AutoVoteRewardHandler { private int lastVoteCount = 0; private int initialCheck = 30 * 1000; private int delayForCheck = 300 * 1000; private int votesForReward = 20; private int maxRewardStack = 5; private AutoVoteRewardHandler() { System.out.println("Vote Reward System activated."); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } private class AutoReward implements Runnable { public void run() { System.out.println("Vote Count Check."); if (Config.VOTE_REWARD1_ID == 0 || Config.VOTE_REWARD1_COUNT == 0 || Config.VOTE_REWARD2_ID == 0 || Config.VOTE_REWARD2_COUNT == 0) { GmListTable.broadcastMessageToGMs("The rewards aren't Identified. Please take a look."); return; } int newVoteCount = getVotes(Config.VOTE_HTML_PATCH); System.out.println("newVoteCount:"+newVoteCount); System.out.println("getLastVoteCount:"+getLastVoteCount()); if (newVoteCount != 0 && getLastVoteCount() != 0 && newVoteCount >= getLastVoteCount() + votesForReward) { Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); for (L2PcInstance player : pls) { if (player != null) { L2ItemInstance item1 = player.getInventory().getItemByItemId(Config.VOTE_REWARD1_ID); if (item1 == null || item1.getCount() < maxRewardStack) { player.addItem("reward", Config.VOTE_REWARD1_ID, Config.VOTE_REWARD1_COUNT, player, true); } L2ItemInstance item2 = player.getInventory().getItemByItemId(Config.VOTE_REWARD2_ID); if (item2 == null || item2.getCount() < maxRewardStack) { player.addItem("reward", Config.VOTE_REWARD2_ID, Config.VOTE_REWARD2_COUNT, player, true); } } } setLastVoteCount(getLastVoteCount()+ votesForReward); } Announcements.getInstance().announceToAll("Our Current vote count is: " + newVoteCount); Announcements.getInstance().announceToAll("Next reward at " + (getLastVoteCount()+ votesForReward) + " votes."); if (getLastVoteCount() == 0) { setLastVoteCount(newVoteCount); } } } private int getVotes(String urlString) { InputStreamReader isr = null; BufferedReader in = null; try { URL url = new URL(urlString); URLConnection con = url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(con.getInputStream()); in = new BufferedReader(isr); String inputLine; int voteCount = 0; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("rank anonymous tooltip")) { int Sub = 12; switch (inputLine.length()) { case 116: Sub = 13; break; case 117: Sub = 14; break; case 118: Sub = 15; break; case 119: Sub = 16; break; } voteCount = Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); break; } } return voteCount; } catch (IOException e) { e.printStackTrace(); return 0; } finally { try { in.close(); } catch (IOException e) { } try { isr.close(); } catch (IOException e) { } } } private void setLastVoteCount(int voteCount) { lastVoteCount = voteCount; } private int getLastVoteCount() { return lastVoteCount; } public static AutoVoteRewardHandler getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } }
  12. http://maxcheaters.com/forum/index.php?topic=226697.0
  13. min protocol 1 - max 999 = FAIL kane search ta protocol tou kathe chronicle kai ri8miseto analoga ti chronicle einai o servers s. Diaforetika pes ti chronicle exeis.
  14. to systemmsg periexei ola ta sigekrimena pragmata p eipes oti 8eleis na alla3eis! To systemmsg to anoigeis me to fileedit (http://maxcheaters.com/forum/index.php?topic=34835.0) -ka8e c exei to diko tou fileedit kai patch-. Efoson to anoi3eis vriskeis tis protaseis kai tis allazeis. Meta save se oti version htane. EZ
  15. Sto XML pou alla3es dokimase na valeis san onoma ena idi uparxon skill-onoma.
×
×
  • Create New...