Jump to content

Recommended Posts

Posted

I searched the whole forum and I didn't find a share fixing this bug and since I am currently working in a server pack that this bug works, I share the java code I inserted in order to fix it.

 

Changes :

Once you've added this code in your source and you have compiled the pack, you will notice that you may not PK a flagged character anymore because of the Reflect Damage and daggers cannot get double killed resulting to buff loss. That means a character's CP will be decreased while hitting, but his HP will be increased, draining the enemy's HP.

 

Screenshot [before adding the code] :

reflec11.jpg

 

Screenshot [After adding the code] :

reflec12.jpg

 

 

Index: java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- java/net/sf/l2j/gameserver/model/L2Character.java	(revision 1434)
+++ java/net/sf/l2j/gameserver/model/L2Character.java	(working copy)
@@ -5044,7 +5044,7 @@
					if (reflectPercent > 0)
					{
						reflectedDamage = (int)(reflectPercent / 100. * damage);
-						damage -= reflectedDamage;
+						//damage -= reflectedDamage;

						if(reflectedDamage > target.getMaxHp()) // While hitting a low level character the reflect damage is increased.
							reflectedDamage = target.getMaxHp();

 

* Credits To: Kazeno

* Tested By: Tristana

Posted

Hey Kazeno, Can you explain how can i put Reflect Damage in one NPC? I know that isnt your post, but i think that have a relation. I have a problem with my NPCs and i would like to return the dmg to the players that try to hurt a NPC.

 

Tks!

Posted

plz stop with stiuped shares. everyone can found this at l2jserver TIMELINE .... every day team make lot of changes in pack! and so..? u must post it here?

 

please guys dont post bulsh1ts, above the spam ....

Posted

plz stop with stiuped shares. everyone can found this at l2jserver TIMELINE .... every day team make lot of changes in pack! and so..? u must post it here?

 

please guys dont post bulsh1ts, above the spam ....

agree 100%......

this is the bulshits shares..

which change kazeno?

which is the change that you make?

i'm 100% sure if i search i found it to another forum...

i'll reply soon

Posted

agree 100%......

this is the bulshits shares..

which change kazeno?

which is the change that you make?

i'm 100% sure if i search i found it to another forum...

i'll reply soon

 

this is not the reason man, the reason is

 

cant cal it share, cause is a small core modifircation ... if u go at pack forum every day will get more than 5 modification ... so? we must post it here?

Posted

Guys relax.That could be usefull for many ppl.Take it easy and instead of flaming,thank kazeno.

 

Though i dont understand what this would fix.You are just removing a line..more info?And what's that bug?

Posted

What i understand from this code:

 

No more reflect damage for life.What i mean?You get reflect but ONLY at cp.That's fixing the bugs with reflect..indeed..BUT,it's destroying the reflect effect.

Posted

plz stop with stiuped shares. everyone can found this at l2jserver TIMELINE .... every day team make lot of changes in pack! and so..? u must post it here?

 

please guys dont post bulsh1ts, above the spam ....

 

xmmm i agree he shouldnt post all the changes "they" make..(he could just give a link)..anyway

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

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • 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..