Jump to content

Recommended Posts

Posted

Well after the pvp reward system i though to make a Exp And Sp Reward system.

 

Not much to say ;)

 

Here We Go;

 

Index: /java/config/pvp.properties
===================================================================
--- java/config/pvp.properties	(revision 2839)
+++ java/config/pvp.properties	(working copy)
@@ -22,6 +22,11 @@
# item drop related min/max
MinimumPKRequiredToDrop = 5

+#Exp and SP Award System By Cobra
+# 0 Is by Default!
+AddExpAtPvp = 0
+AddSpAtPvp = 0
+
# Should we award a pvp point for killing a player with karma?
AwardPKKillPVPPoint = False

Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 2839)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -81,6 +81,8 @@
     /** Properties file for telnet configuration */
     public static final String  TELNET_FILE										= "./config/telnet.properties";

+	
+
     /******************************************************************************************************************************************************/
     /** L2J Property File Definitions End Here**/
	/******************************************************************************************************************************************************/
@@ -563,6 +565,7 @@
     public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT;
     public static boolean 	L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
     
+    
     /** ************************************************** **/
	/** L2JMods Settings -End                              **/
	/** ************************************************** **/
@@ -612,6 +615,10 @@
     public static boolean	KARMA_AWARD_PK_KILL;
     /** Minimum PK required to drop */
     public static int		KARMA_PK_LIMIT;
+    /** Add Exp At Pvp! */
+    public static int       ADD_EXP;
+    /** Add Sp At Pvp! */
+    public static int      ADD_SP;  
     /** List of pet items that cannot be dropped (separated by ",") when PVP */
     public static String	KARMA_NONDROPPABLE_PET_ITEMS;
     /** List of items that cannot be dropped (separated by ",") when PVP*/
@@ -944,7 +951,8 @@
     public static int     FAST_CONNECTION_LIMIT;
     public static int     NORMAL_CONNECTION_TIME;
     public static int     FAST_CONNECTION_TIME;
