Jump to content
  • 0

[Help] L2 Pvp Custom Skills System


tonac

Question

Καλησπέρα παιδιά , θα ήθελα βοήθεια σε ένα θέμα. Έχω ανοίξει 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
 
Αλλα τίποτα !!!!!! Μπορει καποιος να με βοηθήσει;;;; Γενικα ειμαι νέος με αυτα αλλα το παλεύω καλα!
Link to comment
Share on other sites

Recommended Posts

  • 0

 

Παιδια θελω βοήθεια , παλεύω ολη μέρα .. μεχρι που εφτιαξα και 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 αγορι ποσο πιωμενος εισαι?

Link to comment
Share on other sites

  • 0

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

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

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

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

 

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

53709138.jpg

Link to comment
Share on other sites

  • 0

 

Καλησπέρα παιδιά , θα ήθελα βοήθεια σε ένα θέμα. Έχω ανοίξει 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
Link to comment
Share on other sites

  • 0


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.");

}

Link to comment
Share on other sites

  • 0
	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
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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 ))

Link to comment
Share on other sites

  • 0

ρε μωρο να σου πω λιγο. εχεις γραψει ενα γαμημενο 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. εαν εχεις χρονο βοηθησε με γιατι δεν αντεχω αλλο . ευχαριστω! 
Link to comment
Share on other sites

  • 0

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

Edited by AccessDenied
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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

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

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • From my personal experiences 🙂   Few months ago I decided to create my own Essence project. Project needs website, and I do not specialize in frontend development (t.y. i can make web work, but it won't be pretty for eye). So I search and find a guy in Discord, which claims he can make me a good looking HTML website for 30 EUR, prove some screenshots from his previous work. I agree. 1 week later, I get my HTML website, make few changes to contents, update URLs and upload it to FTP. Site looks good, I am happy that this headache is no more.   Few months passes. I randomly crawl through other Essence server websites scouting for good ideas for my own project. Suddenly one of russians project website opens and.. it's the same website as one I have 😉 perfectly absolutely same layout, colours, etc etc etc. I contact my guy to ask what the hell, to get blocked 😉  So I find a weekend worth of my time. Find HTML5 boilerplate generator and ask it to include Bootstrap 5 and some other stuff. Open Bootstrap documentation, drink two energy drinks on instant and start working my backend-inspired HTML black magic... Once I found suiting firefly effect for header, result looked oikay for me: Absolutely no magic or beauty here, but: * Unique (and probably nobody cares to rip it) * Done for free in ~10 hours by non-frontend dev * Most modern browsers friendly * Completely static content, loads instantly. No PHP at all * Sidebar statuses (online, pvp, pk) are pulled from account manager REST API endpoint and is cached for 5 minutes. Account manager runs separately from website frontend and has access to server DB. Where could/will it get better? * Code in Vue instead of HTML - time concerns only, but Vue is superior compared to HTML/PHP for supporting desktop/mobile, easing development by miles. Need to learn how to use it properly. * Way to manage content from backend - in my instance I think account manager is not really meant for that. Vue can help here too - there are components for content building. * Currently default Bootstrap components are used. Would be nice to have custom and more vibrant buttons. Guess what, Vue can help here too.   tl;dr don't buy 30EUR website, it will be ripped or shit. you better make your own website. Be curious. I am backend developer, I obviously have general idea how frontend works. But imho everyone who can make L2 server by editing NPC HTMLs, also can make their own simple website. ChatGPT and other AIs are your friends. Bootstrap. jQuery documentations are your friends. And when you feel good and comfortable with HTML, if you like, you can continue learning Vue, or going backend. Now, as for the top sites. You really need to invest money to make new project work. I mean really, really much money. For this concept to work, top website itself must get visited. But if you can sort that your top site would be popular amongst players, then it's a really very simple concept, as far as current 2004-ish sites goes. I think simple, working concept of this, maybe without proper frontend, but with implemented backend logics (add/edit/disable server, sort by votes count (top list), vote for server with verification, callback to server endpoint - all of that can be done using Symfony in mostly 5 days, with lots of breaks for coffee and a smoke 😉. Experienced mid frontend dev would make a Vue/React frontend for it in another 5 days. it's really really simple concept 🙂  
    • Need cheap aged discord accounts ? :  https://campsite.bio/utchihaamkt DISCORD USERNAME : utchiha_market TELEGRAM : https://t.me/utchiha_market Discover new products in our exclusive server today : https://discord.gg/hoodservices
    • i've copyed the files from a server that has it , like all except system folder to another that didn't had the feature and it worked but i can't find any file to resemble save acc or something
  • Topics

×
×
  • Create New...