Jump to content
  • 0

[Request].pvp voice command


SaLeoTragem

Question

8 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock