Jump to content

Recommended Posts

Posted

This command increases your pvp by X if you have item Y in your inventory.Currently setted as 1 gold bar :]

 

Go to handler/voicedcommandhandlers and make a new java file called increasepvp.java

In the file insert the following code :

/*
* 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 com.equal.gameserver.handler.voicedcommandhandlers;

import com.equal.gameserver.handler.IVoicedCommandHandler;
import com.equal.gameserver.model.actor.instance.L2PcInstance;

/** 
* @Author Leeroy
* 
*/

public class increasepvp implements IVoicedCommandHandler
{
private static final String[]	VOICED_COMMANDS	= 
{
"increasepvp"	//register the command:OO
};

public boolean useVoicedCommand(String command, L2PcInstance activeChar,
		String target) 
{			
        if(activeChar.getInventory().getItemByItemId(3470) == null) //check for the item
        {
           activeChar.sendMessage("You need 1 event coin to use this command."); //if player doesnt have it ,return this.
          return false;
        }

	if (command.startsWith("increasepvp"))	//read the command		
		{
		activeChar.setPvpKills(+20); // set the pvp kills by +20
		activeChar.getInventory().destroyItemByItemId("increasepvp", 3470, 1, activeChar, activeChar.getTarget()); //destroy the item
		activeChar.sendMessage("Your PvP points has been increased."); //send a message to the character
		activeChar.getPvpKills(); //reload the pvp points.. not sure if it works
		}
	return true;
}

public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

 

and register the command by this method:

Go to MasterHandler.java and add

 

import com.equa;.gameserver.handler.voicedcommandhandlers.stats;
import com.equal.gameserver.handler.voicedcommandhandlers.Stat;
import com.equal.gameserver.handler.voicedcommandhandlers.increasepvp;

and in the downer lines..

