Jump to content

Recommended Posts

Posted

Its not a big thing.. But before you read this PLEASE note that this is based on PvP Hero Shine system shared here by VaGo and made by some user in l2jforums.Its not all mine!

So what this mod does.. Is when the player reaches X kills without dying ,he gets an custom item/skill (that you choose what to be) and makes him a special effect ID 16 (like you just went from a normal player to a hero ^^) ,and it also announces : "Player X killed Y victims in a row!He is a survivor now!" when he gets the survivor ,and it also announces when he looses it : "Player X died and he lost his survivor mode.".Its not a big thing ,i say it again ,but i learn alot by these shares i make :)

 

L2PcInstance.java

 

Find this :

private boolean _hero = false;

Make a new line and insert this

   /** Survivor Mod Value */
  private int SurvivorKills = 0;

 

Find this

 setPvpKills(getPvpKills() + 1);

 

Make a new line and insert this

 

     // Remove it if he dies..
     SurvivorKills = 0;
           {
              //this.getPlayer().removeSkill(SkillTable.getInstance().getInfo(skillId, skillLvl), false);
              Announcements.getInstance().announceToAll("Player "+target.getName()" died and lost his survivor mode from "+this.getName()+");
              sendMessage("You was so close to the victory..Next time!");
              sendPacket(new UserInfo(this));
           }

 

Find this (around line 5000-5100~)

 

 reviveRequest(this, null, false);

 

Make a new line and insert below it

 

     // Set him a survivor if he meets the conditions

	                SurvivorKills++;
	               
	                // If SurvivorKills > 4 (5+ kills) give him the survivor thingie ;d
	                if(SurvivorKills > 4)
              broadcastPacket(new SocialAction(getObjectId(), 16));
		//addItem("Loot", ITEM ID, ITEM COUNT, this, true);
	                    //addSkill(SkillTable.getInstance().getInfo(SKILLID, SKILL LVL));
              Announcements.getInstance().announceToAll("Player "+this.getName()+" killed 5 victims in a row!Now he's a survivor!");
                                   sendMessage("You are a survivor now!Go kill more n00bz.");
	       broadcastUserInfo();

 

IMPORTANT NOTE!

This WILL NOT give ANYTHING till you set it up properly.

How to set it up?

You will see in my last code the following lines :

			//addItem("Loot", ITEM ID, ITEM COUNT, this, true);
	                    //addSkill(SkillTable.getInstance().getInfo(SKILLID, SKILL LVL));

the " // " before them means its DISABLED.If you wish to enable it ,you have to set it up like :

addItem("Loot", 57, 1, this, true); - 57 is the id (in my case Adena) and the 1 is amount (in my case it gives 1 Adena).

if you want to use the skill method you have to set it up like :

addSkill(SkillTable.getInstance().getInfo(211, 1)); - 211 is the ID of the skill (in my case Boost HP) and 1 is the level of the skill (in my case it gives Boost HP 1lv skill)

NOTE

To remove the skill when it dies ,find this

//removeSkill(SkillTable.getInstance().getInfo(skillId, skillLvl), false);

Remove the // before it AND replace the ID and level of the skill.I`m tired ,going to sleep ,tomorrow i`ll make it configurable and much easyer to use and edit.

 

Credits to : Me , l2jforum (for the hero shine mod that i highly modificated) and VaGo who shared it here.

P.S. I just c/p'ed it in eclipse and tried to compile ,it worked well ,but it needs ingame test.Whoever wants can test it ;)

Posted

does it have protection like if a player kills someone with the same ip the kill doesn't count. :D BTW this is awesome! i will test it and come with feedback! peace

Posted

i tryed to add it but i get some errors...

Announcements.getInstance().announceToAll("Player "+this.getName()+" killed 5 victims in a row!Now he's a survivor!");

Announcements cannot be solved.

activeChar.getObjectId(), 16));

activeChar cannot be solved.

Maybe i did smthing wrong idk. This is the first time i try to compile smth in eclipse.

can you tell me how can i solv that?

Posted

Well as you said is nothing special but it's a really nice mode

good joob leeroy i like it ;)

Agree you did nice jod there , keep up learning java mate.

Posted

