Kazeno Posted February 11, 2009 Posted February 11, 2009 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] : Screenshot [After adding the code] : 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 Quote
SilverWolf-IaB Posted February 11, 2009 Posted February 11, 2009 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! Quote
{Divine} Posted February 11, 2009 Posted February 11, 2009 Nice Share Kazeno..U Could Have Ur Topic More Detailed But It's Ok.. Quote
xXxExosoulerxXx Posted February 11, 2009 Posted February 11, 2009 nice share but give more infos plz Quote
Fogotendx20 Posted February 12, 2009 Posted February 12, 2009 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 .... Quote
sτrίkε- Posted February 12, 2009 Posted February 12, 2009 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 Quote
Fogotendx20 Posted February 13, 2009 Posted February 13, 2009 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? Quote
Versus Posted February 13, 2009 Posted February 13, 2009 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? Quote
Kazeno Posted February 13, 2009 Author Posted February 13, 2009 Hey, I will post a screenshot as soon as it's possible. Quote
Versus Posted February 14, 2009 Posted February 14, 2009 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. Quote
LouLou Posted February 15, 2009 Posted February 15, 2009 man i ask from everyone who share a java to give us informations in what file i add this? tell me Quote
ment2008 Posted February 17, 2009 Posted February 17, 2009 did search in all the comp didnt found any folder name "model" java/net/sf/l2j/gameserver/model/L2Character.java how get there? Quote
Kazeno Posted February 24, 2009 Author Posted February 24, 2009 First post updated: * Added more information. * Added screenshots: Before and After you add the code. Quote
DāЯқŜiĐє Posted February 25, 2009 Posted February 25, 2009 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 Quote
Zeronimo Posted February 25, 2009 Posted February 25, 2009 Agreed - it's non of his work. IMO - users that claim the work to be their own - when it's not - should be banned. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.