Jump to content

Recommended Posts

Posted

Hello.

First of all is not my work the basic code.

(MaestroLuke)

I made some funny and cool staff that maybe

have been shared again maybe not.

An example: Normal PvP Killing Spree System.

When you reach 30 Pvps in a row player setted hero

with full hero skills. When you make restart hero

and the hero skills dissapear. When you die you remain hero.

But your row Pvp kills start from the begginning.

If you reach again 30 Kills in a row and you are already hero

will be added like a normal buff, the skill SuperHaste Lvl2.

You change the skill to whatever you want. When you take the buff

your hero status will not dissappear. If you restart both buff & hero status will removed.

Also after the 30th kills, with each killing Spree announce your CP/MP/HP wil restored to full.

Only The basic code with changes i will post.

For the full code: http://maxcheaters.com/forum/index.php?topic=78071.0

================================================

Lets Start:

The orange lines have to be added to the normal code.

setPvpKills(getPvpKills() + 1);

quakeSystem++;

 

      switch(quakeSystem)

      {

        case 3:

        Announcements.announceToAll("" + this.getName()+ " is on a Killing Spree!");

        break;

        case 6:

        Announcements.announceToAll("" + this.getName()+ " is on a Rampage with 6 kill!");

        break;

        case 10:

        Announcements.announceToAll("" + this.getName()+ " is on a hunting Spree with 10 kills!");

        break;

        case 14:

        Announcements.announceToAll("" + this.getName()+ " is on a Monster Kill with 14 kills!");

        break;

        case 18:

        Announcements.announceToAll("" + this.getName()+ " is Unstoppable with 18 kills!");

        break;

        case 22:

        Announcements.announceToAll("" + this.getName()+ " is on an Ultra Kill with 22 kills!");

        break;

        case 26:

        Announcements.announceToAll("" + this.getName()+ " is Godlike with 26 kills!");

        break;

        case 30:

        {

        if (!isHero())

        {

        this.setHero(true);

        sendMessage("" + this.getName() + " you have granted with hero status until restart.");

        }

    else

        if (isHero())

        {

        L2Skill skill = SkillTable.getInstance().getInfo(7029, 2); // Superhaste Lvl 2

        if (skill != null)

        {

        skill.getEffects(this, this);

        sendMessage("" + this.getName() + " you feel the power of a GM. SuperHaste!!");

        }

        }

        this.setCurrentCp(this.getMaxCp());

        this.setCurrentHp(this.getMaxHp());

        this.setCurrentMp(this.getMaxMp());

        }

        Announcements.announceToAll("" + this.getName()+ " is Wicked Sick with 30 kills! WoW!");

        break;

        case 36:

        this.setCurrentCp(this.getMaxCp());

        this.setCurrentHp(this.getMaxHp());

        this.setCurrentMp(this.getMaxMp());

        Announcements.announceToAll("" + this.getName()+ " is a killer with 36 kills!");

        break;

        case 44:

        this.setCurrentCp(this.getMaxCp());

        this.setCurrentHp(this.getMaxHp());

        this.setCurrentMp(this.getMaxMp());

        Announcements.announceToAll("" + this.getName()+ " is a psycho with 44 kills!");

        break;

        case 52:

        this.setCurrentCp(this.getMaxCp());

        this.setCurrentHp(this.getMaxHp());

        this.setCurrentMp(this.getMaxMp());

        Announcements.announceToAll("" + this.getName()+ " is crazy with 52 kills!");

        break;

        case 60:

        this.setCurrentCp(this.getMaxCp());

        this.setCurrentHp(this.getMaxHp());

        this.setCurrentMp(this.getMaxMp());

        Announcements.announceToAll("" + this.getName()+ " is servers God with 60 kills!");

        default:

        ;

        }

 

It's a very easy code only for funs of KSS.

For me works 100%.

Have fun and not flame.

