SaLeoTragem Posted March 31, 2009 Share Posted March 31, 2009 Hi all :) Can someone create a voice command like .pvp .pvp to teleport you in a custom zone where you can make pvp's Ty ;D Link to comment Share on other sites More sharing options...
0 HeyHops Posted March 31, 2009 Share Posted March 31, 2009 1. Create File with Name (PvPTeleport) /* * 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.voicedcommandhandlers; import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; public class PvPTeleport implements IVoicedCommandHandler { private static final String[] _voicedCommands = { "pvp", }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("pvp")) { activeChar.teleToLocation(Config.PVP_X, Config.PVP_Y, Config.PVP_Z); activeChar.sendMessage("You have teleport in PvP Area"); } return true; } public String[] getVoicedCommandList() { return _voicedCommands; } } Link to comment Share on other sites More sharing options...
0 Intrepid Posted March 31, 2009 Share Posted March 31, 2009 Not simple like that need to add checks because with this they can cheat it and need to add a teleport timer too. Link to comment Share on other sites More sharing options...
0 SaLeoTragem Posted March 31, 2009 Author Share Posted March 31, 2009 Buildfile: C:\Users\User\Desktop\Lineage2Java\L2_GameServer_It\build.xml clean: init: version: [exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, The system cannot find the file specified compile: [javac] Compiling 9 source files to C:\Users\User\Desktop\Lineage2Java\L2_GameServer_It\build\classes [javac] C:\Users\User\Desktop\Lineage2Java\L2_GameServer_It\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\PvPTeleport.java:32: cannot find symbol [javac] symbol : variable PVP_83358 [javac] location: class net.sf.l2j.Config [javac] activeChar.teleToLocation(Config.PVP_83358, Config.PVP_147947, Config.PVP_-3405); [javac] ^ [javac] C:\Users\User\Desktop\Lineage2Java\L2_GameServer_It\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\PvPTeleport.java:32: cannot find symbol [javac] symbol : variable PVP_147947 [javac] location: class net.sf.l2j.Config [javac] activeChar.teleToLocation(Config.PVP_83358, Config.PVP_147947, Config.PVP_-3405); [javac] ^ [javac] C:\Users\User\Desktop\Lineage2Java\L2_GameServer_It\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\PvPTeleport.java:32: cannot find symbol [javac] symbol : variable PVP_ [javac] location: class net.sf.l2j.Config [javac] activeChar.teleToLocation(Config.PVP_83358, Config.PVP_147947, Config.PVP_-3405); [javac] ^ [javac] 3 errors BUILD FAILED C:\Users\User\Desktop\Lineage2Java\L2_GameServer_It\build.xml:67: Compile failed; see the compiler error output for details. Total time: 1 second Look What i get if i try to compile :( Link to comment Share on other sites More sharing options...
0 HeyHops Posted March 31, 2009 Share Posted March 31, 2009 http://www.maxcheaters.com/forum/index.php?topic=52965.msg374085#msg374085 Link to comment Share on other sites More sharing options...
0 SaLeoTragem Posted March 31, 2009 Author Share Posted March 31, 2009 K I'm waiting you man :) Plz do it faaster ;D EDITED : Thx man for help :) Link to comment Share on other sites More sharing options...
0 HeyHops Posted March 31, 2009 Share Posted March 31, 2009 K I'm waiting you man :) Plz do it faaster ;D http://www.maxcheaters.com/forum/index.php?topic=52965.msg374085#msg374085 Link to comment Share on other sites More sharing options...
0 HeyHops Posted March 31, 2009 Share Posted March 31, 2009 Not simple like that need to add checks because with this they can cheat it and need to add a teleport timer too. is a only one example :D is not a serius work. :D Link to comment Share on other sites More sharing options...
0 K4rMa Posted April 8, 2009 Share Posted April 8, 2009 K I'm waiting you man :) Plz do it faaster ;D EDITED : Thx man for help :) Problem solved.. @HeyHops Already banned ^^ *Locked* Link to comment Share on other sites More sharing options...
Question
SaLeoTragem
Hi all :)
Can someone create a voice command like .pvp
.pvp to teleport you in a custom zone where you can make pvp's
Ty ;D
Link to comment
Share on other sites
8 answers to this question
Recommended Posts