Jump to content
  • 0

[Request].pvp voice command


Question

8 answers to this question

Recommended Posts

  • 0
Posted

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;
}
}

  • 0
Posted

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 :(

  • 0
Posted

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

  • 0
Posted

K I'm waiting you man :)

 

Plz do it faaster ;D

 

EDITED :

 

Thx man for help :)

 

Problem solved..

 

@HeyHops

 

Already banned ^^

 

*Locked*

 

 

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