Jump to content
  • 0

Question

Posted (edited)

exw auton edw ton kwdika

alla den douleuei katholou oute to 1o reward oute to 2o oute kanena enw exw kanonika ta pvp pou xreiazwntai kai sto gameserver console den bgazei kapoio problima ola trexoun kanonika ti mpwrei na ftaiei ?

 configs
+
+#Set true to enable the pvp skill reward system
+EnablePvPSkillReward = false
+
+#Set pvp count for the 1st pvp skill to be awarded
+1stSkillPvPCount = 100
+
+#Set pvp count for the 2nd pvp skill to be awarded
+2ndSkillPvPCount = 200
+
+#Set pvp count for the 3rd pvp skill to be awarded
+3rdSkillPvPCount = 300
+
+#Set pvp count for the 4th pvp skill to be awarded
+4thSkillPvPCount = 400
+
+#Set pvp count for the 5th pvp skill to be awarded
+5thSkillPvPCount = 500
+
+#Set the id of the 1st skill awarded
+1stPvPSkill = 1
+
+#Set the level of the 1st skill awarded
+1stPvPSkillLvl = 1
+
+#Set the id of the 2nd skill awarded
+2ndPvPSkill = 2
+
+#Set the level of the 2nd skill awarded
+2ndPvPSkillLvl = 2
+
+#Set the id of the 3rd skill awarded
+3rdPvPSkill = 3
+
+#Set the level of the 3rd skill awarded
+3rdPvPSkillLvl = 3
+
+#Set the id of the 4th skill awarded
+4thPvPSkill = 4
+
+#Set the level of the 4th skill awarded
+4thPvPSkillLvl = 4
+
+#Set the id of the 5th skill awarded
+5thPvPSkill = 5
+
+#Set the level of the 5th skill awarded
+5thPvPSkillLvl = 5
 
 
 
Config.java
 
@@ -525,6 +525,23 @@
        public static Map<Integer, Integer> CLAN_SKILLS;
        public static byte CLAN_LEVEL;
        public static int REPUTATION_QUANTITY;
+
+       public static boolean PVP_SKILL_REWARD_ENABLED;
+       public static int PVP_SKILL1;
+       public static int PVP_SKILL2;
+       public static int PVP_SKILL3;
+       public static int PVP_SKILL4;
+       public static int PVP_SKILL5;
+       public static int PVP_SKILL_LVL1;
+       public static int PVP_SKILL_LVL2;
+       public static int PVP_SKILL_LVL3;
+       public static int PVP_SKILL_LVL4;
+       public static int PVP_SKILL_LVL5;
+       public static int COUNT_PVP_1ST;
+       public static int COUNT_PVP_2ND;
+       public static int COUNT_PVP_3RD;
+       public static int COUNT_PVP_4TH;
+       public static int COUNT_PVP_5TH;
       
 
 
                        REPUTATION_QUANTITY = Integer.parseInt(L2JFrozenettings.getProperty("ReputationScore", "10000"));
