Jump to content

[Share] Quake PvP Announce me Effect!


Recommended Posts

Καλοσοριζω την παρεα του φορουμ..επειδη ψαχτικα λιγο για τα quake kai pvp announces systems!!! Ηθελα να συνδιασω μερικα πραγματα σε ενα Quake PvP Annoynce system!

 

Πχ:Οταν παιρνεις PvP να γινεται:

1)Announce

2)Να φενεται στο ExShowMessage

3)Να σε γεμιζει Full HP/CP/MP

4)Να σε κανει σε καθε Announce Ενα Special Effect απο ενα Skill(στην περιπτωση μου εχω διαλεξει το 721 το οποιο ειναι το Skill της Anakim)

5)Ηθελα να βαλω και Sounds  αλλα τελικα δν το εκανα!!

 

Λοιπον ειμαι new Σε αυτα τα πραγματα οποτε πειραματιστικα συντιαζοντας!!Γιαυτο παρακαλω μην κραζετε το ενα και το αλλο!!

 

Ας Ξεκινησουμε!!Γω σε H5 Client το εχω και δουλευει!

 

Παμε Ανοιγουμε ανοιγουμε το Eclipse και παμε στο ==>: model.actor.instance.l2pcinstance.java

 

Ωραια παταμε τωρα ctrl + f (Για να κανουμε Search!) και ψαχνουμε το

private int _newbie;

Τωρα ακριβος απο κατω γραφουμε :

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

 

Ok.τωρα παταμε παλι ctrl + f και αυτην την φορα ψαχνουμε το

setPvpKills(getPvpKills() + 1);

Ακριβως απο κατω παλι γραφουμε

quakeSystem++;

 

Τωρα αφηνουμε μια σειρα και ηρθε η ωρα για τον κυριοτερο κωδικα!!

 

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

 

Μπορειτε να γραψετε και να επεξεργασετε το μηνυμα οπως θελετε εσεις!!

 

 

Ωραια λοιπον.. τωρα παμε και παταμε παλι το ctrl + f και ψαχνουμε για το

 

reviveRequest(this, null, false);
}

 

κατω απο το }  γραφουμε

quakeSystem = 0;

 

Δηλαδη θα ειναι καπως ετσι ==>

 

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

 

PHOTOS

shot00028h.png

 

shot00029f.png

 

shot00030w.png

 

 

Αυτο ηταν οτι απορειες εχεται πειτε μου!

Επισης οπως ειπα στην αρχη ειμαι νεος εδω και απλα πειρα την ιδεα καποιου και την τροποποιησα ετσι οπως το ηθελα για εμενα!! και το εκανα Share!!

 

[move]Credits:  MaestroLuke Για τον Κωδικα Και Εμενα για την τροποιηση και το share!  [/move]

Link to comment
Share on other sites

:o pl kalo brv sou sinexise na kanis tetoia share ! tha to dokimasw ;)

 

Ευχαριστω... Ειμαι καπως νεος στους κωδικες και ετσι!!Απλα θα μαθω και θα κανω ωραια shares στο μελλον!!

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share



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