Jump to content

Recommended Posts

Posted

Hello members of Mxc!! I was looking some Quakes PvP systems for me..After i found some and them worked.. i wanted to put some more things!

 

For example:

1)Announce

2)A ExShowMessage will be showed

3)Get Full HP/CP/MP

4)At every announce to be a special Effect! (In my ocasion i chosed 721 which is anakim's skill!)

5)I wanted to put sounds. But didnt make it! :)

 

Cause im new in this L2j staff!!! i was experimenting on the code with the addons i wanted to put for my own sever!!

 

Okey Let's Start!! I have it on H5 client.

 

Open eclipse and go to ==>: model.actor.instance.l2pcinstance.java

 

Good now press ctrl + f (To make search) and searching for

private int _newbie;

After the line you found copy right above this one :

**Quake System*/
private int quakeSystem = 0;

 

Ok.now press again ctrl + f and search

setPvpKills(getPvpKills() + 1);

Again right above write this one

quakeSystem++;

 

Now leave a line and put the main part code.!

 

switch(quakeSystem) {
        	case 5:
        		 ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 kills in a row", 10000);
        		 sendPacket(case5);
        		 Announcements.getInstance().announceToAll("" + this.getName()+ " is Geting Started!");
        		 MagicSkillUse MS5 = new MagicSkillUse (this, 721, 1, 5, 0);
        		 setCurrentCp(getMaxCp());
        	     setCurrentHp(getMaxHp());
        	     setCurrentMp(getMaxMp());
        	     sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	     sendPacket(MS5);
        		 break;
        	case 10:
        		ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 kills in a row", 10000);
        		sendPacket(case10);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!");
        		MagicSkillUse MS10 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS10);
        		break;
        	case 15:
        		ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 kills in a row", 10000);
        		sendPacket(case15);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is Having dinner! ");
        		MagicSkillUse MS15 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS15);
        		break;
        	case 20:
        		ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 kills in a row", 10000);
        		sendPacket(case20);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree!");
        		MagicSkillUse MS20 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS20);
        		break;
        	case 25:
        		ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 kills in a row", 10000);
        		sendPacket(case25);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Range!");
        		MagicSkillUse MS25 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS25);
        		break;
        	case 30:
        		ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 kills in a row", 10000);
        		sendPacket(case30);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable Killer!");
        		MagicSkillUse MS30 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS30);
        		break;
        	case 35:
        		ExShowScreenMessage case35 = new ExShowScreenMessage("You reached 35 kills in a row", 10000);
        		sendPacket(case35);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is on Terror Mode!");
        		MagicSkillUse MS35 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS35);
        		break;
        	case 40:
        		ExShowScreenMessage case40 = new ExShowScreenMessage("You reached 40 kills in a row", 10000);
        		sendPacket(case40);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is On Fire! Somebody help him!");
        		MagicSkillUse MS40 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS40);
        		break;
        	case 45:
        		ExShowScreenMessage case45 = new ExShowScreenMessage("You reached 45 kills in a row", 10000);
        		sendPacket(case45);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is unbeatable!");
        		MagicSkillUse MS45 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS45);
        		break;
        	case 50:
        		ExShowScreenMessage case50 = new ExShowScreenMessage("You reached 50 kills in a row", 10000);
        		sendPacket(case50);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is Reaper's left hand!");
        		MagicSkillUse MS50 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS50);
        		break;
        	case 55:
        		ExShowScreenMessage case55 = new ExShowScreenMessage("You reached 55 kills in a row", 10000);
        		sendPacket(case55);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " has a real pvp spirit in him!");
        		MagicSkillUse MS55 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS55);
        		break;
        	case 60:
        		ExShowScreenMessage case60 = new ExShowScreenMessage("You reached 60 kills in a row", 10000);
        		sendPacket(case60);
        		Announcements.getInstance().announceToAll("" + this.getName()+ "  is pvp lord!");
        		MagicSkillUse MS60 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS60);
        		break;
        	case 65:
        		ExShowScreenMessage case65 = new ExShowScreenMessage("You reached 65 kills in a row", 10000);
        		sendPacket(case65);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is on pvp frenzy! Stop him!");
        		MagicSkillUse MS65 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS65);
        		break;
        	case 70:
        		ExShowScreenMessage case70 = new ExShowScreenMessage("You reached 70 kills in a row", 10000);
        		sendPacket(case70);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is a f**ing pro gamer!");
        		MagicSkillUse MS70 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS70);
        		break;
        	case 75:
        		ExShowScreenMessage case75 = new ExShowScreenMessage("You reached 75 kills in a row", 10000);
        		sendPacket(case75);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is about to get record!");
        		MagicSkillUse MS75 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS75);
        		break;
        	case 80:
        		ExShowScreenMessage case80 = new ExShowScreenMessage("You reached 80 kills in a row", 10000);
        		sendPacket(case80);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is becoming a legend!");
        		MagicSkillUse MS80 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS80);
        		break;
        	case 85:
        		ExShowScreenMessage case85 = new ExShowScreenMessage("You reached 85 kills in a row", 10000);
        		sendPacket(case85);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is out of his mind! Everyone, get him! ");
        		MagicSkillUse MS85 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS85);
        		break;
        	case 90:
        		ExShowScreenMessage case90 = new ExShowScreenMessage("You reached 90 kills in a row", 10000);
        		sendPacket(case90);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " OMFG! He's getting drugs on his char! 90 PvPs!! ");
        		MagicSkillUse MS90 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS90);
        		break;
        	case 95:
        		ExShowScreenMessage case95 = new ExShowScreenMessage("You reached 95 kills in a row", 10000);
        		sendPacket(case95);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " Losing connection! Someone, stop this disaster ");
        		MagicSkillUse MS95 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS95);
        		break;
        	case 100:
        		ExShowScreenMessage case100 = new ExShowScreenMessage("You reached 100 kills in a row", 10000);
        		sendPacket(case100);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " Chuck Norris has a son! ");
        		MagicSkillUse MS100 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS100);
        		break;
        	case 105:
        		ExShowScreenMessage case105 = new ExShowScreenMessage("You reached 105 kills in a row", 10000);
        		sendPacket(case105);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " Is Everybody's God ");
        		MagicSkillUse MS105 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS105);
        		break;
        	case 110:
        		ExShowScreenMessage case110 = new ExShowScreenMessage("You reached 110 kills in a row", 10000);
        		sendPacket(case110);
        		Announcements.getInstance().announceToAll("" + this.getName()+ " System overload. Cant announce nothing more for this crazy guy");
        		MagicSkillUse MS110 = new MagicSkillUse (this, this, 721, 1, 5, 0);
        		setCurrentCp(getMaxCp());
        	    setCurrentHp(getMaxHp());
        	    setCurrentMp(getMaxMp());
        	    sendMessage(getName() + " HP, CP, MP restored, a present because you have 5 more kills!");
        	    sendPacket(MS110);
        		 default:
        			 ;
        }

 