+                       PVP_SKILL_REWARD_ENABLED = Boolean.valueOf(L2JFrozenettings.getProperty("EnablePvPSkillReward", "false"));
+                       COUNT_PVP_1ST = Integer.parseInt(L2JFrozenettings.getProperty("1stSkillPvPCount", "100"));
+                       COUNT_PVP_2ND = Integer.parseInt(L2JFrozenettings.getProperty("2ndSkillPvPCount", "200"));
+                       COUNT_PVP_3RD = Integer.parseInt(L2JFrozenettings.getProperty("3rdSkillPvPCount", "300"));
+                       COUNT_PVP_4TH = Integer.parseInt(L2JFrozenettings.getProperty("4thSkillPvPCount", "400"));
+                       COUNT_PVP_5TH = Integer.parseInt(L2JFrozenettings.getProperty("5thSkillPvPCount", "500"));
+                       PVP_SKILL1 = Integer.parseInt(L2JFrozenettings.getProperty("1stPvPSkill", "1"));
+                       PVP_SKILL2 = Integer.parseInt(L2JFrozenettings.getProperty("2ndPvPSkill", "2"));
+                       PVP_SKILL3 = Integer.parseInt(L2JFrozenettings.getProperty("3rdPvPSkill", "3"));
+                       PVP_SKILL4 = Integer.parseInt(L2JFrozenettings.getProperty("4thPvPSkill", "4"));
+                       PVP_SKILL5 = Integer.parseInt(L2JFrozenettings.getProperty("5thPvPSkill", "5"));
+                       PVP_SKILL_LVL1 = Integer.parseInt(L2JFrozenettings.getProperty("1stPvPSkillLvl", "1"));
+                       PVP_SKILL_LVL2 = Integer.parseInt(L2JFrozenettings.getProperty("2ndPvPSkillLvl", "2"));
+                       PVP_SKILL_LVL3 = Integer.parseInt(L2JFrozenettings.getProperty("3rdPvPSkillLvl", "3"));
+                       PVP_SKILL_LVL4 = Integer.parseInt(L2JFrozenettings.getProperty("4thPvPSkillLvl", "4"));
+                       PVP_SKILL_LVL5 = Integer.parseInt(L2JFrozenettings.getProperty("5thPvPSkillLvl", "5"));
 
 
 
L2PcInstance.java
 
                _pvpKills = pvpKills;
        }
       
+       public void PvPSkillReward()
+       {
+               if (getPvpKills() >= Config.COUNT_PVP_1ST)
+               {  
+                       addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILL1, Config.PVP_SKILL_LVL1));
+               }
+               else if (getPvpKills() >= Config.COUNT_PVP_2ND)
+               {  
+                       addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILL2, Config.PVP_SKILL_LVL2));
+               }
+               else if (getPvpKills() >= Config.COUNT_PVP_3RD)
+               {  
+                       addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILL3, Config.PVP_SKILL_LVL3));
+               }
+               else if (getPvpKills() >= Config.COUNT_PVP_4TH)
+               {  
+                       addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILL4, Config.PVP_SKILL_LVL4));
+               }
+               else if (getPvpKills() >= Config.COUNT_PVP_5TH)
+               {  
+                       addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILL5, Config.PVP_SKILL_LVL5));
+               }
+       }
+
 
 
               
+               if(Config.PVP_SKILL_REWARD_ENABLED)
+               {
+                       PvPSkillReward();
+               }
+              
                // apply augmentation bonus for equipped items
                for (L2ItemInstance temp : this.getInventory().getAugmentedItems())
Edited by Ta®oS™

10 answers to this question

Recommended Posts

  • 0
Posted

oti den douleuoun ta reward pou exw balei ekana kanonika compile kai sto eclipse den bgazei errors

ruthmizw ta pvp to id kai to level apo to skill alla den mou to dunei

  • 0
Posted (edited)

φιλε μου απο τι βλεπω στον κωδικα σου δεν εχεις τι skill να δινει , απο τι καταλαβα ο κωδικας ειναι οταν παιρνει καποια pvp να περνει και skill σωστα? ..Αν ειναι αυτο δεν πρεπει να του λες το id skill που θες να του δωσει? .. και προφανως για να μην υπαρξει κανενα bug καλο θα ηταν να υπαρχει καποιος ελεχος αν υπαρχει αυτο το skill στου παιχτη τα skill μεσα...και αν ειναι skill αυτο που δινει ...

 

Θα μπορουσες να του το δωσεις μεσο database , νομιζω ο κωδικας ισως ειναι πιο ευκολος....αλλα δεν ξερω αν κολλαει το Script μετα...

Edited by BlackDevilDev
  • 0
Posted

φιλε μου απο τι βλεπω στον κωδικα σου δεν εχεις τι skill να δινει , απο τι καταλαβα ο κωδικας ειναι οταν παιρνει καποια pvp να περνει και skill σωστα? ..Αν ειναι αυτο δεν πρεπει να του λες το id skill που θες να του δωσει? .. και προφανως για να μην υπαρξει κανενα bug καλο θα ηταν να υπαρχει καποιος ελεχος αν υπαρχει αυτο το skill στου παιχτη τα skill μεσα...και αν ειναι skill αυτο που δινει ...

 

