Jump to content

PK Player Transformation


Recommended Posts

Hello. This share includes nothing special and amazing but this one will be funny for gameplay.

Please don't judge me...

PK Players will transform to monsters till they will have karma(tranformation can be seen only by other players)

Index: com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 946)
+++ com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -3041,6 +3042,15 @@
		{
			karma = 0;
		}
+		
+		if(karma ==0 && Config.TRANSFORM_PK)
+		{
+			getPoly().setPolyInfo(null, "1");
+			decayMe();
+			spawnMe(getX(),getY(),getZ());
+			sendMessage("You have been untransformed.");
+			broadcastUserInfo();	
+		}

		if(_karma == 0 && karma > 0)
		{
@@ -8359,10 +8369,21 @@
			updateTitle();
		}

+		if(Config.TRANSFORM_PK)
+		{
+				String transform_id = Config.TRANSFORM_NPC_ID;
+				getPoly().setPolyInfo("npc", transform_id);
+				teleToLocation(getX(), getY(), getZ(), false);				
+				sendMessage("You have killed a player!");				
+				sendMessage("You have been transformed to "+Config.TRANSFORM_NPC_NAME+".");
+				broadcastUserInfo();		
+		}		
+
		//Update the character's title color if they reached any of the 5 PK levels.
		updatePkColor(getPkKills());
		broadcastUserInfo();

+
		// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
		sendPacket(new UserInfo(this));
	}
===================================================================
--- com/l2jfrozen/Config.java	(revision 946)
+++ com/l2jfrozen/Config.java	(working copy)
@@ -2167,10 +2167,21 @@

public static boolean DONATOR_SKILLS;
+	public static boolean TRANSFORM_PK;	
+	public static String  TRANSFORM_NPC_ID;
+   public static String  TRANSFORM_NPC_NAME;

@@ -2309,10 +2311,21 @@
//============================================================
public static void loadByLekiConfig()

		GM_MAX_ENCHANT = Integer.parseInt(ByLekiSettings.getProperty("GMMaxEnchant", "65355"));
+       	TRANSFORM_PK      = Boolean.parseBoolean(ByLekiSettings.getProperty("EnableTransformPK", "False"));
+        	TRANSFORM_NPC_ID             = ByLekiSettings.getProperty("TransformNPCID", "14040");
+        	TRANSFORM_NPC_NAME           = ByLekiSettings.getProperty("TransformNPCName", "Zombie");		
		if (L2JMOD_CHAMPION_ENABLE_mxc != 0 && L2JMOD_CHAMPION_ENABLE_mxc != 1 && L2JMOD_CHAMPION_ENABLE_mxc != 2) L2JMOD_CHAMPION_ENABLE_mxc = 0;	
	}
	catch(Exception e)	
Index: config/ByLeki/ByLeki.ini
===================================================================
--- config/ByLeki/ByLeki.ini	(revision 946)
+++ config/ByLeki/ByLeki.ini	(working copy)
@@ -21,7 +24,5 @@
# words to use, between 10 and 16 keys.

########################################
#PK Cleaner NPC
########################################
#Item ID for Cleaning PK
PKCleanItemID = 4037

#PK Cleaning price
PKCleanPrice = 1

+########################################
+# Tranform PKs
+########################################
+#Tranform PK Players?
+EnableTransformPK = False
+#Tranformation Monster ID
+TransformNPCID = 14040
+#Tranform Monster Name
+TransformNPCName = Zombie		

Link to comment
Share on other sites

Lol.

 

Where you see the problem?

 

Quote from: Finito

You can now give karma to anything you like(a simple share, a helpful answer[The person who does the request], and even more than 1 karma in a topic)

Link to comment
Share on other sites

Where you see the problem?

 

 

I used an abbreviation of the Internet "Lol", can I ask you the same question?

 

Don't worry, I do not want to quarrel.

Link to comment
Share on other sites

I used an abbreviation of the Internet "Lol", can I ask you the same question?

 

Don't worry, I do not want to quarrel.

 

i dont have any problem man Rules for Karma are changed i dont care for a pixel :) i just making my own shares to help some people about l2 Thanks.

Link to comment
Share on other sites

i dont have any problem man Rules for Karma are changed i dont care for a pixel :) i just making my own shares to help some people about l2 Thanks.

 

Sure, no problem, keep up. I apologize if I am wrong somewhere. <_< I was surprised.

Link to comment
Share on other sites

Guest Elfocrash

Wow man! Probably the best share in the section! You deserve your title!

+1 karma for this amazing share!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • L2 Insignia High Five 20x MID SERVER FOCUSED ON OLYMPIAD | PVP | AUTOFARM       OPEN BETA TEST SERVER 3 MAY 2024   GRAND OPENING 10 MAY 2024    Rates: 📜 XP/SP 20x | Spoil 15x | Drop 10x | Adena 10x 📜     Server Features: 🔥 No Olf-T Shirt, No big over-enchant, No over-power Donate 🔥 🔥 VIP Gold Color Chat, Unique Olympiad Extra Points Engine, GvG Event 🔥 🔥 Auto-Farm, LoA and DV scheduled PvP Zone, Calendar Daily Reward 🔥 🔥 Castle Instance, Solo Instance, PvP Solo Rift, Dress me system, Adena Boxes 🔥        Website: https://www.l2insignia.com  Discord: https://discord.com/invite/yEgsrHn2hQ      
    • I am selling the essence project which includes versions 388 and 439 that have been running for over 2 years or (447 as custom PVP like Pride). I have a test server for you to test them out. If you are really interested in it then contact my seller at discord: kiwi7106. Price: 4000 Euro P/s: This is a project that I have spent a lot of money and time developing, so if you are not interested in it, please get out of this topic, thank you. P/s 2: If you find the price too expensive, it's best to skip this article and find another project and don't comment negatively on my topic, thank you.
    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
  • Topics

×
×
  • Create New...