Posted

                 if (isHero())
                 {
                    L2Skill skill = SkillTable.getInstance().getInfo(7029, 2); // Superhaste Lvl 2
                    if (skill != null)
                    {
                       skill.getEffects(this, this);
                       sendMessage("" + this.getName() + " you feel the power of a GM. SuperHaste!!");
                    }

 

First of all, you should set quakesystem equal to zero there, if you want it to work like you said. Otherwise the above code should have been in case 60 and the heal code in case 90.

 

Besides this, the above coed is wrong, because if the player is hero himself(from the olympiad), then he will just get 30 pvps in a row to get super haste. Hence you have to make a variable to check if he is hero from quake system, in order to work.

 

But anyway, it's pointless to share sth already shared with 5-6 lines changed. You also in the wrong section too.

Posted

                 if (isHero())
                 {
                    L2Skill skill = SkillTable.getInstance().getInfo(7029, 2); // Superhaste Lvl 2
                    if (skill != null)
                    {
                       skill.getEffects(this, this);
                       sendMessage("" + this.getName() + " you feel the power of a GM. SuperHaste!!");
                    }

 

First of all, you should set quakesystem equal to zero there, if you want it to work like you said. Otherwise the above code should have been in case 60 and the heal code in case 90.

 

 

Besides this, the above coed is wrong, because if the player is hero himself(from the olympiad), then he will just get 30 pvps in a row to get super haste. Hence you have to make a variable to check if he is hero from quake system, in order to work.

 

But anyway, it's pointless to share sth already shared with 5-6 lines changed. You also in the wrong section too.

 

Easy... Easyy... :D

First of all im learnig now java. Second the code is testedfrm me with no problem and as it is.

In 30 PvP you get hero status. If  you are already hero  Olympiad hero QuakeHero yes you will get Superaste 2 in 3 kills.

I do not understand clearly what you are saying to me so easy :)

Posted

Easy... Easyy... :D

First of all im learnig now java. Second the code is testedfrm me with no problem and as it is.

In 30 PvP you get hero status. If  you are already hero  Olympiad hero QuakeHero yes you will get Superaste 2 in 3 kills.

I do not understand clearly what you are saying to me so easy :)

Didn't say anything, i understand. But the best way of learning java l2j is to try create sth unique.

 

