Page 1 of 1

repair code

Posted: Wed Mar 03, 2010 7:47 pm
by SHoOcKkiron
this code dont work. why??

Code: Select all

/* * 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 handlers.voicedcommandhandlers;  import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import handlers.voicedcommandhandlers.wannapwn; public class wannapwn implements IVoicedCommandHandler{public static final String[] _voicedCommands = { "wannapwn" };/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */public boolean wannapwn(String command, L2PcInstance activeChar, String target){ if (command.equalsIgnoreCase("wannapwn")){ if (activeChar == null){return false;} L2PcInstance player;String targetName = command.substring(17);player = L2World.getInstance().getPlayer(targetName); if(player == null){activeChar.sendMessage("Your target is not online.");return false;}else if(player.isInJail()){activeChar.sendMessage("Your target is in Jail.");return false;}else if(player.isInOlympiadMode()){activeChar.sendMessage("Your target is in the Olympiad now.");return false;}else if(player.atEvent){activeChar.sendMessage("Your target is in an event.");return false;}else if (player.isInDuel()){activeChar.sendMessage("Your target is in a duel.");return false;}else if (player.isFestivalParticipant()){activeChar.sendMessage("Your target is in a festival.");return false;}else if (player.isInParty() && player.getParty().isInDimensionalRift()){activeChar.sendMessage("Your target is in dimensional rift.");return false;}else if (player.inObserverMode()){activeChar.sendMessage("Your target is in the observation.");}else if(player.getClan() != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("Your target is in siege, you can't go to your leader.");return false;} else if(activeChar.isInJail()){activeChar.sendMessage("You are in Jail!");return false;}else if(activeChar.isInOlympiadMode()){activeChar.sendMessage("You are in the Olympiad now.");return false;}else if(activeChar.atEvent){activeChar.sendMessage("You are in an event.");return false;}else if (activeChar.isInDuel()){activeChar.sendMessage("You are in a duel!");return false;}else if (activeChar.inObserverMode()){activeChar.sendMessage("You are in the observation.");}else if(activeChar.getClan() != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("You are in siege, you can't go to your target.");return false;}else if (activeChar.isFestivalParticipant()){activeChar.sendMessage("You are in a festival.");return false;}else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()){activeChar.sendMessage("You are in the dimensional rift.");return false;}else if (activeChar == player){activeChar.sendMessage("You cannot teleport to yourself.");return false;} int playerx;int playery;int playerz; playerx = player.getX();playery = player.getY();playerz = player.getZ(); activeChar.teleToLocation(playerx,playery,playerz);activeChar.sendMessage("You have been teleported to fight!");}return true;}/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */public String[] getVoicedCommandList(){return _voicedCommands;;}public static void main(String[] args)	{		new wannapwn();	}@Overridepublic boolean useVoicedCommand(String command, L2PcInstance activeChar,		String target) {	// TODO Auto-generated method stub	return false;}}/* * 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 handlers.voicedcommandhandlers;  import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import handlers.voicedcommandhandlers.wannapwn; public class wannapwn implements IVoicedCommandHandler{public static final String[] _voicedCommands = { "wannapwn" };/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */public boolean wannapwn(String command, L2PcInstance activeChar, String target){ if (command.equalsIgnoreCase("wannapwn")){ if (activeChar == null){return false;} L2PcInstance player;String targetName = command.substring(17);player = L2World.getInstance().getPlayer(targetName); if(player == null){activeChar.sendMessage("Your target is not online.");return false;}else if(player.isInJail()){activeChar.sendMessage("Your target is in Jail.");return false;}else if(player.isInOlympiadMode()){activeChar.sendMessage("Your target is in the Olympiad now.");return false;}else if(player.atEvent){activeChar.sendMessage("Your target is in an event.");return false;}else if (player.isInDuel()){activeChar.sendMessage("Your target is in a duel.");return false;}else if (player.isFestivalParticipant()){activeChar.sendMessage("Your target is in a festival.");return false;}else if (player.isInParty() && player.getParty().isInDimensionalRift()){activeChar.sendMessage("Your target is in dimensional rift.");return false;}else if (player.inObserverMode()){activeChar.sendMessage("Your target is in the observation.");}else if(player.getClan() != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("Your target is in siege, you can't go to your leader.");return false;} else if(activeChar.isInJail()){activeChar.sendMessage("You are in Jail!");return false;}else if(activeChar.isInOlympiadMode()){activeChar.sendMessage("You are in the Olympiad now.");return false;}else if(activeChar.atEvent){activeChar.sendMessage("You are in an event.");return false;}else if (activeChar.isInDuel()){activeChar.sendMessage("You are in a duel!");return false;}else if (activeChar.inObserverMode()){activeChar.sendMessage("You are in the observation.");}else if(activeChar.getClan() != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("You are in siege, you can't go to your target.");return false;}else if (activeChar.isFestivalParticipant()){activeChar.sendMessage("You are in a festival.");return false;}else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()){activeChar.sendMessage("You are in the dimensional rift.");return false;}else if (activeChar == player){activeChar.sendMessage("You cannot teleport to yourself.");return false;} int playerx;int playery;int playerz; playerx = player.getX();playery = player.getY();playerz = player.getZ(); activeChar.teleToLocation(playerx,playery,playerz);activeChar.sendMessage("You have been teleported to fight!");}return true;}/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */public String[] getVoicedCommandList(){return _voicedCommands;;}public static void main(String[] args)	{		new wannapwn();	}@Overridepublic boolean useVoicedCommand(String command, L2PcInstance activeChar,		String target) {	// TODO Auto-generated method stub	return false;}}/* * 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 handlers.voicedcommandhandlers;  import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import handlers.voicedcommandhandlers.wannapwn; public class wannapwn implements IVoicedCommandHandler{public static final String[] _voicedCommands = { "wannapwn" };/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */public boolean wannapwn(String command, L2PcInstance activeChar, String target){ if (command.equalsIgnoreCase("wannapwn")){ if (activeChar == null){return false;} L2PcInstance player;String targetName = command.substring(17);player = L2World.getInstance().getPlayer(targetName); if(player == null){activeChar.sendMessage("Your target is not online.");return false;}else if(player.isInJail()){activeChar.sendMessage("Your target is in Jail.");return false;}else if(player.isInOlympiadMode()){activeChar.sendMessage("Your target is in the Olympiad now.");return false;}else if(player.atEvent){activeChar.sendMessage("Your target is in an event.");return false;}else if (player.isInDuel()){activeChar.sendMessage("Your target is in a duel.");return false;}else if (player.isFestivalParticipant()){activeChar.sendMessage("Your target is in a festival.");return false;}else if (player.isInParty() && player.getParty().isInDimensionalRift()){activeChar.sendMessage("Your target is in dimensional rift.");return false;}else if (player.inObserverMode()){activeChar.sendMessage("Your target is in the observation.");}else if(player.getClan() != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("Your target is in siege, you can't go to your leader.");return false;} else if(activeChar.isInJail()){activeChar.sendMessage("You are in Jail!");return false;}else if(activeChar.isInOlympiadMode()){activeChar.sendMessage("You are in the Olympiad now.");return false;}else if(activeChar.atEvent){activeChar.sendMessage("You are in an event.");return false;}else if (activeChar.isInDuel()){activeChar.sendMessage("You are in a duel!");return false;}else if (activeChar.inObserverMode()){activeChar.sendMessage("You are in the observation.");}else if(activeChar.getClan() != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("You are in siege, you can't go to your target.");return false;}else if (activeChar.isFestivalParticipant()){activeChar.sendMessage("You are in a festival.");return false;}else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()){activeChar.sendMessage("You are in the dimensional rift.");return false;}else if (activeChar == player){activeChar.sendMessage("You cannot teleport to yourself.");return false;} int playerx;int playery;int playerz; playerx = player.getX();playery = player.getY();playerz = player.getZ(); activeChar.teleToLocation(playerx,playery,playerz);activeChar.sendMessage("You have been teleported to fight!");}return true;}/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */public String[] getVoicedCommandList(){return _voicedCommands;;}public static void main(String[] args)	{		new wannapwn();	}@Overridepublic boolean useVoicedCommand(String command, L2PcInstance activeChar,		String target) {	// TODO Auto-generated method stub	return false;}}/* * 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 handlers.voicedcommandhandlers;  import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import handlers.voicedcommandhandlers.wannapwn; public class wannapwn implements IVoicedCommandHandler{public static final String[] _voicedCommands = { "wannapwn" };/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */public boolean wannapwn(String command, L2PcInstance activeChar, String target){ if (command.equalsIgnoreCase("wannapwn")){ if (activeChar == null){return false;} L2PcInstance player;String targetName = command.substring(17);player = L2World.getInstance().getPlayer(targetName); if(player == null){activeChar.sendMessage("Your target is not online.");return false;}else if(player.isInJail()){activeChar.sendMessage("Your target is in Jail.");return false;}else if(player.isInOlympiadMode()){activeChar.sendMessage("Your target is in the Olympiad now.");return false;}else if(player.atEvent){activeChar.sendMessage("Your target is in an event.");return false;}else if (player.isInDuel()){activeChar.sendMessage("Your target is in a duel.");return false;}else if (player.isFestivalParticipant()){activeChar.sendMessage("Your target is in a festival.");return false;}else if (player.isInParty() && player.getParty().isInDimensionalRift()){activeChar.sendMessage("Your target is in dimensional rift.");return false;}else if (player.inObserverMode()){activeChar.sendMessage("Your target is in the observation.");}else if(player.getClan() != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("Your target is in siege, you can't go to your leader.");return false;} else if(activeChar.isInJail()){activeChar.sendMessage("You are in Jail!");return false;}else if(activeChar.isInOlympiadMode()){activeChar.sendMessage("You are in the Olympiad now.");return false;}else if(activeChar.atEvent){activeChar.sendMessage("You are in an event.");return false;}else if (activeChar.isInDuel()){activeChar.sendMessage("You are in a duel!");return false;}else if (activeChar.inObserverMode()){activeChar.sendMessage("You are in the observation.");}else if(activeChar.getClan() != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("You are in siege, you can't go to your target.");return false;}else if (activeChar.isFestivalParticipant()){activeChar.sendMessage("You are in a festival.");return false;}else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()){activeChar.sendMessage("You are in the dimensional rift.");return false;}else if (activeChar == player){activeChar.sendMessage("You cannot teleport to yourself.");return false;} int playerx;int playery;int playerz; playerx = player.getX();playery = player.getY();playerz = player.getZ(); activeChar.teleToLocation(playerx,playery,playerz);activeChar.sendMessage("You have been teleported to fight!");}return true;}/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */public String[] getVoicedCommandList(){return _voicedCommands;;}public static void main(String[] args)	{		new wannapwn();	}@Overridepublic boolean useVoicedCommand(String command, L2PcInstance activeChar,		String target) {	// TODO Auto-generated method stub	return false;}}/* * 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 handlers.voicedcommandhandlers;  import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import handlers.voicedcommandhandlers.wannapwn; public class wannapwn implements IVoicedCommandHandler{public static final String[] _voicedCommands = { "wannapwn" };/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */public boolean wannapwn(String command, L2PcInstance activeChar, String target){ if (command.equalsIgnoreCase("wannapwn")){ if (activeChar == null){return false;} L2PcInstance player;String targetName = command.substring(17);player = L2World.getInstance().getPlayer(targetName); if(player == null){activeChar.sendMessage("Your target is not online.");return false;}else if(player.isInJail()){activeChar.sendMessage("Your target is in Jail.");return false;}else if(player.isInOlympiadMode()){activeChar.sendMessage("Your target is in the Olympiad now.");return false;}else if(player.atEvent){activeChar.sendMessage("Your target is in an event.");return false;}else if (player.isInDuel()){activeChar.sendMessage("Your target is in a duel.");return false;}else if (player.isFestivalParticipant()){activeChar.sendMessage("Your target is in a festival.");return false;}else if (player.isInParty() && player.getParty().isInDimensionalRift()){activeChar.sendMessage("Your target is in dimensional rift.");return false;}else if (player.inObserverMode()){activeChar.sendMessage("Your target is in the observation.");}else if(player.getClan() != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("Your target is in siege, you can't go to your leader.");return false;} else if(activeChar.isInJail()){activeChar.sendMessage("You are in Jail!");return false;}else if(activeChar.isInOlympiadMode()){activeChar.sendMessage("You are in the Olympiad now.");return false;}else if(activeChar.atEvent){activeChar.sendMessage("You are in an event.");return false;}else if (activeChar.isInDuel()){activeChar.sendMessage("You are in a duel!");return false;}else if (activeChar.inObserverMode()){activeChar.sendMessage("You are in the observation.");}else if(activeChar.getClan() != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("You are in siege, you can't go to your target.");return false;}else if (activeChar.isFestivalParticipant()){activeChar.sendMessage("You are in a festival.");return false;}else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()){activeChar.sendMessage("You are in the dimensional rift.");return false;}else if (activeChar == player){activeChar.sendMessage("You cannot teleport to yourself.");return false;} int playerx;int playery;int playerz; playerx = player.getX();playery = player.getY();playerz = player.getZ(); activeChar.teleToLocation(playerx,playery,playerz);activeChar.sendMessage("You have been teleported to fight!");}return true;}/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */public String[] getVoicedCommandList(){return _voicedCommands;;}public static void main(String[] args)	{		new wannapwn();	}@Overridepublic boolean useVoicedCommand(String command, L2PcInstance activeChar,		String target) {	// TODO Auto-generated method stub	return false;}}/* * 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 handlers.voicedcommandhandlers;  import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;import net.sf.l2j.gameserver.instancemanager.CastleManager;import net.sf.l2j.gameserver.model.L2World;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import handlers.voicedcommandhandlers.wannapwn; public class wannapwn implements IVoicedCommandHandler{public static final String[] _voicedCommands = { "wannapwn" };/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */public boolean wannapwn(String command, L2PcInstance activeChar, String target){ if (command.equalsIgnoreCase("wannapwn")){ if (activeChar == null){return false;} L2PcInstance player;String targetName = command.substring(17);player = L2World.getInstance().getPlayer(targetName); if(player == null){activeChar.sendMessage("Your target is not online.");return false;}else if(player.isInJail()){activeChar.sendMessage("Your target is in Jail.");return false;}else if(player.isInOlympiadMode()){activeChar.sendMessage("Your target is in the Olympiad now.");return false;}else if(player.atEvent){activeChar.sendMessage("Your target is in an event.");return false;}else if (player.isInDuel()){activeChar.sendMessage("Your target is in a duel.");return false;}else if (player.isFestivalParticipant()){activeChar.sendMessage("Your target is in a festival.");return false;}else if (player.isInParty() && player.getParty().isInDimensionalRift()){activeChar.sendMessage("Your target is in dimensional rift.");return false;}else if (player.inObserverMode()){activeChar.sendMessage("Your target is in the observation.");}else if(player.getClan() != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("Your target is in siege, you can't go to your leader.");return false;} else if(activeChar.isInJail()){activeChar.sendMessage("You are in Jail!");return false;}else if(activeChar.isInOlympiadMode()){activeChar.sendMessage("You are in the Olympiad now.");return false;}else if(activeChar.atEvent){activeChar.sendMessage("You are in an event.");return false;}else if (activeChar.isInDuel()){activeChar.sendMessage("You are in a duel!");return false;}else if (activeChar.inObserverMode()){activeChar.sendMessage("You are in the observation.");}else if(activeChar.getClan() != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null&& CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()){activeChar.sendMessage("You are in siege, you can't go to your target.");return false;}else if (activeChar.isFestivalParticipant()){activeChar.sendMessage("You are in a festival.");return false;}else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()){activeChar.sendMessage("You are in the dimensional rift.");return false;}else if (activeChar == player){activeChar.sendMessage("You cannot teleport to yourself.");return false;} int playerx;int playery;int playerz; playerx = player.getX();playery = player.getY();playerz = player.getZ(); activeChar.teleToLocation(playerx,playery,playerz);activeChar.sendMessage("You have been teleported to fight!");}return true;}/** *  * @see net.sf.l2j.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */public String[] getVoicedCommandList(){return _voicedCommands;;}public static void main(String[] args)	{		new wannapwn();	}@Overridepublic boolean useVoicedCommand(String command, L2PcInstance activeChar,		String target) {	// TODO Auto-generated method stub	return false;}}

this code is a wannapwn. it teleport a player to another player

test and repair please

help me :(

Re: repair code

Posted: Wed Mar 03, 2010 9:15 pm
by theone
Well, first of all your identations are all messed up...
But let me ask you this: Did you at least try to look at the code and find what's not working?
This is not a "debug me this" forum, it's a place to learn and share. Asking "test and repair please" wont convince anyone to help you, and I would be disappointed if anyone did.
First try to fix it yourself, then come back with pertinent questions, and also your complete console error code, then you will get help.
Running a L2J server should be a learning experience, if you dont want to learn then... use an un-modified version.
Nothing you get on these forums(scripts/code) is plug-and-play, but this is half the fun actually. :)

Re: repair code

Posted: Wed Mar 03, 2010 9:21 pm
by BiggBoss
do you have the permission of the code owner to edit/use it?

//summon DrHouse

Re: repair code

Posted: Wed Mar 03, 2010 9:36 pm
by Mayhem
theone wrote:This is not a "debug me this" forum, it's a place to learn and share. Asking "test and repair please" wont convince anyone to help you, and I would be disappointed if anyone did.
Well that's like your opinion man.
If no one wants to help him no one will. If someone wants to help him, he will. You gave him an hint, that was maybe enough :)

Re: repair code

Posted: Wed Mar 03, 2010 9:58 pm
by _DS_
Not a feature requests, moved to support.

Re: repair code

Posted: Wed Mar 03, 2010 11:52 pm
by SHoOcKkiron
I tried to fix it but I did not succeed as not what is wrong so I ask help directly.
I've been trying 3 months

I was using google tradutctor. sorry

Re: repair code

Posted: Thu Mar 04, 2010 10:37 am
by rocoder
SHoOcKkiron wrote: I've been trying 3 months
:lol: :lol: