ellinak0s
Members-
Posts
155 -
Credits
0 -
Joined
-
Last visited
Never -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by ellinak0s
-
{help}CUSTOM TITTLE PROBLEM
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
to ekana to tittle thanks gia ali mia fora :D -
{help}CUSTOM TITTLE PROBLEM
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
newChar.registerShortCut(shortcut); -
{help}CUSTOM TITTLE PROBLEM
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
ok ala piga stin 181 kai ekei exei kati alo grameno? pou na valo to code? na svisw auto?:S -
Hi pedia ime new develope sxetika me to compile kai lei se mia fasi to code: Go to net.sf.l2j.gameserver.clientpackets.CharacterCreate.java at line 181 add Code: if (Config.CHAR_TITLE) newChar.setTitle(Config.ADD_CHAR_TITLE); else newChar.setTitle(""); POS PAW STIN LINE 181?pos tin vriskw?
-
{HELP}Trade Bug Fix
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
gia to bug pou exo sto video pio na perasw apo ta 3?eleos kai auto ine gia gracia pou me edoses :S -
{HELP}Trade Bug Fix
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
mono pou den me voi8ises . 1 code 8elw oxi 100 ena kai kalo -
Xrisimopoiw L][j equal[comipe fisika] pianei auto edw to bug: Mporei kapios na me dosei to code gia na to fixarw?
-
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
IT WORKED!!!!!! REQUEST TO LOCK! KяaSh™ PRAGMATIKA euxaristo poli re file :D -
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
na to antigrapsw kai meta build? -
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
* 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. * * [url=http://www.gnu.org/copyleft/gpl.html]http://www.gnu.org/copyleft/gpl.html[/url] */ package lt.equal.gameserver.handler.admincommandhandlers; import java.util.StringTokenizer; import lt.equal.Config; import lt.equal.gameserver.GmListTable; import lt.equal.gameserver.Olympiad; import lt.equal.gameserver.cache.HtmCache; import lt.equal.gameserver.datatables.ItemTable; import lt.equal.gameserver.datatables.NpcTable; import lt.equal.gameserver.datatables.NpcWalkerRoutesTable; import lt.equal.gameserver.datatables.SkillTable; import lt.equal.gameserver.datatables.TeleportLocationTable; import lt.equal.gameserver.handler.IAdminCommandHandler; import lt.equal.gameserver.instancemanager.Manager; import lt.equal.gameserver.model.GMAudit; import lt.equal.gameserver.model.L2Multisell; import lt.equal.gameserver.model.actor.instance.L2PcInstance; import lt.equal.gameserver.network.SystemMessageId; import lt.equal.gameserver.serverpackets.SystemMessage; /** * This class handles following admin commands: * - admin|admin1/admin2/admin3/admin4/admin5 = slots for the 5 starting admin menus * - gmliston/gmlistoff = includes/excludes active character from /gmlist results * - silence = toggles private messages acceptance mode * - diet = toggles weight penalty mode * - tradeoff = toggles trade acceptance mode * - reload = reloads specified component from multisell|skill|npc|htm|item|instancemanager * - set/set_menu/set_mod = alters specified server setting * - saveolymp = saves olympiad state manually * - manualhero = cycles olympiad and calculate new heroes. * @version $Revision: 1.3.2.1.2.4 $ $Date: 2007/07/28 10:06:06 $ */ public class AdminAdmin implements IAdminCommandHandler { 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_manualhero"}; 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; GMAudit.auditGMAction(activeChar.getName(), command, (activeChar.getTarget() != null?activeChar.getTarget().getName():"no-target"), ""); if (command.startsWith("admin_admin")) { showMainPage(activeChar,command); } else if(command.startsWith("admin_gmliston")) { GmListTable.getInstance().showGm(activeChar); activeChar.sendMessage("Registerd into gm list"); } else if(command.startsWith("admin_gmlistoff")) { GmListTable.getInstance().hideGm(activeChar); activeChar.sendMessage("Removed from gm list"); } else if(command.startsWith("admin_silence")) { if (activeChar.getMessageRefusal()) // already in message refusal mode { activeChar.setMessageRefusal(false); activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_ACCEPTANCE_MODE)); } else { activeChar.setMessageRefusal(true); activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_REFUSAL_MODE)); } } else if(command.startsWith("admin_saveolymp")) { try { Olympiad.getInstance().save(); } catch(Exception e){e.printStackTrace();} activeChar.sendMessage("olympiad stuff saved!!"); } else if(command.startsWith("admin_manualhero")) { try { Olympiad.getInstance().manualSelectHeroes(); } catch(Exception e){e.printStackTrace();} activeChar.sendMessage("Heroes formed"); } else if(command.startsWith("admin_diet")) { try { StringTokenizer st = new StringTokenizer(command); st.nextToken(); if(st.nextToken().equalsIgnoreCase("on")) { activeChar.setDietMode(true); activeChar.sendMessage("Diet mode on"); } else if(st.nextToken().equalsIgnoreCase("off")) { activeChar.setDietMode(false); activeChar.sendMessage("Diet mode off"); } } catch(Exception ex) { if(activeChar.getDietMode()) { activeChar.setDietMode(false); activeChar.sendMessage("Diet mode off"); } else { activeChar.setDietMode(true); activeChar.sendMessage("Diet mode on"); } } finally { activeChar.refreshOverloaded(); } } else if(command.startsWith("admin_tradeoff")) { try { String mode = command.substring(15); if (mode.equalsIgnoreCase("on")) { activeChar.setTradeRefusal(true); activeChar.sendMessage("Trade refusal enabled"); } else if (mode.equalsIgnoreCase("off")) { activeChar.setTradeRefusal(false); activeChar.sendMessage("Trade refusal disabled"); } } catch(Exception ex) { if(activeChar.getTradeRefusal()) { activeChar.setTradeRefusal(false); activeChar.sendMessage("Trade refusal disabled"); } else { activeChar.setTradeRefusal(true); activeChar.sendMessage("Trade refusal enabled"); } } } else if(command.startsWith("admin_reload")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); try { String type = st.nextToken(); if(type.equals("multisell")) { L2Multisell.getInstance().reload(); activeChar.sendMessage("multisell reloaded"); } else if(type.startsWith("teleport")) { TeleportLocationTable.getInstance().reloadAll(); activeChar.sendMessage("teleport location table reloaded"); } else if(type.startsWith("skill")) { SkillTable.getInstance().reload(); activeChar.sendMessage("skills reloaded"); } else if(type.equals("npc")) { NpcTable.getInstance().reloadAllNpc(); activeChar.sendMessage("npcs reloaded"); } else if(type.startsWith("htm")) { HtmCache.getInstance().reload(); activeChar.sendMessage("Cache[html]: " + HtmCache.getInstance().getMemoryUsage() + " megabytes on " + HtmCache.getInstance().getLoadedFiles() + " files loaded"); } else if(type.startsWith("item")) { ItemTable.getInstance().reload(); activeChar.sendMessage("Item templates reloaded"); } else if(type.startsWith("instancemanager")) { Manager.reloadAll(); activeChar.sendMessage("All instance manager has been reloaded"); } else if(type.startsWith("npcwalkers")) { NpcWalkerRoutesTable.getInstance().load(); activeChar.sendMessage("All NPC walker routes have been reloaded"); } } catch(Exception e) { activeChar.sendMessage("Usage: //reload <multisell|skill|npc|htm|item|instancemanager>"); } } else if(command.startsWith("admin_set")) { StringTokenizer st = new StringTokenizer(command); String[] cmd=st.nextToken().split("_"); try { String[] parameter = st.nextToken().split("="); String pName = parameter[0].trim(); String pValue = parameter[1].trim(); if (Config.setParameterValue(pName, pValue)) activeChar.sendMessage("parameter "+pName+" succesfully set to "+pValue); else activeChar.sendMessage("Invalid parameter!"); } catch(Exception e) { if (cmd.length==2) activeChar.sendMessage("Usage: //set parameter=vaue"); } finally { if (cmd.length==3) { if (cmd[2].equalsIgnoreCase("menu")) AdminHelpPage.showHelpPage(activeChar, "settings.htm"); else if (cmd[2].equalsIgnoreCase("mod")) AdminHelpPage.showHelpPage(activeChar, "mods_menu.htm"); } } } return true; } public String[] getAdminCommandList() { return ADMIN_COMMANDS; } private boolean checkLevel(int level) { return (level >= REQUIRED_LEVEL); } private void showMainPage(L2PcInstance activeChar, String command) { int mode = 0; String filename=null; try { mode = Integer.parseInt(command.substring(11)); } catch (Exception e) {} switch (mode) { case 1: filename="main"; break; case 2: filename="game"; break; case 3: filename="effects"; break; case 4: filename="server"; break; case 5: filename="mods"; break; default: if (Config.GM_ADMIN_MENU_STYLE.equals("modern")) filename="main"; else filename="classic"; break; } AdminHelpPage.showHelpPage(activeChar, filename+"_menu.htm"); } } -
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
epsaksa exei mono kati manual hero kati tetioa apo //sethero klp tpt -
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
l2j equal..re min pas off topic apla peste me tropo na valo to sethero -
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
nop..to dokimasa -
{HELP}//SETHERO
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
e ne re //sethero enow.. -
hi ekana compile ena pack. ala dn doulevi to //sethero.mporei na me pei kapios pos mporw na to fix analitika na pianei na kanei hero mexri to rr?plz..thanks
-
{HELP}NOBLES BEGIN!!!!
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
aa ne re c..;p request to lock ta spas commodus ty for all :) -
{HELP}NOBLES BEGIN!!!!
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
ime newbie developer ine 2ti fora pou pernaw java code gi auto auto pou akrivos to grafo? kato apo pou? -
Hi pedes xriazome 1 java code pou oloi oi new players na ine nobles[me liga logia oloi nobless :P]opios ksekinaei na ine nobles kai na exei nobless tiara kai ta skills.plz assap :P
-
hi pedes,molis ekana compile to pack m kai ida pos pianei to trade bug me to alt+h dld auto:http://www.maxcheaters.com/forum/index.php?topic=114024.0 mporei kapios na me dosei to code na to fix.i to link plz apo to fix?milame gia c6 . ty
-
{HELP}L2J COMPILE DESTE ASSAP
ellinak0s posted a question in Request Server Development Help [Greek]
hi pedes 8a i8ela ena link me ta svn gia L2j gia c6 client.perimenw :D -
Hi pedia skeftomai na arxisw me compile/java codes gt ta prec ta vare8ika..dn mporw na kanw oute kan elaxistes alages >:(.8a i8ela na me simbouleusete ta eksis: Kserete Kana Kalo SvN gia na kanw Compile?[MILAME GIA C6] kana link plz..ME KANA Kalo PROJECT GIA C6[na min 8elei maven,mono eclipse] Pos mporw meta ph an den ine fixarismeno 1 bug na to fixaro meso eclipse? 8A ME HELP POLI...pedia :P perimeno apantiseis
-
hi all exw 1 faction pack[dld exei faction system]. otan kanw new player omos tous dixnei 0 hp kai den kanei kan login :'( mporei na li8i auto? i an oxi mporite na me stilete link me pack pou na exei kai faction plz :P
-
Hi all exo 1 shop pou ta spaei..ola ine ok apla fenonte etc:http://img687.imageshack.us/img687/4673/shot00006en.png HELP!!!!!! PLXXXXX tyyy :'(
-
{HELP}L2j Site Template
ellinak0s replied to ellinak0s's question in Request Server Development Help [Greek]
pw...dn kserw ti kanw ...ala den me bgazei kati erros pali :S