Jump to content

[Share] Quake PvP Announce me Effect!


Recommended Posts

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]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...