Θα μπορουσες να του το δωσεις μεσο database , νομιζω ο κωδικας ισως ειναι πιο ευκολος....αλλα δεν ξερω αν κολλαει το Script μετα...

gia auto exei ta configs. twra to protection den xreiazetai afou gia na thelei kati tetoio tha paizei me custom skills

 

 

 

filaraki eisai sigouros oti ekanes compile ? den sou evgale errors sto eclipse ?

kai ektos auto to l2jfrozen-core.jar i opws aliws legete to perases sta libs sou ? 

ean nai kai pali den douleuei den kserw. isws na eitan kalutera na postareis sto forum tou frozen. i sto topic 

pou peires ton kwdika 

Guest
This topic is now closed to further replies.


  • Posts

    • I assume you're some kind of Rito Games player too, right? If so, I've got some bad news for you. We've been reversing their stuff for years, and the VGK driver collects far more information from your PC than you could imagine.   I won't leak or discuss any specifics here for obvious reasons, but if you've played on certain "serious" projects, they may also have something running on your system. Whether it's mining your GPU or doing other shady things, the point is that you can't really say you're completely safe in today's gaming world. 😄 EAC, BE, Vanguard, FACEIT, and pretty much any kernel level anticheat have extremely deep access to your system.   In the wrong hands, that level of access can become a serious privacy risk. If you have the knowledge, dump the game and take a look for yourself. You might be surprised by what's actually going on behind the scenes.   No wonder the VGK team decided to remove the driver from startup and switch to an on demand approach. I guess the exposure became too much of a risk for them to ignore, so they had to make changes to protect their reputation and keep their image clean.   So let's get to the point. Any anticheat for Lineage 2, whether it's considered good or bad, comes with the same issue: if someone wants to compromise your privacy, they can potentially do it because you don't truly know what you're launching or what kind of drivers it installs or loads. TL;DR: Without proper knowledge and analysis, you can't really know what's happening behind the scenes. Cheers.   Let me remind some people who may have forgotten about this. Many years ago, there was a project called BeyondWorld H5. I saw people complaining that their systems became extremely laggy and their GPUs were overheating after running the game for a long time. After further analysis, we found that the client was heavily using the GPU in a way that appeared to be mining related. The point is that nothing is impossible  if someone has enough access and knowledge, many things can happen.
    • I said I'd buy it for my player, I didn't say I would run it on my pc. 
    • Hi there! I am starting to develop my server and I am looking for a professional interface editor. I already have a client and I would like to hire somebody to edit it for me or to offer their own interfaces. I have looked around but all the pre-made interfaces out there, so far, has not pleased me and I what I need for my server. So if you are a professional interface maker, please let me know! Thank you!
    • Thanks FunBasec, I recommend this developer ! He is very friendly and professional.
    • The project is a change to original l2 with modern game mechanics that is more "western". For example every race can craft, not just dwarves. Mages can cast spells without the need of a dedicated box MP charger. MP chargers are also able to solo farm and deal decent damage on their own. Paladins are now 2h sword dedicated healers/support dps. Drop rates are normalized among all classes, no longer needing spoil to craft.   The idea of the project is keep true to the old vanilla classic experience where you are rewarded for effort. And you must put effort into achieving things. Leveling is slow, gear wont be given to you, you must work towards obtaining upgrades. etc.   These are only a small portion of changes I am making to the game. I would love help and bounce design ideas off of others for some future content update ideas. Like can we design unique raid boss encounters? How about end-game content ideas? How can we make owning castles valuable? Maybe an instanced underground mining zone? Or unique raid fights that the clan can do for extra loot?    There's tons of ideas I have and I would like some help creating them.    This is not a paid project. It is a passion project with people who have a passion for l2 and wanna see the community grow.    Currently using client 418. 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..