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.


  • Posts

    • Information Selling a premium Lineage 2 High Five (L2J) project with active development, available by subscription. Includes Git support and access to compiled or full source code. Ideal for serious server owners seeking stability and performance, uniqueness and well-done features.   Some feature (Some of the features are driven by a youtube video to get a slight idea of how they look)   1. Tournament Single & Party (Check Youtube Video) 2. Faction (Check Youtube Video) 3. Event Engine (Check Youtube Video) 4. Sell Buff System (Check Youtube Video) 5. Start UP System (Check Youtube Video) 6. User Panel 7. Visual - Dress me System 8. Donate Store 9. Automatic Farm System (Check Youtube Video) 10. Captcha (Anti-BOT) (Check Youtube Video) 11. Auction (Check Youtube Video) 12. Vote (API) 13. Admin Real Time Balance (Check Youtube Video) 14. Achievements (Check Youtube Video) 15. Daily Mission (Check Youtube Video) 16. A.I. Bot (Check Youtube Video) 17. Rebirth 18. Daily Reward  19. Skill Tree - Ability System 20. Craft System 21. Twitch Automatic Reward (Check Youtube Video) 22. Quiz Game (Check Youtube Video) 23. Automatic Item Enchant (Check Youtube Video) 24. Secondary Auth Using Google Authenticator (Check Youtube Video) 25. Gm Shop - Gatekeeper - Scheme Buffer   How to get Access (Payment Subscription): To get Access you either pay monthly subscription to GIT for source or Compiled. Project is currently active and has at least 1-2 commit / day.  Clients in both Compiled & Source subscription can request features or any addon in already existing mods inside discord.   Price per Month (Source) in GIT: 250 Eur Price per Month (Compiled) in GIT: 100 Eur   Contact: To get Access or ask further information join discord  https://discord.gg/gKAsAhJNuq      
    • We're officially closing the current season today. While we focus on refining the Essence project, our resources will temporarily shift toward supporting the Classic server.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...