-    public static int     MAX_CONNECTION_PER_IP;  
+    public static int     MAX_CONNECTION_PER_IP;
+  

     /**
      * This class initializes all global variables for configuration.<br>
@@ -1935,6 +1943,8 @@
	                KARMA_AWARD_PK_KILL         = Boolean.parseBoolean(pvpSettings.getProperty("AwardPKKillPVPPoint", "true"));

	                KARMA_PK_LIMIT                      = Integer.parseInt(pvpSettings.getProperty("MinimumPKRequiredToDrop", "5"));
+	                ADD_EXP                             = Integer.parseInt(pvpSettings.getProperty("AddExpAtPvp", "0"));
+	                ADD_SP                              = Integer.parseInt(pvpSettings.getProperty("AddSpAtPvp", "0"));

	                KARMA_NONDROPPABLE_PET_ITEMS    = pvpSettings.getProperty("ListOfPetItems", "2375,3500,3501,3502,4422,4423,4424,4425,6648,6649,6650,9882");
	                KARMA_NONDROPPABLE_ITEMS        = pvpSettings.getProperty("ListOfNonDroppableItems", "57,1147,425,1146,461,10,2368,7,6,2370,2369,6842,6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,7694,8181,5575,7694,9388,9389,9390");
@@ -2336,6 +2346,8 @@
         else if (pName.equalsIgnoreCase("CanGMDropEquipment")) KARMA_DROP_GM = Boolean.parseBoolean(pValue);
         else if (pName.equalsIgnoreCase("AwardPKKillPVPPoint")) KARMA_AWARD_PK_KILL = Boolean.parseBoolean(pValue);
         else if (pName.equalsIgnoreCase("MinimumPKRequiredToDrop")) KARMA_PK_LIMIT = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("AddExpAtPvp")) ADD_EXP = Integer.parseInt(pValue);
+        else if (pName.equalsIgnoreCase("AddSpAtPvp")) ADD_SP = Integer.parseInt(pValue);

         else if (pName.equalsIgnoreCase("PvPVsNormalTime")) PVP_NORMAL_TIME = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("PvPVsPvPTime")) PVP_PVP_TIME = Integer.parseInt(pValue);
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 2839)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -5287,6 +5287,10 @@
     {
         // Add karma to attacker and increase its PK counter
         setPvpKills(getPvpKills() + 1);
+        addExpAndSp(Config.ADD_EXP, Config.ADD_SP);
+        {
+        	sendMessage("You win Exp and Sp From Pvp Kills!.");
+        }

         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
         sendPacket(new UserInfo(this));

 

You can edit your config now are 0 by default .

 

Have Fun Cobra!

Posted

ye u all are thankful that i agreed so this post can be made... =P

 

xd ^^

Posted

yeh i know i spelled stupid.........

"Yo all shod be tankful i agreed to be shared"

but i got a lame excuse tho..

i was eating O.o

Posted

[GR]

 

re file tora ti pipes einai aftes.... mikro pragmata kanoume share ? iparxoun 1002 pargmata p boroun na ginoun opos

 

sto pvp --

1.get Adena

2.or get +1 enchant

3.set name color

4.set title color

5.set hero

6.set noble

7.set flaged

8.give karma

9.announce somthink

10. make big head

11.add exp

12.remove exp

13.add sp

14.remove sp

15.add one skill

16.remove one skill

 

ola afta p s anefera einai pipes p den xriastike na skefto kai poli... iparxoun ala tosa...

 

afto p thelo na s po einai oti tetiou idios share einai axristo...

Posted

[GR]

 

re file tora ti pipes einai aftes.... mikro pragmata kanoume share ? iparxoun 1002 pargmata p boroun na ginoun opos

 

sto pvp --

1.get Adena

2.or get +1 enchant

3.set name color

4.set title color

5.set hero

6.set noble

7.set flaged

8.give karma

9.announce somthink

10. make big head

11.add exp

12.remove exp

13.add sp

14.remove sp

15.add one skill

16.remove one skill

 

ola afta p s anefera einai pipes p den xriastike na skefto kai poli... iparxoun ala tosa...

 

afto p thelo na s po einai oti tetiou idios share einai axristo...

 

[GR] Fogotendx20

 

Kai ti se niazei esena? ti se exoume edw?

Gia na peis ti tha gynotan?

Afou gynontai kanta , ti perimeneis?

An den thes gia dikous sou logous na min ta kaneis .. diko sou provlima!

 

1Waring Epidei Den mporeis na deis to post.!

 

Posted

[GR]

 

re file tora ti pipes einai aftes.... mikro pragmata kanoume share ? iparxoun 1002 pargmata p boroun na ginoun opos

 

 

ola afta p s anefera einai pipes p den xriastike na skefto kai poli... iparxoun ala tosa...

 

afto p thelo na s po einai oti tetiou idios share einai axristo...

[GR]kai po0 3ero0me emeis oti auta po0 lec dn einai pipes?

ase mas re. an exeis kati kaLutero dei3e to mas kai mhn ako0me mono istories kai logia..

@teacher GJ!

Posted

И вправду заебись.... Мне нравится.

 

This is English Topic ! If you wanna speak another language put tags!

 

1waring!

 

Ok...looks like noone wants english here...Closed until some L2Mod cleans it out.

 

It's ok if someone use tags like [gr] [eng] etc...!

 

-Unlocked

Guest
This topic is now closed to further replies.



  • Posts

    • Hello,iv got fafurion running localy just for fun and seems that files dont have geodata couse i can hit through walls so are mobs.Anyone can tell me how to activate geodata or where to insert geodata files?
    • Good luck with your g/o 😃
    • You're talking complete nonsense. The source code of SphereAPI, which handles all requests, is closed and has never been published anywhere.     That return $this doesn't affect anything, PHP just ignores it. Why are you showing it?     Yes, of course I want that, and I’m asking you — go ahead and hack it, I’d even be thankful. The most you can probably do is launch a DDoS attack, but that’s not hacking. The IP you see is just a public one, used by default to handle requests. There are many other IPs involved, which aren’t disclosed for privacy reasons. So, when should I expect your hacker attack? If you fail, it means you talked big for nothing. I hope you're not all talk and can actually back up your words. UPD: To make your task easier, I have disabled limits on incorrect and failed requests, so your site/IP won't get blocked.
    • Lineage2Dex Interlude+ x50 Server launches TODAY!       The wait is over – the Lineage2Dex Interlude+ x50 Server launches TODAY! Grand Opening - April 26 at 19:00 (UTC+3) Over 10,000 registered accounts are ready to dive in! Beta with massive activity over, thx all who participate on it! It's time to begin your real Jorney! 👉 Read full roadmap 👉 Full server description 👉 Download and registration The server will be split into 3 stages, each featuring multiple content episodes. Stage 1: April 26 – May 18 Welcome to the Classic Interlude Phase. This stage is built with minimal custom content, focused on delivering that pure Interlude experience. It’s perfect for both new players unfamiliar with our project and veterans who enjoy a traditional start. Expect a smooth and nostalgic journey with familiar mechanics. Stage 2: May 19 – June 22 Time to expand the world! As most Interlude content gets completed, we gradually introduce new elements. Hellbound will open first, followed by weekly content updates. Midway through this stage, the Isle of Prayer will become available — a new zone featuring Dynasty Gear and fresh challenges. Stage 3: From June 23 Welcome to full content access! Some location become to High-level location, offering great reward! Once this phase concludes, a full merge with Union server will take place — and yes, all your characters and items will carry over safely. We wish everyone a smooth start, fair play, and tons of fun on the new x50 server! See you in-game!
    • Hello everyone! I'm offering professional L2J development services, specialized for aCis projects.   🔹 What I offer: Ready-to-implement existing systems (events, features, gameplay improvements). Custom development: I can create new systems based on your specific requests and ideas. Bug fixing, optimization, and enhancement of your server's code. Professional, clean, and organized Java coding. Support after delivery to ensure smooth integration.   🔹 Some examples of available systems: PvP and PvE Mini-Events (fully automated). Custom Raid Boss Events. Advanced Clan Utilities (regroup features, clan ranking, etc). Reward Systems (based on kills, damage, objectives, etc). Achievements Subscription system Arena Fights (1v1 tournament, scratch made). Advanced event engine (12 events, many features). multi-client aCis project, progressive gameplay C4 to C6   🔹 Why work with me? Years of experience working directly with aCis pack. Fast, reliable communication. I care about performance and long-term stability. I can adjust the systems to fit your server's style and balance.   🔹 Pricing: Flexible depending on the complexity (fixed price per project or per system). Discounts for multiple systems or long-term collaboration.   🔹 Contact: MaxCheaters PM Discord: @Luminous   Serious and passionate about your project? Let's make your server unique!
  • Topics

×
×
  • Create New...