You can change the Effect,The  Messages,Announces ! It's Very easy.. :)

 

 

Okey Now the final step..!! Press Ctrl + F find this :

 

reviveRequest(this, null, false);
}

 

and under the  }  write this

quakeSystem = 0;

 

So it will be looking like this!! ==>

 

reviveRequest(this,null,false);
}
quakeSystem = 0;

 

PHOTOS

shot00028h.png

 

shot00029f.png

 

shot00030w.png

 

 

If any questions make a reply!

Like i said in the beggining i'm new and took an idea/code of a man and putted addons i wanted to have!!

 

[move]Credits:  MaestroLuke for some part of the code and Me for putting addons and sharing !!  [/move]

Guest
This topic is now closed to further replies.
  • Posts

    • never met a programmer that doesnt know english xD and as he said his knowledge and skills are beyond our imagination xD
    • nice work, welcome back to world of lineage development @melron 😄
    • He's likely baiting you to download his source full of backdoors indeed
    • Yeah inside router i had to enable udnp services 
    • Hello cheaters, As a team of avid developers and enthusiasts of Lineage 2, we are excited to present the L2 Control Hub, a groundbreaking plugin designed by myself and my collaborator, StinkyMadness. This innovative tool equips server administrators with powerful automation capabilities directly within the game's community board. L2 Control Hub simplifies the creation and management of automations, enabling you to customize your server operations without the need to modify the source code.   Key Features of L2 Control Hub: Robust Automation Triggers: Select from a plethora of triggers currently available, with continuous additions in the works to enhance your control options. Dynamic Conditions and Actions: Tailor your server operations with an extensive range of conditions and actions, ensuring flexible and precise control over game events and player interactions. Customizable Variables: Easily integrate server-specific variables from your database to further personalize and streamline your automations. Utilize these variables across various automation scenarios to cater to your specific server requirements. JavaScript Integration: Execute custom JavaScript codes that interact seamlessly with Java classes, bringing advanced functionalities to your server's ecosystem.   Explore L2 Control Hub in Action: We've prepared a series of video tutorials to demonstrate the capabilities of L2 Control Hub: Control Hub - Create a Simple Flow with 1 Condition and 1 Action: Get started with basic automations. Control Hub - Multiple Conditions with Multiple Actions: Explore more complex automations for detailed server management. Control Hub - Using Variables: Discover how to implement and use custom variables for tailored automations. Control Hub - Using JavaScript: Experience the power of custom scripts in enhancing your server functionality.   L2 Control Hub is currently about 70% complete, and we are actively developing and refining features. We invite you to join our ➡️ Discord community ⬅️ to engage with the development process, provide feedback, and be the first to test new features. Additionally, any updates or changes to the plugin are seamlessly delivered to all customers directly from our web server, ensuring your system is always up-to-date without the need for manual downloads.   Your game, your rules, automated. Join us in redefining server management in Lineage 2 and elevate your gaming community with unmatched automation capabilities. For more details, contact us directly to get started with L2 Control Hub.   Currently, the plugin is developed using aCis sources. We will continue with these sources until we finalize all the necessary details before proceeding to integrate with the more prominent sources available.       The L2 Control Hub is designed to extend beyond mere functional additions to your server. We are in the process of implementing a suite of advanced mechanisms, such as a vote manager capable of interfacing with any Lineage 2 voting site without requiring configuration, live statistics to provide admins with real-time insights, and an event engine that can generate any desired event within seconds. All these features will be seamlessly integrated into the module, enhancing your server management experience significantly.     Please note that L2 Control Hub will be a premium tool, reflecting the extensive features and benefits it offers. While we are finalizing the pricing structure, rest assured that we aim to deliver great value for your investment. We will announce the cost details soon on our platforms to ensure everyone is well-informed and can plan accordingly. Join us to take your server management to the next level with L2 Control Hub.     
  • Topics

×
×
  • Create New...