Jump to content

Recommended Posts

Posted

oh, no flame please its my first share i am new to Java ^^

 

 

 

ok, open l2pcinstance and Import

import net.sf.l2j.gameserver.Announcements;

 

Than now find those lines and add the code

 

// Add karma to attacker and increase its PK counter

setPkKills(getPkKills() + 1);

setKarma(getKarma() + newKarma);

 

ok now add the code :

 

     

       // Delvl Player When they PK Another Player

       getStat().removeExpAndSp((getExp() - Experience.LEVEL[getStat().getLevel() - 1]), 0);

broadcastKarma();

Announcements.getInstance().announceToAll("" + this.getName()+ " Has been Delvld for PKing!");

sendMessage("You Have Been Delvld for Wrong Actions! You are now level " +getLevel()+ " !");

 

IF someone Pk's now a player he gets Delevled by one level, 78 to 77 to 76 and and and

Might be interesting for a Server Where pk is not allowed like a RPG server whatever

 

Script work on all Chronicles just adapt it for your version/Project

 

IMG : http://img580.imageshack.us/i/shot00026x.jpg/

 

Credits: Me

 

 

Posted

Well i think first of all it should have a config.And secondly i would find it extremly usefull if it was related with zones for example if the pk was on farm areas he would be deleveled....

Posted

Well i think first of all it should have a config.And secondly i would find it extremly usefull if it was related with zones for example if the pk was on farm areas he would be deleveled....

 

just add like :

 

 

+ if (isInsideZone(ZONE_Farm))

+ {

+            getStat().removeExpAndSp((getExp() - Experience.LEVEL[getStat().getLevel() - 1]), 0);

+    broadcastKarma();

+    Announcements.getInstance().announceToAll("" + this.getName()+ " Has been Delvld for PKing!");

+    sendMessage("You Have Been Delvld for Wrong Actions! You are now level " +getLevel()+ " !");

+ }

+

than make your Farm zone and done, it should work than

edit: Correct me if i am wrong havent tested it

Posted

the idea isn't bad ;D But you could make something like this :

getInventory().destroyItemByItemId("Adena", 57, 100000000, player, null);

and delete the announce ;)

Posted

the idea isn't bad ;D But you could make something like this :

getInventory().destroyItemByItemId("Adena", 57, 100000000, player, null);

and delete the announce ;)

thanks and heh been thinking about the same whit deleting items.

i'm myself bored and annoyed by those Pkers in lvling/farm zones :D

  • 2 years later...

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

    • We are entering another season, the year 2026, which marks 20 years since the beginning of preparations for the first Chronicle server - Gracia Final.     The plans are the same as 20 years ago: to prepare a new generation of the game with the help of our edited game client, New Era.   There will be special new locations and dungeons for solo players and clans, clan quests and a clan shop, as well as special items and jewelry with attributes.     Enjoy the game at Dark Dragon             https://www.darkdragon.club/wp-content/uploads/2025/12/Dark_Dragon_login_New_Era.mp4    
    • Coming soon — New Year promotions across the entire SOCNET ecosystem We are preparing special offers, bonuses, and surprises across all our projects. Follow updates on our social media — you definitely don’t want to miss them. 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
    • Coming soon — New Year promotions across the entire SOCNET ecosystem We are preparing special offers, bonuses, and surprises across all our projects. Follow updates on our social media — you definitely don’t want to miss them. 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
    • We are looking for partners and account suppliers for cooperation We are open to partnerships with reliable account suppliers for the following services: ➡ Tinder ➡ Badoo ➡ Bumble ➡ Hinge ➡ Happn ➡ Meetic ➡ VK Dating ➡ LINE ➡ Snapchat ➡ Reddit ➡ LinkedIn ➡ Instagram ➡ Facebook ➡ Threads ➡ Google ADS ➡ E-mails ➡ WhatsApp ➡ Twitter We are considering long-term cooperation, stable volumes, and mutually beneficial terms. If you have any offers — we will be glad to discuss the details. Contact us using the details below. ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Hello Alisa, do you know where is the "auto target" when other enemy attack you?, is in dll but idk wich is the binary code
  • 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