Jump to content

Natsu

Members
  • Posts

    451
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Natsu

  1. to patisa afto m eftia3e sto L2Pcinstance ena alo codika kai efige to error malon li8ike pistevo :)
  2. /* * 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 handlers.voicedcommandhandlers; import com.l2jserver.Config; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.SetupGauge; import com.l2jserver.gameserver.ThreadPoolManager; public class FarmPvPCmd implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "farm1" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { int placex; int placey; int placez; String message; if(command.equalsIgnoreCase("farm1") && Config.Allow_Farm1_Command) { placex = Config.Farm1_X; placey = Config.Farm1_Y; placez = Config.Farm1_Z; message = Config.Farm1_Custom_Meesage; } if(activeChar.isInJail()) { activeChar.sendMessage("Sorry,you are in Jail!"); return false; } else if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("Sorry,you are in the Olympiad now."); return false; } else if(activeChar.atEvent) { activeChar.sendMessage("Sorry,you are in an event."); return false; } else if(activeChar.isInDuel()) { activeChar.sendMessage("Sorry,you are in a duel!"); return false; } else if(activeChar.inObserverMode()) { activeChar.sendMessage("Sorry,you are in the observation mode."); return false; } else if(activeChar.isFestivalParticipant()) { activeChar.sendMessage("Sorry,you are in a festival."); return false; } else if(!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_GK && activeChar.getKarma() > 0) { activeChar.sendMessage("Sorry,you are PK"); return false; } SetupGauge sg = new SetupGauge(SetupGauge.BLUE, 15000); activeChar.sendPacket(sg); sg = null; activeChar.setIsImobilised(true); ThreadPoolManager.getInstance().scheduleGeneral(new teleportTask(activeChar, placex, placey, placez, message), 15000); return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } class teleportTask implements Runnable { private final L2PcInstance _activeChar; private final int _x; private final int _y; private final int _z; private final String _message; teleportTask(L2PcInstance activeChar, int x, int y, int z, String message) { _activeChar = activeChar; _x = x; _y = y; _z = z; _message = message; } public void run() { if(_activeChar == null) return; _activeChar.teleToLocation(_x, _y, _z); _activeChar.sendMessage(_message); _activeChar.setIsImobilised(false); } } }
  3. se ena comand pou exw m vgazi ena error kai den 3erw pos to fix :) (freya pack) activeChar.setIsImobilised(true); ama 3eri aknis pio einai to prob. pite m ty :P
  4. afto exw twra alla pira to new apo hol kai to skeftome :)
  5. Borite na m pite thn gnomisas pio einai kalitero modem? Alcatel-Lucent CellPipe 7130 (to new ths hol) kai Lynksys by cisco WAG54G2 ama borite na me help ty :)
  6. {GR} exw to idio problima mipos 3eris kanis pos to fix??? (freya exw :P )
  7. ty :)
  8. telika pio eiani to problima??
  9. afou etsi to exi http://maxcheaters.com/forum/index.php?topic=66290.0 :)
  10. vazo sto enterworld.java afto ton code kai m vgazi ena error 3eris kanis pos to fix if(Config.ONLINE_PLAYERS_ON_LOGIN) { sm = new SystemMessage(SystemMessageId.S1_S2); sm.addString("There are " + L2World.getInstance().getAllPlayers().size() + " players online."); sendPacket(sm); }
  11. ok to vrika ty :)
  12. vasika afto to creauresay den katalava ti na kano :)
  13. nai evala afto ton codiko sto Eneterworld.java kai m vgazi ta error pou vlepis afto me to RED einai ta error :)
  14. to java code sto opio na doulepsi to //reload me html oxi //reload skills*
  15. ti? den se epiasa
  16. freya pack exw kai prospa8o na katalavo to error bori kapios na me help?? if(Config.PM_MESSAGE_ON_START) { CreatureSay np = new CreatureSay(2, Say2.HERO_VOICE,Config.PM_TEXT1,Config.PM_SERVER_NAME); CreatureSay na = new CreatureSay(15, Say2.PARTYROOM_COMMANDER,activeChar.getName(),Config.PM_TEXT2); activeChar.sendPacket(np); activeChar.sendPacket(na); } if(Config.SERVER_TIME_ON_START) { activeChar.sendMessage("SVR time is " + fmt.format(new Date(System.currentTimeMillis()))); }
  17. mipos 3eri kansi to code gia //reload [freya] :P
  18. popoo ty :)
  19. einai official skills tou l2 pos na sto po skills invisible mono sto status 8enete oxi passive active kai me to rr vgenoun
  20. mipos 3eri kapios ta ID se invisible skills pou sou dinoun trelo status kai vgenoun me to rr??? :)
  21. den litourgi pata kai katevaseto eki pou telioni ta 20 sec meta lei error
  22. Mipos exi kanis afto edw to http://www.maxcheaters.com/forum/index.php?topic=136688.0 gt to link einai dead kai an to anevasi kapou :)
  23. einai afto edw to event http://www.maxcheaters.com/forum/index.php?topic=186713.0 alla den 3erw pos to alazo afto.. package com.l2jserver.gameserver.network.serverpackets; + +import net.phoenixengine.PhoenixInterface; change? import com.l2jserver.phoenixengine.PhoenixInterface; or import com.l2jserver.PhoenixInterface;
  24. pio arxio?? :P pes to name
  25. pantou sto chat system genikos sto cilent
×
×
  • Create New...