kostantinosftw
Members-
Posts
325 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by kostantinosftw
-
Help Sxetika Me /delevel Se Acis
kostantinosftw posted a question in Request Server Development Help [Greek]
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? -
Help L2J Ipconfig.xml Problem
kostantinosftw replied to powerboy2's question in Request Server Development Help [Greek]
koita sto navicat ti ip exeis katw apo to host! prepei na einai 127.0.0.1 -
http://www.maxcheaters.com/topic/173224-lf-gm-shop-with-proper-weapon-stracture/
-
Help Linux Log In Errror.
kostantinosftw replied to kostantinosftw's question in Request Server Development Help [L2J]
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 -
Help Linux Log In Errror.
kostantinosftw replied to kostantinosftw's question in Request Server Development Help [L2J]
ok buttheart boi, have a nice day spammer x2. I would appreciate to give me more specific awnsers. Thank you. -
Help Linux Log In Errror.
kostantinosftw replied to kostantinosftw's question in Request Server Development Help [L2J]
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) -
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.
-
I'll try it.
-
help problem farme monster
kostantinosftw replied to l22expert's question in Request Server Development Help [Greek]
pare ena allo npc k allaxtou templateid. -
[HELP] CUSTOM ARMOR
kostantinosftw replied to BigSnake's question in Request Server Development Help [Greek]
la8os section. -
new dedicated ++ WIPE!! no old playa powa! equal start 4 all!!
-
bump (server changed)
-
Looking for Mid Rate (Interlude)
kostantinosftw replied to MoonGoat's topic in [Request] Private Servers
http://l2horizzon.netau.net/ -
[Help] Vote Reward
kostantinosftw replied to seikah's question in Request Server Development Help [L2J]
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 :/ -
[Share-Gift] HopZone Vote Reward [IT]
kostantinosftw replied to extr3me's topic in Server Shares & Files [L2J]
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(); } } -
[Help]Ban-IP
kostantinosftw replied to LuckyStr1ke's question in Request Server Development Help [Greek]
ti 8a eleges gia range ip ban? -
[Help] Vote Reward
kostantinosftw replied to seikah's question in Request Server Development Help [L2J]
http://maxcheaters.com/forum/index.php?topic=226697.0 -
[GR][Help]welcome texts...
kostantinosftw replied to LuckyStr1ke's question in Request Server Development Help [Greek]
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 -
[help] kainourio skill
kostantinosftw replied to Nightw0lf's question in Request Server Development Help [Greek]
Sto XML pou alla3es dokimase na valeis san onoma ena idi uparxon skill-onoma. -
[Help] with l2j combile καποιος μεσω Team Viewer
kostantinosftw replied to magneto30's question in Request Server Development Help [Greek]
1o pigene sto request kai kane to post, 2o katse diavase!