Jump to content

Recommended Posts

Posted (edited)

Hello, today I want present to you: Rank PvP System

 

COMPATIBILITY

  • L2J-Server

DESCRIPTION

1. PvP System:

  • Added new method for PvP counting. It's secured by time limiter, and basic protections like same IP, clan etc. If time protecion is working then legall kills not rising. If killer kill victim and time is OK, so then I call it "Legal Kill", if killer kill victim again, PvP counter rise but not Legal Kill (Time Protection sorks). All informations are stored in DB. This "Time Protection" should reduce farming. (More: if we set min pvp lvl on 76+ so then it will be hard to farm on bots. Protection should reduce farm on low rate servers. If we set max player kills on: 1, it lock Legal Kills counter after 1 kill, it's mean killer can kill victim only once in game, option can be useful on servers with big online).
  • System works in every place, but is possible to deactivate it in specific areas like: PEACEFUL ZONE.

2. Rank System:

  • Based on PvP System, it's mean, killer can earn exp for kill player, then he rise his rank too if earn 100%. (exp is based on current Rank Points [RP]).
  • Default 42 ranks.
  • Reward for rise up the Rank can be awarded for each level of Rank Points. (List of rewards and minimum rank points for obtain reward in database).
  • Included images for ranks and exp bar (loaded from server side).

3. Reward System:

  • There is 2 reward types: for Legal Kill player, and for Legal Kill player with Rank.
  • Each kill gives special currency called RPC, the RPC can be exchanged for items.
  • Based on PvP System, killer can be rewarded for Legal Kill or not.
  • Standard PvP Rewards, Rank Level Rewards and Rank PvP Rewards are configurable and can be on/off in config.

4. Death Manager:

  • Is allowed to enable Death Manager, it's mean additional buttons in Death PvP Status Window showing details of killer like (CP, HP, MP, equipment (enchant) only for kill moment).

5. War Counter:

  • Count kills if target is in War Clan. Legal kills rules are used.

6. Combo Kill System:

  • Shout messages (local/global) about the killer who doing a combo, all these messages are configurable.
  • Combo system allows multiply Rank Points by special ratio defined in configuration file.

 

7. Configurability:

  • There is over 60 options. Possible is enable/disable system components like: Rewarding system, war counter, combo system, death manager and more.
  • Each Rank, Protections, Times, Messages can be edited by You without programming knowledge.

 

LAST UPDATE

 

v3.8.9 [09.03.2014]:
  + Added PvP Exp and PvP Exp lose options (rank level rewards are protected).
  + Added Rank Skill Reward, it is game skill added for character when he rise the Rank. Definition in rank_pvp_system_rank_skill table.
  + Now RPS Ranks base on Pvp Exp, Total Rank Points are used for information only. 
     PvP Exp = TRP, it is mean all RP are converted to Pvp Exp (Pvp Exp can decrease if enabled).
  + Added new options into configuration file.
  + Added RPC cut off option (new anti-farm protection).
  + Added/Reworked Alt+T option for count the Kills or Legal Kills.
  + Reworked SQL tables. 
     Changed name of rank_pvp_system for rank_pvp_system_pvp and added rank_pvp_system_summary table.
     Moved war fields from rank_pvp_system into summary table.
     Now only one table for Top Lists: rank_pvp_system_top, with new field****: table_id.
     Removed PRIMARY KEY from rank_pvp_system_top_table.
  + Reworked/Optimized core classes.
  + Renamed some classes.
  + Reworked/Optimized rank rewards table.
  + Fixed Rank Level Rewards.
  + Fixed RankPvpSystemEnabled option. Turn off RPS totally if FALSE.

 

MOVIE

DOWNLOAD

 

 

HOW TO CLEAR THE L2-CLIENT IMAGE-CACHE

  • Create .bat file and place it in Linage II folder.
  • Paste this code: del .\SysTextures\Crest.utx
  • Done. We removed all RPS images from L2-Client cache.
  • Or You can remove the Crest.utx file from SysTextures folder manualy.
Edited by << Masterio >>
  • Like 1
  • Thanks 1
  • Upvote 7
Posted

nice but i get warning at

 

if(activeChar.isInsideZone(Byte.parseByte(CustomConfig.CUSTOM_PVP_DEATH_MANAGER_RESTRICTED_ZONES_IDS.get(i)))){

 

 

( The method isInsideZone(ZoneId) in the type L2Character is not applicable for the arguments (byte) )

Posted

its mean the argument must be other type than Byte, try parse to Integer, or check the method parameter type.

Try for Integer:

 

if(activeChar.isInsideZone(Byte.parseByte(CustomConfig.CUSTOM_PVP_RESTRICTED_ZONES_IDS.get(i)))){

 

change for:

 

if(activeChar.isInsideZone(Integer.parseInteger(CustomConfig.CUSTOM_PVP_RESTRICTED_ZONES_IDS.get(i)))){

 

All zones in latest revision l2j are Byte type.

Posted

its mean the argument must be other type than Byte, try parse to Integer, or check the method parameter type.

Try for Integer:

 

if(activeChar.isInsideZone(Byte.parseByte(CustomConfig.CUSTOM_PVP_RESTRICTED_ZONES_IDS.get(i)))){

 

change for:

 

if(activeChar.isInsideZone(Integer.parseInteger(CustomConfig.CUSTOM_PVP_RESTRICTED_ZONES_IDS.get(i)))){

 

All that codes are inside CustomPvpSystem class.

Lines 529 and 545.

 

All zones in latest revision l2j are Byte type.

Posted

nice but i get warning at

 

if(activeChar.isInsideZone(Byte.parseByte(CustomConfig.CUSTOM_PVP_DEATH_MANAGER_RESTRICTED_ZONES_IDS.get(i)))){

 

 

( The method isInsideZone(ZoneId) in the type L2Character is not applicable for the arguments (byte) )

 

public static FastList<String> CUSTOM_PVP_RESTRICTED_ZONES_IDS = new FastList<String>();

 

why are you waiting for a byte or integer return on a string variable? but since parsing string is not allowed in java parseinteger should have been working. otherwise you need a well coded regex to parse that var

 

or this might work:

 

 

 String splitter="[,]";
    String [] custompvprestr = CUSTOM_PVP_RESTRICTED_ZONES_IDS.split(splitter);

Posted

maybe you not imported correctly diff patch.

 

I checked all the diff but still does not work, I am using stable version hi5.Puedes check if it works in this version.thanks!

Posted

i used latest l2jServer for hi5, so its works :D try update svn to 1.7.7 version.

 

Problem classs customconfig                     

 

line config.java

 

 

+

+ CustomConfig.load();

 

Guest
This topic is now closed to further replies.



  • Posts

    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
    • We have the best price! L2Reborn.org Signature x1 Franz NEW!! 1KK = $20 HURRY TO BUY AT THE TOP PRICE discord - adver745645
  • Topics

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