Jump to content
  • 0

[Help] L2 Pvp Custom Skills System


Question

Posted

Καλησπέρα παιδιά , θα ήθελα βοήθεια σε ένα θέμα. Έχω ανοίξει l2jFrozen σερβερ και προσπαθώ να βάλω custom pvp skills .. Έχω και ένα πακ του l2 Finest που παίρνω ιδέες. Αλλά! Όσο και να το έχω παλέψει απο το eclipse + server files  δεν γινεται με τίποτα . Έχω παρει το Code απο gameserver/model/actor/....L2pcInstance 

 

private void pvpSkillsSystem()
{
L2PcInstance activeChar = L2PcInstance.this.getClient().getActiveChar();
if (activeChar.getPvpKills() == 500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
activeChar.sendMessage("You have received Adena to True Gold skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 1000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3156, 1), true); // Firework (Recovers 500 CP)
activeChar.sendMessage("You have received Firework skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 1500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3157, 1), true); // Large Firework
activeChar.sendMessage("You have received Large Firework skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 3000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7045, 1), true); // Blessed Body
activeChar.sendMessage("You have received Blessed Body skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 3500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(60, 1), true); // Fake Death
activeChar.sendMessage("You have received Fake Death skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 4000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7041, 1), true); // Focus
activeChar.sendMessage("You have received Focus skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 5000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7049, 1), true); // Decrease Weight
activeChar.sendMessage("You have received Decrease Weight skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 7000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7042, 1), true); // Death Whisper
activeChar.sendMessage("You have received Death Whisper skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 9500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7050, 1), true); // Might
activeChar.sendMessage("You have received Might skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 11000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3089, 1), true); // Medusa
activeChar.sendMessage("You have received Medusa skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 13000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(4, 1), true); // Dash
activeChar.sendMessage("You have received Dash skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 14000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3160, 1), true); // Resurrection
activeChar.sendMessage("You have received Resurrection skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 15000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7055, 1), true); // Wind Walk
activeChar.sendMessage("You have received Wind Walk skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 18000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(1050, 2), true); // Pvp Return
activeChar.sendMessage("You have received Pvp Return skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 20000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7064, 1), true); // Pvp Chant of Victory
activeChar.sendMessage("You have received Pvp Chant of Victory skill for " + activeChar.getPvpKills() + " PvP's.");
}
 
και απο config (source)
 
public static boolean ENABLE_PVP_SKILLS;
(αντιστοιχα)
ENABLE_PVP_SKILLS = Boolean.valueOf(pvpSettings.getProperty("EnablePvpSkillsSystem", "True"));
  
και στο (server)functions/pvp
 
# Enable pvp skills system?
EnablePvpSkillsSystem = True
 
Αλλα τίποτα !!!!!! Μπορει καποιος να με βοηθήσει;;;; Γενικα ειμαι νέος με αυτα αλλα το παλεύω καλα!

Recommended Posts

  • 0
Posted

 

Παιδια θελω βοήθεια , παλεύω ολη μέρα .. μεχρι που εφτιαξα και code παρομοιο με τον pvp πχ. 

 

(Config SERVER FILES)

EnablePvPSkillSystem = True

 

 

# Settings For Ammount 1.
PvpSkillAmount1 = 3
 
(CONFIG SOURCE)
public static boolean PVP_SKILL_SYSTEM_ENABLED;
public static int PVP_SKILL_AMOUNT1; 
 
 
PVP_SKILL_SYSTEM_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePvPSkillSystem", "false"));
PVP_SKILL_AMOUNT1 = Integer.parseInt(pvpSettings.getProperty("PvpSkillAmount1", "3"));
 
(ENTERWORLD)
 
private void ColorSystem(final L2PcInstance activeChar)
{
// Color System checks - Start
// Check if the custom PvP and PK color systems are enabled and if so check the character's counters
// and apply any color changes that must be done.
/** : Ammount 1 **/
if (activeChar.getPvpKills() >= Config.PVP_AMOUNT1 && Config.PVP_COLOR_SYSTEM_ENABLED)
activeChar.updatePvPColor(activeChar.getPvpKills());
if (activeChar.getPvpKills() >= Config.PVP_SKILL_AMOUNT1 && Config.PVP_SKILL_SYSTEM_ENABLED)
activeChar.UpdatePvpSkill(activeChar.getPvpKills());
}
 
L2PcInstance

 

 

private void UpdatePvpSkill()
{
L2PcInstance activeChar = L2PcInstance.this.getClient().getActiveChar();
if (activeChar.getPvpKills() == 3)
{
addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
sendMessage("You have received Adena to True Gold skill for " + activeChar.getPvpKills() + " PvP's.");
}
 
 
 
 
(AYTO DEN DOULEPSE .. OUTE KAI TO PARAKATW!)
 
(CONFIG SERVER FILES)
 
# Enable pvp skills system?
EnablePvpSkillsSystem = True
 
 
(Config SOURCE)
 
public static boolean ENABLE_PVP_SKILLS;
 
ENABLE_PVP_SKILLS = Boolean.valueOf(pvpSettings.getProperty("EnablePvpSkillsSystem", "false"));
 
(ENTERWORLD)
 
private void PvpSkillSystem(final L2PcInstance activeChar)
{
 
if (activeChar.getPvpKills() >= Config.ENABLE_PVP_SKILLS)
activeChar.UpdatePvpSkill(activeChar.getPvpKills());
}
 
(L2PCINSTANCE)
 
private void UpdatePvpSkill()
{
L2PcInstance activeChar = L2PcInstance.this.getClient().getActiveChar();
if (activeChar.getPvpKills() == 3)
{
addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
sendMessage("You have received Adena to True Gold skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 1000)
{
addSkill(SkillTable.getInstance().getInfo(3156, 1), true); // Firework (Recovers 500 CP)
sendMessage("You have received Firework skill for " + activeChar.getPvpKills() + " PvP's.");
}
 
Το προσπάθησα οπως ειπε ο @AccessDenied μηπως και δουλεψει ,, γιατι εχει δίκιο δεν μου βγαζει καποιο μήνυμα ουτε μου δινει το σκιλ...! Επισης εχω προβλημα με το name +title color. το ονομα πιανει μονο μεχρι 5 PVP_AMOUNT πχ βαζω με τον ιδιο τροπο ακριβως σε ολα τα αρχεια οπως υπαρχουν οι κωδικες αντιστοιχα 9 και φτανει μεχρι το 5 στο παιχνιδι μεσα...! και το Title  δεν δουλευει καθολου.! Ευχαριστω!
 
 
PS: ΣΕ ΕΚΑΝΑ ADD ΣΤΟ SKYPE. Reborn12

 

ρε μωρο να σου πω λιγο. εχεις γραψει ενα γαμημενο void ... αυτο το void το καημενο ΔΕΝ ΤΟ ΚΑΛΕΙΣ ΠΟΥΘΕΝΑ ΓΑΜΩ ΤΟΝ ΔΙΑ ΜΟΥ ΜΕΣΑ..

ο xdem ξεχασε να σου πει οτι οταν στον προγραμματισμο φτιαχνεις ενα νεο void δεν γινεται απο μονος του constructor -.- πρεπει να το καλεσεις καπου..

γιαυτο γλυκε μου πηγαινε στο L2PcInstance.java μην ερθω εκει και σε πιασω και σε κοψω σε φετες.. βρες το function που κανει setPvPKills() + 1 

και εκει μεσα βαλε μετα απο το setPvPKills() +1   i ++ πως το εχει απο κατω το ονομα του void σου .. αυτο ΗΤΑΝ ΟΛΟ WOW?

 

xdem αγορι ποσο πιωμενος εισαι?

  • 0
Posted

ρε μωρο να σου πω λιγο. εχεις γραψει ενα γαμημενο void ... αυτο το void το καημενο ΔΕΝ ΤΟ ΚΑΛΕΙΣ ΠΟΥΘΕΝΑ ΓΑΜΩ ΤΟΝ ΔΙΑ ΜΟΥ ΜΕΣΑ..

ο xdem ξεχασε να σου πει οτι οταν στον προγραμματισμο φτιαχνεις ενα νεο void δεν γινεται απο μονος του constructor -.- πρεπει να το καλεσεις καπου..

γιαυτο γλυκε μου πηγαινε στο L2PcInstance.java μην ερθω εκει και σε πιασω και σε κοψω σε φετες.. βρες το function που κανει setPvPKills() + 1 

και εκει μεσα βαλε μετα απο το setPvPKills() +1   i ++ πως το εχει απο κατω το ονομα του void σου .. αυτο ΗΤΑΝ ΟΛΟ WOW?

 

xdem αγορι ποσο πιωμενος εισαι?

53709138.jpg

  • 0
Posted (edited)

 

Καλησπέρα παιδιά , θα ήθελα βοήθεια σε ένα θέμα. Έχω ανοίξει l2jFrozen σερβερ και προσπαθώ να βάλω custom pvp skills .. Έχω και ένα πακ του l2 Finest που παίρνω ιδέες. Αλλά! Όσο και να το έχω παλέψει απο το eclipse + server files  δεν γινεται με τίποτα . Έχω παρει το Code απο gameserver/model/actor/....L2pcInstance 

 

private void pvpSkillsSystem()
{
L2PcInstance activeChar = L2PcInstance.this.getClient().getActiveChar();
if (activeChar.getPvpKills() == 500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
activeChar.sendMessage("You have received Adena to True Gold skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 1000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3156, 1), true); // Firework (Recovers 500 CP)
activeChar.sendMessage("You have received Firework skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 1500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3157, 1), true); // Large Firework
activeChar.sendMessage("You have received Large Firework skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 3000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7045, 1), true); // Blessed Body
activeChar.sendMessage("You have received Blessed Body skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 3500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(60, 1), true); // Fake Death
activeChar.sendMessage("You have received Fake Death skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 4000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7041, 1), true); // Focus
activeChar.sendMessage("You have received Focus skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 5000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7049, 1), true); // Decrease Weight
activeChar.sendMessage("You have received Decrease Weight skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 7000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7042, 1), true); // Death Whisper
activeChar.sendMessage("You have received Death Whisper skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 9500)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7050, 1), true); // Might
activeChar.sendMessage("You have received Might skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 11000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3089, 1), true); // Medusa
activeChar.sendMessage("You have received Medusa skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 13000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(4, 1), true); // Dash
activeChar.sendMessage("You have received Dash skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 14000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(3160, 1), true); // Resurrection
activeChar.sendMessage("You have received Resurrection skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 15000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7055, 1), true); // Wind Walk
activeChar.sendMessage("You have received Wind Walk skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 18000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(1050, 2), true); // Pvp Return
activeChar.sendMessage("You have received Pvp Return skill for " + activeChar.getPvpKills() + " PvP's.");
}
else if (activeChar.getPvpKills() == 20000)
{
activeChar.addSkill(SkillTable.getInstance().getInfo(7064, 1), true); // Pvp Chant of Victory
activeChar.sendMessage("You have received Pvp Chant of Victory skill for " + activeChar.getPvpKills() + " PvP's.");
}
 
και απο config (source)
 
public static boolean ENABLE_PVP_SKILLS;
(αντιστοιχα)
ENABLE_PVP_SKILLS = Boolean.valueOf(pvpSettings.getProperty("EnablePvpSkillsSystem", "True"));
  
και στο (server)functions/pvp
 
# Enable pvp skills system?
EnablePvpSkillsSystem = True
 
Αλλα τίποτα !!!!!! Μπορει καποιος να με βοηθήσει;;;; Γενικα ειμαι νέος με αυτα αλλα το παλεύω καλα!

 

Μια προχειρη λυση, οπου εχει if else καντο if και οπου εχει == καντο >= και θα δουλεψει

 

Παντως, εφοσον το δουλευεις ετσι καθε φορα που ο παικτης θα κανει log in θα τρωει στη μαπα ολα τα μηνυματα απο οσα skills παιρνει, καλυτερα να βγαλεις τα μνμτα

 

Επισης, εχεις βαλει καπου να καλειται η μεθοδος αυτη?

Edited by TheAllKnowing
  • 0
Posted


private void pvpSkillsSystem()

{

L2PcInstance activeChar = L2PcInstance.this.getClient().getActiveChar();

if (activeChar.getPvpKills() >= 500)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold

activeChar.sendMessage("You have received Adena to True Gold skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 1000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(3156, 1), true); // Firework (Recovers 500 CP)

activeChar.sendMessage("You have received Firework skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 1500)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(3157, 1), true); // Large Firework

activeChar.sendMessage("You have received Large Firework skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 3000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7045, 1), true); // Blessed Body

activeChar.sendMessage("You have received Blessed Body skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 3500)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(60, 1), true); // Fake Death

activeChar.sendMessage("You have received Fake Death skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 4000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7041, 1), true); // Focus

activeChar.sendMessage("You have received Focus skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 5000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7049, 1), true); // Decrease Weight

activeChar.sendMessage("You have received Decrease Weight skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 7000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7042, 1), true); // Death Whisper

activeChar.sendMessage("You have received Death Whisper skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 9500)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7050, 1), true); // Might

activeChar.sendMessage("You have received Might skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 11000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(3089, 1), true); // Medusa

activeChar.sendMessage("You have received Medusa skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 13000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(4, 1), true); // Dash

activeChar.sendMessage("You have received Dash skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 14000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(3160, 1), true); // Resurrection

activeChar.sendMessage("You have received Resurrection skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 15000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7055, 1), true); // Wind Walk

activeChar.sendMessage("You have received Wind Walk skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 18000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(1050, 2), true); // Pvp Return

activeChar.sendMessage("You have received Pvp Return skill for " + activeChar.getPvpKills() + " PvP's.");

}

if (activeChar.getPvpKills() >= 20000)

{

activeChar.addSkill(SkillTable.getInstance().getInfo(7064, 1), true); // Pvp Chant of Victory

activeChar.sendMessage("You have received Pvp Chant of Victory skill for " + activeChar.getPvpKills() + " PvP's.");

}

  • 0
Posted (edited)
	public void pvpSkillsSystem(int pvp)
	{
		if (pvp >= 500)
		{
			addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
			sendMessage("You have received Adena to True Gold skill for " + getPvpKills() + " PvP's.");
		}
	}
		// Auto-Learn skills if activated
		if(Config.AUTO_LEARN_SKILLS)
		{
			giveAvailableSkills();
			+pvpSkillsSystem(getPvpKills());
		}
	public void increasePvpKills()
	{
		+pvpSkillsSystem(getPvpKills());
	public void onPlayerEnter()
	{
		+pvpSkillsSystem(getPvpKills());

dokimase afto

 

i afto

	public void pvpSkillsSystem()
	{
		if (getPvpKills() == 500)
		{
			addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
			sendMessage("You have received Adena to True Gold skill for " + getPvpKills() + " PvP's.");
		}
	} 
		// Auto-Learn skills if activated
		if(Config.AUTO_LEARN_SKILLS)
		{
			giveAvailableSkills();
			+pvpSkillsSystem();
		}
Edited by te0x
  • 0
Posted (edited)

@TheAllKnowing

No, you will get the skill on each pvp..

Edited by SweeTs
  • 0
Posted

@TheAllKnowing

No, you will get the skill on each pvp..

oh right, it would be as i said if this was on enterworld right?

  • 0
Posted (edited)

Love how we are more than 6 java dev here and this guy still cant make this shitty code work... 

100% you're just silly and u do 1 logical mistake.

 

	public void pvpSkillsSystem(int pvp)
	{
		if (pvp >= 500)
		{
			addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
			sendMessage("You have received Adena to True Gold skill for " + getPvpKills() + " PvP's.");
		}
	}
		// Auto-Learn skills if activated
		if(Config.AUTO_LEARN_SKILLS)
		{
			giveAvailableSkills();
			+pvpSkillsSystem(getPvpKills());
		}
	public void increasePvpKills()
	{
		+pvpSkillsSystem(getPvpKills());
	public void onPlayerEnter()
	{
		+pvpSkillsSystem(getPvpKills());

dokimase afto

 

i afto

	public void pvpSkillsSystem()
	{
		if (getPvpKills() == 500)
		{
			addSkill(SkillTable.getInstance().getInfo(323, 1), true); // Adena to True Gold
			sendMessage("You have received Adena to True Gold skill for " + getPvpKills() + " PvP's.");
		}
	} 
		// Auto-Learn skills if activated
		if(Config.AUTO_LEARN_SKILLS)
		{
			giveAvailableSkills();
			+pvpSkillsSystem();
		}

εγραψες μεγαλες μαλακιες φιλε..

 

if(Config.AUTO_LEARN_SKILLS)
        {
            giveAvailableSkills();
            +pvpSkillsSystem(getPvpKills());
        }

 

?

 

really? ποιο το νοημα να παιρνει τα skill ξανα και ξανα οταν με το addSkill το σκιλλ μπαινει μονιμα στην db o.O

 

επισης

 

if (pvp >= 500)
        {

 

? σοβαρα? δλδ καθε pvp μετα τα 500 θα τον σπαμμαρι μυνημα και θα παιρνει και παλι το σκιλλ

 

απλα κανεμε add στο skype: unst0ppabl32 να τελιωνουμε μας επριξες...

Edited by AccessDenied
  • 0
Posted

Sto frozen ama dosis to skill se enan pexti me pvp to skill tha diagrafti sto next login i meta apo sub. Egw etc to ixa dokimasi kai duleve coble

  • 0
Posted

Sto frozen ama dosis to skill se enan pexti me pvp to skill tha diagrafti sto next login i meta apo sub. Egw etc to ixa dokimasi kai duleve coble

ara me liga logia to frozen ine gia to poutso i apla gia ka8isterimena pou anoigoun pvp server.. good ))

  • 0
Posted

ρε μωρο να σου πω λιγο. εχεις γραψει ενα γαμημενο void ... αυτο το void το καημενο ΔΕΝ ΤΟ ΚΑΛΕΙΣ ΠΟΥΘΕΝΑ ΓΑΜΩ ΤΟΝ ΔΙΑ ΜΟΥ ΜΕΣΑ..

ο xdem ξεχασε να σου πει οτι οταν στον προγραμματισμο φτιαχνεις ενα νεο void δεν γινεται απο μονος του constructor -.- πρεπει να το καλεσεις καπου..

γιαυτο γλυκε μου πηγαινε στο L2PcInstance.java μην ερθω εκει και σε πιασω και σε κοψω σε φετες.. βρες το function που κανει setPvPKills() + 1 

και εκει μεσα βαλε μετα απο το setPvPKills() +1   i ++ πως το εχει απο κατω το ονομα του void σου .. αυτο ΗΤΑΝ ΟΛΟ WOW?

 

xdem αγορι ποσο πιωμενος εισαι?

 

Εκανα αυτο που ειπες.. μπηκα στο l2pcinstance και εκανα αυτο..

 

setPvpKills(getPvpKills() + 1);
UpdatePvpSkill();
 
αλλα παλι τιποτα! :/ και μπηκα και δοκιμασα κ εκανα 4 pvp κανονικα. PS : Σε εκανα αντ στο skype. εαν εχεις χρονο βοηθησε με γιατι δεν αντεχω αλλο . ευχαριστω! 
  • 0
Posted (edited)

Ok lock auti ti malakia... tha ton boi8isw sto skype otan gursw apo douleia.. eleoc 10 atoma gia 1 pvp reward .. 

Edited by AccessDenied
  • 0
Posted (edited)

Dokimase Na Valeis Auto edw Den Kserw An Doulepsei den to dokimasa alla kanonika metraei ta pvp ana 10 k tha dinei to skill Einai Se l2jaCis Isws Xreiastei ligo addapt Sta config sigoura...dokimase k pes mou an doulepsei..

L2PcInstance.java
 
private PcAppearance _appearance;
+
+private int PvPKills;
 
 
MeThod doDie Addare to +
 

public boolean doDie(L2Character killer)
{
+
+PvPKills = 0;
+

 
Meta Method onKillUpdatePvPKarma
 
Vres Auto setPvpKills(getPvpKills() + 1);
 
kane Add Auto Apo Kato
 
+PvPKills++;
+if (Config.ENABLE_PVP_SKILLS)
+{
+L2PcInstance activeChar = L2PcInstance.this.getClient().getActiveChar();
+ 
+switch(PvPKills)
+{
    +case 10:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(3156, 1), true); // Firework (Recovers 500 CP)
    +activeChar.sendMessage("You have received Firework skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
   + 
    +case 20:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(3157, 1), true); // Large Firework
    +activeChar.sendMessage("You have received Large Firework skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    +
    +case 30:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(7045, 1), true); // Blessed Body
    +activeChar.sendMessage("You have received Blessed Body skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    + 
    +case 40:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(60, 1), true); // Fake Death
    +activeChar.sendMessage("You have received Fake Death skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    + 
    +case 50:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(7041, 1), true); // Focus
    +activeChar.sendMessage("You have received Focus skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    + 
    +case 60:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(7049, 1), true); // Decrease Weight
    +activeChar.sendMessage("You have received Decrease Weight skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    +
    +case 70:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(7042, 1), true); // Death Whisper
    +activeChar.sendMessage("You have received Death Whisper skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    + 
    +case 80:
   +activeChar.addSkill(SkillTable.getInstance().getInfo(7050, 1), true); // Might
   +activeChar.sendMessage("You have received Might skill for " + activeChar.getPvpKills() + " PvP's.");
   +break;
   +
    +case 90:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(3089, 1), true); // Medusa
    +activeChar.sendMessage("You have received Medusa skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
   + 
    +case 100:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(4, 1), true); // Dash
    +activeChar.sendMessage("You have received Dash skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    +
    +case 110:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(3160, 1), true); // Resurrection
    +activeChar.sendMessage("You have received Resurrection skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    +
    +case 120:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(7055, 1), true); // Wind Walk
    +activeChar.sendMessage("You have received Wind Walk skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    +
    +case 130:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(1050, 2), true); // Pvp Return
    +activeChar.sendMessage("You have received Pvp Return skill for " + activeChar.getPvpKills() + " PvP's.");
    +break;
    +
    +case 140:
    +activeChar.addSkill(SkillTable.getInstance().getInfo(7064, 1), true); // Pvp Chant of Victory
    +activeChar.sendMessage("You have received Pvp Chant of Victory skill for " + activeChar.getPvpKills() + " PvP's.");
   + break;
  + } 
+}

Meta Pas Config.Java
public static int DEATH_PENALTY_CHANCE;
+public static boolean ENABLE_PVP_SKILLS;
 

DEATH_PENALTY_CHANCE = players.getProperty("DeathPenaltyChance", 20);
+ENABLE_PVP_SKILLS = players.getProperty("EnablePvpSkills", true);
Players.Properties

# Death Penalty chance if killed by mob (in %), 20 by default
DeathPenaltyChance = 20
+
+# PvP Skill System Enable:True Disable:False
+EnablePvpSkills = True
+
Edited by Reborn12
  • 0
Posted

ΠΑΙΔΙΑ ΤΟ ΕΦΤΙΑΞΑ!!! ΧΙΛΙΑ ΕΥΧΑΡΙΣΤΩ ΣΤΟΝ  TheAllKnowing

ΠΟΥ ΚΑΘΙΣΕ ΑΠΟ ΤΟ SKYPE ΚΑΙ ΜΟΥ ΕΙΠΕ ΚΑΠΟΙΑ ERROR ΜΟΥ γενικοτερα για το build και επιτελους αυτοι οι κωδικες που εγραφα πιασανε τοπο. τα εφτιαξα ολα! και 

τα custom hero skills και τα pvp color name / title και το pvpskill reward! κ γενικα τα παντα! :D ευχαριστωωωωωωωωω!!!!!!!!!!!!!!!!! σε ολους που ειχαν την προθεση να με βοηθησουν. επιτελους Lock :D με χαραά!

Guest
This topic is now closed to further replies.

×
×
  • Create New...