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

    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
    • THEY DON’T COME BACK FOR NO REASON. HERE’S WHY Our clients come from different countries and with very different tasks. But the strongest indicator of quality is simple — when a client comes back **for a second time**. This case is exactly that. The client returned with a request for a **German ID**. The requirement was clear: a document **in a male hand**, with a natural live scene and correct geographic context. What we did: ▪ accepted source files and data without unnecessary bureaucracy ▪ selected a **real street**, not a generic background ▪ built a print-ready mockup with correct scene logic ▪ sent it for approval ▪ after confirmation, delivered the **final file for printing** No templates. No “good enough”. Only solutions tailored to a specific task. Result: ▪ mockup approved on the first try ▪ client fully satisfied ▪ stays in touch We work **worldwide** — and that’s exactly why clients return. Contact us › TG: @mustang_service ( https:// t.me/ mustang_service ) › Channel: Mustang Service ( https:// t.me/ +6RAKokIn5ItmYjEx ) *All data is published with the client’s consent.* #redraw #verification #documents #case #ID
    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
  • 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..