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

    • Use l2tower for free, or try adrenaline. @Alex K.
    • 🎁 Double the Impact, Half the Cost! from 25/10/2025 until 25/12/2025 Buy or Renew your Donation Panel now and save 50% because supporting others should reward you too. 💡 Use code BLACKFRIDAY at checkout! https://hopzone.eu/store/product/26-donate-panel-v5/   About Donate Panel v5 PAYMENT IN EASY 5 STEPS Login with your character name. Select the donation service (Paypal Stripe Payeer MercadoPago 🆕). Select the amount of payment. Pay. 😎 Automatically recieve the reward ingame (and yes) while he is online! 🤯 PAYMENT METHODS Paypal Stripe accepts credit cards, debit cards, ACH transfers, Apple Pay, Google Pay, Microsoft Pay, and various local payment methods from around the world. Payeer accepts BTC, LTC, ETH, DASH, BCH, USD, EUR, RUB wallets MercadoPago accepts ARS, BRL, CLP, MXN, COP, PEN, UYU. PROTECTION Full SSL website (can be forced by htaccess) XSS Protection just in case. Remove vulnerability headers in htaccess level Session Validation COOKIE, POST, GET global inputs are sanitized SQL Injection protection Query String protetion Prepared statements of PDO driver (no sql injection there) Google Invisible Captcha v3 (NEW) Last but not least security through obscurity SEO & PUBLIC MANAGEMENT SEO Friendly urls (in htaccess level) Google Analytics and GTAG Code ready. Terms of use ready to go Refund policy ready to go Contact All the TERMS text are showing config dynamic item images/text with server's name and more OPTIMIZATION AND SPEED Zip Content (faster load) Memory save (unloading global vars) Using CDN’s for bootstrap Scripts are loaded in footer Images are soft to max 10kb Small and smart organized code style FUNCTIONALITIES Multilanguage (4 languages so far) EN ES NL EL (Easy to add more) Payment methods Paypal, Stripe, Payeer and MercadoPago After payment or cancel the user is redirected back to “Thank you” page. TECHNOLOGIES Bootstrap 5x CSS PHP 5.6+ (for l2off) and PHP 7.4+ (for java) Extensions for php: MySQL (L2Java), pdo_dblib(L2OFF), pdo_sqlsrv(L2OFF), mssql_connect (L2OFF) and PDO Drivers that support MariaDB, MySQL, MsSQL. SYSTEMS Stripe and MercadoPago supports sandbox and live. Detailed and seperated Logs (ERROR, DEVELOPER, INFO, WARNING, PAYMENT) for website and Rest APIs. Detailed Log in database for Payments and services used. Google Analytics (You know when players are in the panel and if they pay) Google Captcha V3 Dynamic Icons to show according your Donate Item ID Multiple servers L2OFF or L2JAVA servers can be added together as server network     BE AWARE: Leaked versions of old v2 panels (year 2018 with bugs) are still out sold by scammers without support or knowledge of the files.
    • I work with Kenrix and he is a  next level coder. Hugely Recommended.
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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