If the code was meant to give super haste to ALL heroes(even if they haven't taken hero status from quake pvp system), then it's ok, but if it wasn't meant to be this way, you should have made a boolean variable, and check if this is true too except from checking if the player is a hero.

Posted

Didn't say anything, i understand. But the best way of learning java l2j is to try create sth unique.

 

If the code was meant to give super haste to ALL heroes(even if they haven't taken hero status from quake pvp system), then it's ok, but if it wasn't meant to be this way, you should have made a boolean variable, and check if this is true too except from checking if the player is a hero.

Yes i know that.In case 30 if(!isHero) the player will setted hero.

Again in case 30 if (isHero) than the system automatically will give him a buff.

 

I did this in case if a player s already hero he cannot be hero again (Lol).

He has to be rewarded with somth else.

Posted

Yes i know that.In case 30 if(!isHero) the player will setted hero.

Again in case 30 if (isHero) than the system automatically will give him a buff.

 

I did this in case if a player s already hero he cannot be hero again (Lol).

He has to be rewarded with somth else.

:D You still don't get me...

 

For example, i play in one server with this system. I have never been for pvping, i go to olympiad and become hero. Then i go pvping.. If i achieve 30 kills in a row, then i will get super haste skill without achieving 60 kills, just 30 because i would already be a hero without going to pvp.

 

But also, if i wasn't a hero and went for pvps, if i got 30 in a row i would become hero. But then to get super haste i would need to die and earn again 30 pvp kills. So what i want to say is to add this:

                 if (isHero())
                 {
                    L2Skill skill = SkillTable.getInstance().getInfo(7029, 2); // Superhaste Lvl 2
                    if (skill != null)
                    {
                       skill.getEffects(this, this);
                       sendMessage("" + this.getName() + " you feel the power of a GM. SuperHaste!!");
                    }

 

in case 60, because the player won't have to die to get super haste, but just earn 30 more pvp kills in a row.

 

About the first thing, do it like this:

 

Create above increasePvpKills() method this:

private boolean quakeHero = false;

 

Then change this:

                 if (isHero())
                 {
                    L2Skill skill = SkillTable.getInstance().getInfo(7029, 2); // Superhaste Lvl 2
                    if (skill != null)
                    {
                       skill.getEffects(this, this);
                       sendMessage("" + this.getName() + " you feel the power of a GM. SuperHaste!!");
                    }
                 }
                 this.setCurrentCp(this.getMaxCp());
                 this.setCurrentHp(this.getMaxHp());
                 this.setCurrentMp(this.getMaxMp());
              }

 

To this:

                 if (isHero() && quakeHero)
                 {
                    L2Skill skill = SkillTable.getInstance().getInfo(7029, 2); // Superhaste Lvl 2
                    if (skill != null)
                    {
                       skill.getEffects(this, this);
                       sendMessage("" + this.getName() + " you feel the power of a GM. SuperHaste!!");
                    }
                 }
                 this.setCurrentCp(this.getMaxCp());
                 this.setCurrentHp(this.getMaxHp());
                 this.setCurrentMp(this.getMaxMp());
              }

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Posts

    • Hi. Can you describe the task in more detail? I think many people here work with IntelliJ IDEA.
    • https://jmp.sh/MaCC5Gqa Combat animation synchronization: Bow/Sword. Added arrow flight and sword-to-monster effects.
    • The holidays are over and we’re back to work (well… we never really stopped 🙂 ). The server has been online without a single restart since December 26, running smoothly and without issues. That’s because we care, and we’ll keep caring. Many of us remember the old days: helping new players, building clans from zero, catching up together, and having fun without rushing. With that spirit in mind, Newbie Bonuses are now live and we strongly encourage everyone to help newcomers catch up and enjoy the journey. L2Elixir was never about short-term hype. It’s about community, stability, and bringing back what made Lineage II special.   🎁 Newbie Bonuses Characters created since December 25 & all new players receive a Newbie Box (Return Hero) (Rune EXP/SP +50% for 5 days, Random 48-hour Costume) 2nd Class Transfer cost reduced from 3kk to 1kk — join Academies! 3rd Class Transfer enabled, available only for classes already in the Hall of Fame. 🛡️ Anti-Bot Implemented BOT-CHECKER v2, more checks, and general improvements. Added extra checks during PvP. New Auto-Check system for suspicious behavior (penalties apply if third-party software is detected). Fixed Bot Report Button not refreshing. ⚙️ General After critical errors or force disconnects, characters will remain No Carrier for a few minutes. Added Cursed Bone to Helvetia (QoL). Enabled on-screen Clan War kill notifications. Fixed buff store issues when entering characters. Fixed party drop owner calculation (please report any issues). 🧙 NPCs Harit Lizardman, Grunt, and Archer now level up SC up to stage 5. 🎉 Events Fixed trigger skills not working during Events. Fixed Health / Shield packs not disappearing in some cases. Fixed summon remaining time not refreshing after Events. Added a second Team vs Team map to reduce routine. Added another Save the King map. Christmas Event cleanup completed. Players in Observe Mode can no longer register for Events. 📜 Quests Fate’s Whisper Fixed and corrected messages. Enchanted B-grade weapons can now be exchanged as per retail. Added missing Social Victory animation on quest completion. 🗺️ Geodata Fixed falling issues in Castle zones.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • NEW SEASON START 23.01.2026 Get ready for the ultimate High Five adventure on L2Exoplanet.net!   • The last two previous Seasons are now merged into the Core Server. • The Core Server remains our main long-term world. • All future Seasonal Servers will be merged into Core after they end. • No characters or items will be lost – everything stays safe!     GRAND OPENING:  23.01.2026 at 20:00 GMT+1 BETA TEST:    16.01.2026    Client: High Five Rates: x10   Website: https://l2exoplanet.net Facebook: https://www.facebook.com/L2-Exoplanet-106811564103836 Discord: https://discord.gg/4fzhW7ZSPc         Game Rates    Experience: x10  Skill Points: x10  Adena: x5  Drop: x8  Spoil: x8  Quest: x5  Raid Boss Drop: x5  Fame: x2  Epaulette: x8  Manor: x8      Safe Enchant: +3  Maximum Enchant: +16  Normal Scroll Chance: 60%  Blessed Scroll Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%      Game Settings    Multibox - 3 game clients per HWID  Autoloot  Autolearn Skills Auto Farm  NPC Buffer   Buff Slots (24+4/12)  Buff Duration (2h)  Olympiad Period 7days (new heroes appear every monday)  Seven Signs Period  Class Transfer for Adena  Max Sub-Class 3  Sub-Class Max Level 85  Essence Interface  Champions System  Vote Reward System  Dayli Reward System  PC Points Reward (500PC = 1 Donate Coin)      Epic Bosses Respawn Times     Queen Ant:  24 Hours +/- 4 Hours   Beleth: 3 Days +/- 8 Hours   Baium: 3 Days +/- 8 Hours   Antharas: 4 Days +/- 8 Hours   Valakas:  5 Days +/- 8 Hours     Instance Info     Normal Freya = 6 Players   Hard Freya = 12 Players   Frintezza = 6 Players   Zaken 83 Day = 6 Players   Zaken 60 Day = 6 Players   Zaken Nightly = 9 Players   Tiat = 6 Players   Beleth = 12 Players
  • 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..

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