-
Posts
1,627 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Red-Hair-Shanks
-
ena mikro problimataki help!
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
x32 bit exw ! pws allazw tis metabglites? -
ena mikro problimataki help!
Red-Hair-Shanks posted a question in Request Server Development Help [Greek]
pedia paw na anoi3w to gamaserver i logingameserver kai mou leei afto: 'java'den anagnwrizete ws eswteriki i e3wteriki entoli. ektelesimo programa h arxeio desmis energeion. adminstrator restarted.... gt bgazi afto to problima ? -
deleted
-
[HELP]Login problem
Red-Hair-Shanks replied to ~Ge0rge~'s question in Request Server Development Help [Greek]
mporei na fteei to system sou geia alla3e mia kai pes pas -
erwtisi sketika me dikomou project
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
sinfonw... alla den pisteuw na mou parei tosa xronia geia na ma8w oti xriazete gt asxolome 4-5 xronia me ypol kai ka8omai me ti wres to pc mou akoma kai meres ama porw8w i neuriasw me kana problima pou 8a exw ! pantos oti problima eixa stin arxi pou arxisa na ftiaxnw server ta exw ma8i ape e3w i ta perisotera guide edw mesa ta exw ma8i ape e3w 8a elega oti eimai arketa kalos se merika pragmata alla 8elw akoma douleia perisotero stis glwses programatismou ! geia na ma8w egw twra java px pisteuw 8a mou parei 1 me 1,5 xronia mporei kai ligotero ! alla elpizw na ma8w grhgora ! -
erwtisi sketika me dikomou project
Red-Hair-Shanks posted a question in Request Server Development Help [Greek]
paidia 8a ei8ela na rwtisw ama anoi3w project kai to pack pou 8a exei to project 8a einai apo tin l2jfree{Interlude} compile me maven 8a ginete palu? -
help me
Red-Hair-Shanks replied to kokkinidisjim's question in Request Server Development Help [Greek]
geia na sou di3i ta pvp/pk castle statun prepei na exei domain site! gt prepei na exei domain site geia na sou di3i ta pvp.......? gt ta free website den dexontai arxeia php ! geia afto den sou dixni tpt kai sou bgazi error -
L2jarchid buffer
Red-Hair-Shanks replied to Astro21's question in Request Server Development Help [Greek]
1} la8os Section 2}den 8a sou apantisi kaneis edw ! 3} edw 8a kaneis topic geia oti problima exeis : http://www.maxcheaters.com/forum/index.php?board=67.0 4}ama 3anakaneis edw topic uparxi pi8anonita na fas -1 karma enw ama kaneis sinexia post sto la8os section 8a fas ban ! Prosoxi ! se afto to section kanoume ta e3is: http://www.maxcheaters.com/forum/index.php?topic=39791.0 -
[HELP]Java
Red-Hair-Shanks replied to JavaQuestions's question in Request Server Development Help [Greek]
loipon 8a sou pw pws 8a bazis ena code ! afto edw einai pou 8a mpei to code : Index: D:/Programs/WorkSpace/L2_GameServer/java/config/custom.properties =================================================================== @@ -7,4 +7,29 @@<----------------- afto einai to line{gramh} pou 8a mpei to briskis patwntas ctrl+L AbortRestart = asd #html limitations size allowed <------------ otan sou exei etc code 8a psaxnis me ctrl+f -NpcHtmlLimit = 8192 <----------------- afto pou exoun apo dipla - ta sbinis kai pros8etis to code pou exei + \ No newline at end of file +NpcHtmlLimit = 8192 <------------- afto edw to pros8etis ------------------------------------------------ import net.sf.l2j.L2DatabaseFactory; +import net.sf.l2j.gameserver.Announcements; sta import 8a allazis to net.sf.l2j analoga to pack pou exeis dld px sto project l2brazil einai com.it.br ama exeis sto pack pou kaneis compile ta import einai com.it.br kai pros8esis ena import net.sf.l2j ........8a einai la8os + pros8etis - aferis elpizw na se boh8isa! uparxoun kai guide to pws bazis ena java code psa3e ! -
ligo help paidia
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
Prospa8isa na to balw twra den 3erw ama einai swsto. as dei kapoios ama to ebala swsta einai to code apo katw import org.w3c.dom.Node; public class L2TownZone extends L2ZoneType { public L2TownZone(int id) { super(id); _taxById = 0; _spawnLocs = new FastList<int[]>(); _redirectTownId = 9; _noPeace = false; } // just a method, for efficiency L2PcInstance activeChar = ((L2PcInstance)character); // PVP possible during siege, now for siege participants only // Could also check if this town is in siege, or if any siege is going on public void setParameter(String s, String s1) { if(s.equals("name")) _townName = s1; else if(s.equals("townId")) _townId = Integer.parseInt(s1); else if(s.equals("redirectTownId")) _redirectTownId = Integer.parseInt(s1); else if(s.equals("taxById")) _taxById = Integer.parseInt(s1); else if(s.equals("noPeace")) _noPeace = Boolean.parseBoolean(s1); else super.setParameter(s, s1); } public void setSpawnLocs(Node node) { int ai[] = new int[3]; Node node1 = node.getAttributes().getNamedItem("X"); if(node1 != null) ai[0] = Integer.parseInt(node1.getNodeValue()); node1 = node.getAttributes().getNamedItem("Y"); if(node1 != null) ai[1] = Integer.parseInt(node1.getNodeValue()); node1 = node.getAttributes().getNamedItem("Z"); if(node1 != null) ai[2] = Integer.parseInt(node1.getNodeValue()); if(ai != null) _spawnLocs.add(ai); } protected void onEnter(L2Character l2character) { if((l2character instanceof L2PcInstance) && ((L2PcInstance)l2character).getSiegeState() != 0 && Config.ZONE_TOWN == 1) if (activeChar.getSiegeState() != 0 && Config.ZONE_TOWN == 1) return; if(!_noPeace && Config.ZONE_TOWN != 2) l2character.setInsideZone(2, true); } + if (activeChar.isDonator() && getTownId() == 7) { activeChar.sendMessage("Donators can't enter Gludio. You are now jailed."); activeChar.setInJail(true, 10); } else if (activeChar.isDonator() && getTownId() == 8) { activeChar.sendMessage("Donators can't enter Dion. You are now jailed."); activeChar.setInJail(true, 10); } else activeChar.sendMessage("You have entered a non-restricted area."); } protected void onExit(L2Character l2character) { if(!_noPeace) l2character.setInsideZone(2, false); } public void onDieInside(L2Character l2character) { } public void onReviveInside(L2Character l2character) { } public String getName() { return _townName; } public int getTownId() { return _townId; } public int getRedirectTownId() { return _redirectTownId; } public final int[] getSpawnLoc() { int ai[] = new int[3]; ai = (int[])_spawnLocs.get(Rnd.get(_spawnLocs.size())); return ai; } public final int getTaxById() { return _taxById; } private String _townName; private int _townId; private int _redirectTownId; private int _taxById; private boolean _noPeace; private FastList<int[]> _spawnLocs; } -
[HELP]Drops se mobs!
Red-Hair-Shanks replied to Immortal Dev. TM's question in Request Server Development Help [Greek]
uparxi pas navicat-droplist kai sou exei mob id-itemid-min-maz-category-chance simplironis afta kai eisai etimos -
ligo help paidia
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
den mporw na to bale re otan pata ctrl+f kai bazw if (character instanceof L2PcInstance) den to briski etc den mporw na balw to code. geia afto zitaw help apo enan empiro dev -
paidia pernaw ena java code twra sto pack kai kolisa me ta kokina gramata einai code pou exw eidei apo compile! package .gameserver.model.zone.type; import javolution.util.FastList; import .Config; import ll.gameserver.model.L2Character; import.gameserver.model.actor.instance.L2PcInstance; import gameserver.model.zone.L2ZoneType; import .util.Rnd; import org.w3c.dom.Node; public class L2TownZone extends L2ZoneType { public L2TownZone(int id) { super(id); _taxById = 0; _spawnLocs = new FastList<int[]>(); _redirectTownId = 9; _noPeace = false; } public void setParameter(String s, String s1) { if(s.equals("name")) _townName = s1; else if(s.equals("townId")) _townId = Integer.parseInt(s1); else if(s.equals("redirectTownId")) _redirectTownId = Integer.parseInt(s1); else if(s.equals("taxById")) _taxById = Integer.parseInt(s1); else if(s.equals("noPeace")) _noPeace = Boolean.parseBoolean(s1); else super.setParameter(s, s1); } public void setSpawnLocs(Node node) { int ai[] = new int[3]; Node node1 = node.getAttributes().getNamedItem("X"); if(node1 != null) ai[0] = Integer.parseInt(node1.getNodeValue()); node1 = node.getAttributes().getNamedItem("Y"); if(node1 != null) ai[1] = Integer.parseInt(node1.getNodeValue()); node1 = node.getAttributes().getNamedItem("Z"); if(node1 != null) ai[2] = Integer.parseInt(node1.getNodeValue()); if(ai != null) _spawnLocs.add(ai); } protected void onEnter(L2Character l2character) { if((l2character instanceof L2PcInstance) && ((L2PcInstance)l2character).getSiegeState() != 0 && Config.ZONE_TOWN == 1) return; if(!_noPeace && Config.ZONE_TOWN != 2) l2character.setInsideZone(2, true); } protected void onExit(L2Character l2character) { if(!_noPeace) l2character.setInsideZone(2, false); } public void onDieInside(L2Character l2character) { } public void onReviveInside(L2Character l2character) { } public String getName() { return _townName; } public int getTownId() { return _townId; } public int getRedirectTownId() { return _redirectTownId; } public final int[] getSpawnLoc() { int ai[] = new int[3]; ai = (int[])_spawnLocs.get(Rnd.get(_spawnLocs.size())); return ai; } public final int getTaxById() { return _taxById; } private String _townName; private int _townId; private int _redirectTownId; private int _taxById; private boolean _noPeace; private FastList<int[]> _spawnLocs; } --------------------------------------------------------- kai aftw edw einai pou 8elw na perasw! 8elw na me help pws na to perasw gt kanw search kai den briskw tpt apo to ctrl+f. @@ -95,12 +95,28 @@ { if (character instanceof L2PcInstance) { + // just a method, for efficiency + L2PcInstance activeChar = ((L2PcInstance)character); + // PVP possible during siege, now for siege participants only // Could also check if this town is in siege, or if any siege is going on - if (((L2PcInstance)character).getSiegeState() != 0 && Config.ZONE_TOWN == 1) + if (activeChar.getSiegeState() != 0 && Config.ZONE_TOWN == 1) return; //((L2PcInstance)character).sendMessage("You entered "+_townName); + + if (activeChar.isDonator() && getTownId() == 7) + { + activeChar.sendMessage("Donators can't enter Gludio. You are now jailed."); + activeChar.setInJail(true, 10); + } + else if (activeChar.isDonator() && getTownId() == 8) + { + activeChar.sendMessage("Donators can't enter Dion. You are now jailed."); + activeChar.setInJail(true, 10); + } + else + activeChar.sendMessage("You have entered a non-restricted area."); } if (!_noPeace && Config.ZONE_TOWN != 2) character.setInsideZone(L2Character.ZONE_PEACE, true); @@ -114,7 +130,15 @@ // if (character instanceof L2PcInstance) //((L2PcInstance)character).sendMessage("You left "+_townName); - + + if (character instanceof L2PcInstance) + { + if (((L2PcInstance)character).isDonator() && (getTownId() == 7 || getTownId() == 8) && !((L2PcInstance)character).isInJail()) + { + ((L2PcInstance)character).sendMessage("How you entered in first place? Oh i hate exploiters!"); + ((L2PcInstance)character).setInJail(true, 60); + } + } } @Override [move] enas empiros dev pliz na mou dwsei to code perasmenw[/move]
-
paidia otan kapoios anogi diko tou project kai xrisimopoiei pack l2jserver kai 8elei na alla3ei ta imports apo ola ta file java ti kanei? ta kanei ena ena ? i uparxi kapoio kolpo na ta kaneis ola mazi?
-
[Share] Enchant Rates For Donator
Red-Hair-Shanks replied to Realtek2's topic in Server Shares & Files [L2J]
and this work 100%? you have tested? -
http://www.maxcheaters.com/forum/index.php?topic=118648.0
-
paidia prospa8w na ftia3w ena text{command} dld otan mpenis mesa sto l2 sto text katw aristera 8elw na ftia3w px geia tous donators ena text diko tous dld na milane me to &. mono geia tous donator na einai afto pws mporw na to ftia3w. me apla logia pws milas sto ! , egw 8elw na ftia3w na milas me to & alla mono geia donator i vip players pws to ftiaxnw? den exw bri kapoio Guide sigkekrimena se afto pou 8elw gei afto zitaw tin boh8eia edw. Parakalw ta post sas na einai se 8ema me afto pou psaxnw min kanete tsampa post !
-
help ligo
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
link dwse mou apo to guide -
help ligo
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
uparxi kana kainourgio donate command na perasw xwris na mou bgazi error? exeis esy kana diko sou donate code na mou dwseis? -
help ligo
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
no.....donator command handler,nobless color name,2 weeks olympiad perasa. -
paidia exw ena pack kai exw perasi kati java codes. kai otan anoigw ton server ftiaxnw character kai pataw start bgazi problima stin gs: could not restore char base data: java.sql.SLQException: Parameter index out of range <59> number of parameters,which is 58 could not restore char base data: java.sql.SLQException:Unknown colu 'punish_level' in field list could not restore in slot:0 Character Could not be loated <slot:0> afto bgazi gt? help pws 8a to fix
-
8a dwseis 169 euro prota geia na sou kanoun egkatastasi to pc kai meta 49 euro to mina.
-
pos kaneis source ena pack me to eclipse help ligo
Red-Hair-Shanks replied to ntelis1's question in Request Server Development Help [Greek]
den ginete aposw 3erw afto pou 8es! ama exei svn mono. ti pack exeis? -
/* * 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.it.br.gameserver.handler.chathandlers; import java.util.StringTokenizer; import java.util.logging.Logger; import com.it.br.Config; import com.it.br.gameserver.handler.DonatorCommandHandler; import com.it.br.gameserver.handler.VipCommandHandler; import com.it.br.gameserver.handler.IChatHandler; import com.it.br.gameserver.handler.IDonatorCommandHandler; import com.it.br.gameserver.handler.IVipCommandHandler; import com.it.br.gameserver.handler.IVoicedCommandHandler; import com.it.br.gameserver.handler.VoicedCommandHandler; import com.it.br.gameserver.model.actor.instance.L2PcInstance; import com.it.br.gameserver.serverpackets.CreatureSay; public class ChatAll implements IChatHandler { private static final int[] COMMAND_IDS = { 0 }; private static Logger _log = Logger.getLogger(ChatAll.class.getName()); /** * Handle chat type 'all' * * @see com.it.br.gameserver.handler.IChatHandler#handleChat(int, com.it.br.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */ public void handleChat(int type, L2PcInstance activeChar, String target, String text) { boolean dcd_used = false; boolean vcd_used = false; if (text.startsWith(".")) { StringTokenizer st = new StringTokenizer(text); IVoicedCommandHandler vch; String command = ""; if (st.countTokens() > 1) { command = st.nextToken().substring(1); target = text.substring(command.length() + 2); vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command); } else { command = text.substring(1); if (Config.DEBUG) { _log.info("Command: " + command); } vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command); } if (vch != null) { vch.useVoicedCommand(command, activeChar, target); } else { if (Config.DEBUG) { _log.warning("No handler registered for bypass '" + command + "'"); } } } else { CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values()) { if (player != null && activeChar.isInsideRadius(player, 1250, false, true)) { if (text.startsWith("!")); { tringTokenizer st = new StringTokenizer(text); IDonatorCommandHandler dch; String command = ""; if (activeChar.isDonator()) { if (st.countTokens() > 1) { command = st.nextToken().substring(1); target = text.substring(command.length() + 2); dch = DonatorCommandHandler.getInstance().getDonatorCommandHandler(command); } else { command = text.substring(1); if (Config.DEBUG) _log.info("Command: " + command); dch = DonatorCommandHandler.getInstance().getDonatorCommandHandler(command); } if (!activeChar.getFloodProtectors().getVoicedCommands().tryPerformAction("voiced command ." + command)) { activeChar.sendMessage("Do not spam voiced commands."); return; } if (dch != null) { dch.useDonatorCommand(command, activeChar, target); dcd_used = true; } else { if (Config.DEBUG) _log.warning("No handler registered for bypass '" + command + "'"); dcd_used = false; } } } if (!vcd_used || !dcd_used) { if (text.startsWith("~")) { StringTokenizer st = new StringTokenizer(text); IVipCommandHandler dch; String command = ""; if (activeChar.isVip()) { if (st.countTokens() > 1) { command = st.nextToken().substring(1); target = text.substring(command.length() + 2); dch = VipCommandHandler.getInstance().getVipCommandHandler(command); } else { command = text.substring(1); if (Config.DEBUG) _log.info("Command: " + command); dch = VipCommandHandler.getInstance().getVipCommandHandler(command); } if (!activeChar.getFloodProtectors().getVoicedCommands().tryPerformAction("voiced command ." + command)) { activeChar.sendMessage("Do not spam voiced commands."); return; } if (dch != null) { dch.useVipCommand(command, activeChar, target); dcd_used = true; } else { if (Config.DEBUG) _log.warning("No handler registered for bypass '" + command + "'"); dcd_used = false; } } } if (!vcd_used || !dcd_used) { } player.sendPacket(cs); } } activeChar.sendPacket(cs); } } /** * Returns the chat types registered to this handler * * @see com.it.br.gameserver.handler.IChatHandler#getChatTypeList() */ public int[] getChatTypeList() { return COMMAND_IDS; } } ---------------PROBLEMS--------------------------------------------------------------------- [javac] C:\brazil\L2JBrasil\L2JBrasil_CORE\java\com\it\br\gameserver\handler\chathandlers\ChatAll.java:174: illegal start of expression [javac] public int[] getChatTypeList() [javac] ^ [javac] C:\brazil\L2JBrasil\L2JBrasil_CORE\java\com\it\br\gameserver\handler\chathandlers\ChatAll.java:174: ';' expected [javac] public int[] getChatTypeList() [javac] ^ [javac] C:\brazil\L2JBrasil\L2JBrasil_CORE\java\com\it\br\gameserver\handler\chathandlers\ChatAll.java:179: reached end of file while parsing [javac] } ------------------------------------------------------------------------------------------------------------- pedia ti problima exei to java? help pliz !