      _voicedCommandHandler.registerVoicedCommandHandler(new increasepvp());   
      _log.config("VoicedCommandHandler: Loaded .increasepvp VoiceCommand handler.");   

Tested & working.Im not sure only for the reload pvp method.. but it still works ,just need to relog :P

Posted

You should better take the item first, then check if it has been deleted and update the database and only after that, give the pvps :D But nevermind, its good as that too.

Posted

for me stupid idea, increasing pvp amount by item? woot! it's the same as editing char by gm... get pvp points by making pvps, not by item lol!

Not really.

It can be used as a price for TvT or some kind of event..

Use your imagination and u`ll get that its pretty useful :]

  • 3 months later...
  • 2 years later...
Posted

This command increases your pvp by X if you have item Y in your inventory.Currently setted as 1 gold bar :]

 

Go to handler/voicedcommandhandlers and make a new java file called increasepvp.java

In the file insert the following code :

/*
* 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 com.equal.gameserver.handler.voicedcommandhandlers;

import com.equal.gameserver.handler.IVoicedCommandHandler;
import com.equal.gameserver.model.actor.instance.L2PcInstance;

/** 
* @Author Leeroy
* 
*/

public class increasepvp implements IVoicedCommandHandler
{
private static final String[]	VOICED_COMMANDS	= 
{
"increasepvp"	//register the command:OO
};

public boolean useVoicedCommand(String command, L2PcInstance activeChar,
		String target) 
{			
        if(activeChar.getInventory().getItemByItemId(3470) == null) //check for the item
        {
           activeChar.sendMessage("You need 1 event coin to use this command."); //if player doesnt have it ,return this.
          return false;
        }

	if (command.startsWith("increasepvp"))	//read the command		
		{
		activeChar.setPvpKills(+20); // set the pvp kills by +20
		activeChar.getInventory().destroyItemByItemId("increasepvp", 3470, 1, activeChar, activeChar.getTarget()); //destroy the item
		activeChar.sendMessage("Your PvP points has been increased."); //send a message to the character
		activeChar.getPvpKills(); //reload the pvp points.. not sure if it works
		}
	return true;
}

public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

 

and register the command by this method:

Go to MasterHandler.java and add

 

import com.equa;.gameserver.handler.voicedcommandhandlers.stats;
import com.equal.gameserver.handler.voicedcommandhandlers.Stat;
import com.equal.gameserver.handler.voicedcommandhandlers.increasepvp;

and in the downer lines..

      _voicedCommandHandler.registerVoicedCommandHandler(new increasepvp());   
      _log.config("VoicedCommandHandler: Loaded .increasepvp VoiceCommand handler.");   

Tested & working.Im not sure only for the reload pvp method.. but it still works ,just need to relog :P

 

 

I know this topic is 3 years old but I found it here and it seems to be really interesting for me. The only one think that is wrong in this code is this line:

activeChar.setPvpKills(+20); // set the pvp kills by +20

it means that it is setting PvP kills to 20 when using .increasepvp but it should really increase existing pvp kills. I used

increasePvpKills()

getPvpKills()

updatePvpStatus

but that is giving me error when loading handlers: The method increasePvpKills() is undefined for the type handlers.voicedcommandhandlers.increasepvp

 

Any advise?

 

Posted

 

I know this topic is 3 years old but I found it here and it seems to be really interesting for me. The only one think that is wrong in this code is this line:

activeChar.setPvpKills(+20); // set the pvp kills by +20

it means that it is setting PvP kills to 20 when using .increasepvp but it should really increase existing pvp kills. I used

increasePvpKills()

getPvpKills()

updatePvpStatus

but that is giving me error when loading handlers: The method increasePvpKills() is undefined for the type handlers.voicedcommandhandlers.increasepvp

 

Any advise?

make it

 

activeChar.setPvpKills(activeChar.getPvpKills()+20);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • corruption made this server become empty from 3rd day,only few randoms playing.
    • ▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ▓▓▓▓▓▓▓▓▓▒▒▒░░░ REVERSECODE-TEAM ░░░▒▒▒▓▓▓▓▓▓▓▓▓▓▓ ▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ l2off-gracia-final [PTS] L2server.exe x64  added support  windows 10  !!! added protocol  20 support !!! added protocol  87 support !!! added protocol 152 support !!! all support protocol 20,83,87,152 fix key start server !!! fix .txt !!! fix .bak !!! fix Malloc - ??? fix Bit flag !!!  fix spam no error airship move !!! VIDEO TEST PROTOCOL  87 LINK - https://goo.su/Mhazfmz < VIDEO TEST PROTOCOL 152 LINK - https://goo.su/8rPanR  < ▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▬▬▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬  the work will continue - THIS EXAMPLE ! ✯✯✯✯✯✯✯✯✯✯✯✯ UPDATE ✯✯✯✯✯✯✯✯✯✯✯✯✯✯ LINEAGE2 ESSENCE HIGH-ELVES 464 EU  [Date 23.04.2024][LANG:EUROPE-ORIGINAL] Clean System Patch Lineage 2 L2exe + Core.dll + Engine.dll unpacked*super clean 100% [unpacked REVERSECODE-TEAM ] [ Kill game guard ][ Kill FROST ] [ Kill AwesomiumProcess ] [SELL WTS PM ME ]       VIDEO GAME TEST LINK - https://goo.su/lFp327N   <   VIDEO DEVMODE LINK -  https://goo.su/yjAVk   < DEVMODE - works tested 100% pv+sv+nv ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ ✯✯✯✯✯✯✯✯✯✯✯✯ UPDATE ✯✯✯✯✯✯✯✯✯✯✯✯✯✯ LINEAGE2 MAIN SHIELD OF THE KINGDOM 474-EU [Date 30.07.2024][LANG:EUROPE-ORIGINAL] Clean System Patch Lineage 2 L2exe + Core.dll + Engine.dll unpacked*super clean 100% [LobbyMapChange added config Switch.ini] [unpacked REVERSECODE-TEAM ] [ Kill game guard ][ Kill FROST ] [ Kill AwesomiumProcess ][ LCID FIX ] [SELL WTS PM ME ]   VIDEO DEVMODE LINK - https://goo.su/jxQmAk   < DEVMODE - works tested 100% pv+sv+nv ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯  VIDEO DEVMODE LINK -  https://goo.su/43WKOD < DEVMODE - works tested 100% pv+sv+nv ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ ✯✯✯✯✯✯✯✯✯✯✯✯ UPDATE ✯✯✯✯✯✯✯✯✯✯✯✯✯✯ LINEAGE2 [MAIN] SUPERION 502 EU [UPDATE 13.01.2025][LANG:EUROPE-ORIGINAL] Clean System Patch Lineage 2 L2exe + Core.dll + Engine.dll unpacked*super clean 100% [unpacked REVERSECODE-TEAM ] [ Kill game guard ][ Kill FROST ] [ Kill AwesomiumProcess ] [SELL WTS PM ME ] VIDEO TEST LINK - https://goo.su/jmFi8H8  ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ ✯✯✯✯✯✯✯✯✯✯✯✯ UPDATE ✯✯✯✯✯✯✯✯✯✯✯✯✯✯ LINEAGE2 ESSENCE TYPE-PTS2 WARG 507 EU [Date 26.03.2025][LANG:EUROPE-ORIGINAL] Clean System Patch Lineage 2 Core.dll + Engine.dll unpacked*super clean 100% [unpacked REVERSECODE-TEAM ] [ Kill game guard ][ Kill FROST ] [ Kill AwesomiumProcess ][patched] [SELL WTS PM ME ] VIDEO GAME TEST LINK - https://goo.su/0rTsCUJ  <  VIDEO DEVMODE LINK -   https://goo.su/F1qrx   < [DEVMODE full fixed x3 classic,aden,main,all commands work] adapting to the new version DEVMODE full fixed x3 classic,aden,main works tested 100% pv+sv+nv All buttons and all commands work.  VIDEO SPECIAL DEVMODE LINK - - https://goo.su/85YbU   < ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ ✯✯✯✯✯✯✯✯✯✯✯ UPDATE ✯✯✯✯✯✯✯✯✯✯✯✯✯✯ [MAIN] LINEAGE2 Cold Witch 516 KR  [UPDATE 01.04.2025][LANG:KOREAN-ORIGINAL] Clean System Patch Lineage 2 Core.dll + Engine.dll unpacked*super clean 100% [unpacked  RED-TEAM REVERSECODE-TEAM ] [ Kill game guard ][ Kill FROST ] [ Kill AwesomiumProcess ] [SELL WTS PM ME ][DEVMODE-BETA] VIDEO GAME TEST LINK  - https://goo.su/yotKnWL  < VIDEO DEVMODE TEST GAME  - https://goo.su/08UnUHN < DEVMODE - works tested 100% pv+sv+nv ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ ✯✯✯✯✯✯✯✯✯✯✯✯ UPDATE ✯✯✯✯✯✯✯✯✯✯✯✯✯✯ LINEAGE2 ESSENCE WOLF 507 EU [UPDATE 29.04.2025][LANG:EUROPE-ORIGINAL] [patched] Clean System Patch Lineage 2  Core.dll + Engine.dll unpacked*super clean 100% [unpacked REVERSECODE-TEAM ] [ Kill game guard ][ Kill FROST ] [ Kill AwesomiumProcess ] [SELL WTS PM ME ] VIDEO~OFFICIAL 4GAME TEST - https://goo.su/UrZhe < VIDEO~ADMIN NEVER DIE ^_^ - https://goo.su/sL5Eok < DEVMODE VIDEO MAPS WOLF - https://goo.su/xhgEfI  < ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ in my profile there is a link to my discord group  we write all the questions there - if you are interested in something ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯  REVERSECODE-TEAM  Service Creating Full Clean Patched Systems  Unreal Scripts / Reverse Enginering / Game Client Modifications Portfolio Discord Group https://discord.gg/56EuZyFJj2   ✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯✯ DO NOT LEAVE POSTS IN THIS SECTION  IF YOU HAVE ANY QUESTIONS, CONTACT US IN THE DISCORD AND ASK YOUR QUESTIONS ( prices are shown in green text in the first post ) Anyone who leaves a message in this section will be denied services and the post will be deleted. [  A large selection of Products In our group at the link in the Discord   ]          
    • it's great that you know who these files come from... you shouldn't forget vanganth too! now it is very easy, you take my last revision of svn and compare it against those files.... when you finish analyzing and comparing you should do the following... which will be very easy to check...   once everything is checked, analyze what did L2Devs do hahaha   I who give away the files, make me problem. L2Devs is SCAMMING people, selling something free and you don't say anything... It is something very strange what happens .... Besides you ripped me off 100usd, but I hope you got server to eat at least. PD: the day you take it back and return my 100usd I will forgive you and pretend that nothing ever happened 😉
    • 🔥 Apresentação I present to you a new fully customized DressMe system, developed for DreamV2, inspired by the best servers and enhanced with unique features that guarantee performance, customization and stunning visuals. ✨ Funcionalidades ✅ Aplicação de visual de armas e armaduras sem alterar o item real equipado. ✅ Compatível com qualquer tipo de arma/armadura (ex: skins de bow visíveis apenas com bows equipados). ✅ Remoção automática do visual quando parte do set real é desequipada. ✅ Efeitos visuais (skills) aplicados com suporte a: Aplicação única ou recorrente Intervalo configurável via XML Remoção automática ao desativar o visual ✅ Interface limpa e lógica modular, fácil de expandir com novos visuais ou efeitos.     <?xml version="1.0" encoding="UTF-8"?> <dressMeList> <dress skillId="9100" name="Draconic Armor" type="ARMOR" isVip="false" > <visualSet chest="6379" legs="0" gloves="6380" feet="6381" helmet="6841" /> <visualEffect skillId="445" level="1" recurring="true" interval="35" /> </dress> <dress skillId="9102" name="Cloak Style Armor" type="CLOAK" isVip="false"> <visualSet chest="7000" legs="0" gloves="0" feet="0" helmet="0" /> <visualEffect skillId="10005" level="1" recurring="false" /> </dress> <dress skillId="9103" name="Valakas Style Weapon" type="WEAPON" isVip="false"> <visualWep type="bow" rhand="7575" lhand="0" lrhand="0" /> <visualEffect skillId="10005" level="1" recurring="false" /> </dress> </dressMeList> 📸 Imagens & Vídeo 🛠️ Detalhes Técnicos Desenvolvido com base no L2J DreamV2 Integração direta com L2PcInstance, Inventory, ThreadPoolManager e SkillTable Sistema de gerenciamento central via DressMeEffectManager Agendamento e cancelamento seguro de efeitos recorrentes Totalmente thread-safe e compatível com jogadores offline 📂 Instalação A instalação é feita via patch e inclui: Classes: DressMeHolder, DressMeEffectManager, modificações em L2PcInstance XML de exemplo Suporte completo à expansão por armas, cloaks e visuais parciais 📎 Download https://pastebin.com/raw/7i843yKh 💬 Feedback & Sugestões Sinta-se à vontade para comentar abaixo com sugestões, dúvidas ou feedbacks. Toda contribuição é bem-vinda para futuras versões!
    • @Tinker123aa Guytis, I have nothing against you, but it's very clear to me who is behind this files. I'm talking about the one that came with the captcha anti-bot system. I personally bought it from the real owner, who was one of the administrators of L2Gold.cc. This can be confirmed by him if he wishes. 😊 Maybe you worked on the files, but they didn’t start from you.   To the people trying to buy the files I’m just advising you not to waste your money. This is 100% verified information.   I honestly don't know how people believe you. 🙂 I'll share the link to the guy's topic below.   ps  
  • Topics

×
×
  • 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