Its nothing rly special ,but i learned how to use socialactions by this share and the announce methods.. ;) I make shares so i can learn more by them ,it highly boosts up my knowledge :]

Posted

Hey .. nice share thx. But i have a problem, it's that i implemented but when i kill on pvp it doesnt give me the item and skill (goldbar and super haste). It gives me the item and skill when i die, from mob or pvp.

 

Can anyone help me? :O

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • A lot of people say L2 is dead, and ACIS is still in development. But seriously, you’ve got the skills and knowledge why not make your own game with a clean brand new client from scratch? The only thing missing is client devs, and you can find plenty here or on freelance sites. Stop treating it like a hobby and turn it into something that can actually make money and people happy, you have the name just move forward, even AI can help you script quests, me first I would totally play any game you made similar to l2 anyway 🍪 have one i know you like them
    • Would it be possible to update the guide? The images are offline! 😞
    • In the fast-paced world of digital marketing, having the right tools makes all the difference. If you're searching for a reliable SMM panel Nigeria, GoUpSocial is here to take your online presence to the next level. Built for influencers, marketers, startups, and content creators, our platform is the ultimate solution for smart and scalable social media growth. With GoUpSocial, you get more than just numbers—you get engagement that drives real impact. As a trusted Nigerian SMM panel, we help you gain visibility across top platforms like Instagram, TikTok, YouTube, Facebook, and Twitter—all at the most competitive prices in the market. Experience the Power of the Best SMM Panel in Nigeria We understand that quality matters just as much as affordability. That’s why GoUpSocial has become the go-to platform for users seeking the best SMM panel in Nigeria. Here’s what makes us the preferred choice: 🚀 Real-Time Delivery: Get your orders processed and completed in minutes, not hours. 💼 All-in-One Dashboard: Manage all your campaigns with ease from a clean, simple interface. 💡 Effective Strategies: Our tools are tailored for organic-looking growth and high user engagement. 🧾 Transparent Pricing: No hidden fees—just straightforward, affordable packages. 👩‍💻 Expert Support: Our team is available 24/7 to guide you through every step of the process. Whether you need more followers, likes, views, or overall engagement, our SMM panel Nigeria services deliver measurable and meaningful results. Why We’re the Nigeria Fastest and Cheapest SMM Panel GoUpSocial isn’t just another provider—it’s the Nigeria fastest and cheapest SMM panel built with performance and value in mind. We combine automation, intelligent targeting, and local market understanding to help you scale effortlessly. Need to boost a campaign today? Our platform supports instant order processing, real-time tracking, and localized engagement strategies—making it ideal for any influencer or business operating in Nigeria. Plus, as the cheapest SMM panel in Nigeria, we make sure that even clients with limited budgets can access top-quality services without compromise. A Nigerian SMM Panel Built for 2025 and Beyond As social media algorithms evolve, traditional methods of gaining reach and engagement no longer work. That’s why we’ve built the SMM panel Nigeria 2025—a next-gen platform optimized for today’s challenges. From smart delivery settings to niche-specific targeting, GoUpSocial provides you with every advantage in a competitive digital world. Our system adapts to the latest platform changes, helping you stay relevant, visible, and in control. Looking for a localized service? Our SMM panel for Nigerian followers helps you connect directly with your audience—boosting both credibility and conversions. All-in-One Online Panel in Nigeria for Every Social Goal No matter your objective—brand awareness, follower growth, or engagement improvement—GoUpSocial is the online panel in Nigeria that offers it all. With flexible services, dynamic campaigns, and secure systems, we give you the tools to succeed in a crowded online space. And because we’re committed to your growth, our platform is continually updated to reflect the best practices of modern digital marketing. Take the Leap with the Best Nigerian SMM Panel Ready to grow smarter? With GoUpSocial, you don’t just gain social proof—you build real influence. As the cheapest Nigeria SMM panel, we combine speed, quality, and affordability in one seamless platform. Whether you're an aspiring influencer, a marketing agency, or a brand aiming for greater reach, GoUpSocial is the ultimate Nigerian SMM panel to help you reach your full potential. 👉 Sign up today and unlock the next level of social media growth with GoUpSocial.
    • Lineage2 : Website Download now our System Patch. Registration from 12:00 UTC Time.
  • 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