Jump to content
  • 0

Oly Problem (L2F H5)


THeMaxPoweR

Question

Hey guys I have a problem with my server iam using l2f pack every things is OK but some time players die in olympiad and he get reviv request to town like he dead in pvp it's not happen every day may be 3 -4 times per week .

Server doesn't show any error at log .

Hop you help me to solve it .

Sorry for my bad english .

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0


protected void onReduceCurrentHp(double damage, Creature attacker, Skill skill, boolean awake, boolean standUp, boolean directHp)

{

if(standUp && !isInTvT())

{

standUp();

if(isFakeDeath())

{

breakFakeDeath();

}

}

 

lastAttacker = attacker;

lastAttackDate = System.currentTimeMillis();

 

if(attacker.isPlayable())

{

if(!directHp && (getCurrentCp() > 0))

{

double cp = getCurrentCp();

if(isInOlympiadMode())

{

addDamageOnOlympiad(attacker, skill, damage, cp);

}

 

if(cp >= damage)

{

cp -= damage;

damage = 0;

}

else

{

damage -= cp;

cp = 0;

}

 

setCurrentCp(cp);

}

}

 

double hp = getCurrentHp();

 

DuelEvent duelEvent = getEvent(DuelEvent.class);

if(duelEvent != null)

{

if(hp <= damage)

{

setCurrentHp(1, true);

duelEvent.onDie(this);

return;

}

}

 

if((getPvPTeam() != 0) && (_event != null))

{

if(hp <= damage) // if x <= 1 - killed

{

setCurrentHp(1, true);

_event.doDie(attacker, this);

return;

}

}

 

if(isInOlympiadMode())

{

addDamageOnOlympiad(attacker, skill, damage, hp);

 

if(hp + 0.5 <= damage)

{

if(_olympiadGame.getType() != CompType.TEAM)

{

setCurrentHp(1, true);

_olympiadGame.setWinner(getOlympiadSide() == 1 ? 2 : 1);

_olympiadGame.endGame(20000, false);

attacker.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);

attacker.sendActionFailed();

return;

}

else if(_olympiadGame.doDie(this))

{

 

_olympiadGame.setWinner(getOlympiadSide() == 1 ? 2 : 1);

_olympiadGame.endGame(20000, false);

}

}

}

 

super.onReduceCurrentHp(damage, attacker, skill, awake, standUp, directHp);

}

 

Link to comment
Share on other sites

  • 0

This line:

if(hp + 0.5 <= damage)

should be:

if(hp - damage < 0.5)

Actually it took me a while to figure this out. I think this line is the only cause, not 100% sure though.

Link to comment
Share on other sites

  • 0
if(standUp && !isInTvT()){
	standUp();
	...
}

Can someone explain me this?

He is standUp() already ,so whats the point of it?

 

Also

if(isFakeDeath()){
	breakFakeDeath();
}

Since u standUp(),why do u check if he has fakeDeath?

Being is fakeDeath means that he isnt standUp,and the first if confirmed that he is standUp +u used standUp above,which means its always false..

 

Any explaination?

Edited by bravetobe
Link to comment
Share on other sites

  • 0
if(standUp && !isInTvT()){
	standUp();
	...
}

Can someone explain me this?

He is standUp() already ,so whats the point of it?

 

Also

if(isFakeDeath()){
	breakFakeDeath();
}

Since u standUp(),why do u check if he has fakeDeath?

Being is fakeDeath means that he isnt standUp,and the first if confirmed that he is standUp +u used standUp above,which means its always false..

 

Any explaination?

 

Because guy who was adding events to this pack, didnt do it carefuly. Maybe fandc is still using them, but I dont really know.

 

 

thank you for your help i will try ti change it but can you till me or explain to me what happen in this line ?

Player is considered dead if he has < 0.5 hp. In your code if he have got 1 HP and gets 0.7 damage, then condition will be: if(1 + 0.5 <= 0.7) - that's false

Link to comment
Share on other sites

  • 0

but i wanna ask in your example he still has hp not dead match must continue running not die and get reviv massage to vallege ?!

Edited by THeMaxPoweR
Link to comment
Share on other sites

  • 0
if(standUp && !isInTvT()){
	standUp();
	...
}

Can someone explain me this?

He is standUp() already ,so whats the point of it?

 

Also

if(isFakeDeath()){
	breakFakeDeath();
}

Since u standUp(),why do u check if he has fakeDeath?

Being is fakeDeath means that he isnt standUp,and the first if confirmed that he is standUp +u used standUp above,which means its always false..

 

Any explaination?

 

as i can read the arguments from the function

(double damage, Creature attacker, Skill skill, boolean awake, boolean standUp, boolean directHp)

standUp doesnt mean that is stand up already, its just true/false

otherwise should be if(standUp() && !isInTvt) ...

 

so if standup setted true and not in tvt -> stand up and if is fakedeath, stop this

Edited by ⏇Melron⏇℠Abs
Link to comment
Share on other sites

  • 0

Thanks vampir it's about one week since I used your soulution and it's working no one died at oly thanx man for your helping.

 

Problem sloved you can lock his topic .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • https://l2ind.org/ i give full gear to anyone. 
    • https://l2ind.org/ i give full gear to anyone. 
    • +256754810143    Revenge Death spells caster In Denmark / Sweden / Germany / spell caster, revenge spell, spell caster review, witchcraft, psychic, magic forum, black magic in Amsterdam, Germany, Spain, USA.                                                          +256754810143@powerful-black-magic-instant-revenge-spell-caster-in-uganda-netherlands-spain-scotland-south-africa-instant-revenge-spell-caster-revenge-spell-in-italy-norway-austria-vienna% POWERFUL DEATH SPELL CASTER INSTANT DEATH SPELLS IN, USA UK U.A.E.**^^SPELL CASTER, DEATH SPELL, SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORU   +256754810143@powerful-black-magic-instant-revenge-spell-caster-in-uganda-netherlands-spain-scotland-south-africa-instant-revenge-spell-caster-revenge-spell-in-italy-norway-austria-vienna% POWERFUL DEATH SPELL CASTER INSTANT DEATH SPELLS IN, USA UK U.A.E.**^^SPELL CASTER, DEATH SPELL, SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORUM, BLACK MAGIC IN AMSTERDAM, GERMANY, SPAIN Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call ஜ۩۞۩ஜ ??@@$+256754810143    M, BLACK MAGIC IN AMSTERDAM, GERMANY, SPAIN Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call ஜ۩۞۩ஜ ??@@$+256754810143 
    • +256754810143    Revenge Death spells caster In Denmark / Sweden / Germany / spell caster, revenge spell, spell caster review, witchcraft, psychic, magic forum, black magic in Amsterdam, Germany, Spain, USA. Instant Revenge Death spells casteR       +256754810143 SPIRITUAL QUICKEST DEATH SPELL / REVENGE SPELL CASTER IN AUSTRALIA, NORWAY, ITALY, POLAND, SWEDEN *$$ DEATH SPELLS/ MARRIAGE SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORUM, BLACK MAGIC IN UK, BELGIUM.                                                                  +256754810143@powerful-black-magic-instant-revenge-spell-caster-in-uganda-netherlands-spain-scotland-south-africa-instant-revenge-spell-caster-revenge-spell-in-italy-norway-austria-vienna% POWERFUL DEATH SPELL CASTER INSTANT DEATH SPELLS IN, USA UK U.A.E.**^^SPELL CASTER, DEATH SPELL, SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORU   +256754810143@powerful-black-magic-instant-revenge-spell-caster-in-uganda-netherlands-spain-scotland-south-africa-instant-revenge-spell-caster-revenge-spell-in-italy-norway-austria-vienna% POWERFUL DEATH SPELL CASTER INSTANT DEATH SPELLS IN, USA UK U.A.E.**^^SPELL CASTER, DEATH SPELL, SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORUM, BLACK MAGIC IN AMSTERDAM, GERMANY, SPAIN Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call ஜ۩۞۩ஜ ??@@$+256754810143    M, BLACK MAGIC IN AMSTERDAM, GERMANY, SPAIN Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call ஜ۩۞۩ஜ ??@@$+256754810143   
    • +256754810143 Powerful Traditional Healer And Lost Love Spells Caster Bring Back Lost Lover In Manzini, Mbabane, Matsapa, Bigbend.                                                                                    +256754810143@powerful-black-magic-instant-revenge-spell-caster-in-uganda-netherlands-spain-scotland-south-africa-instant-revenge-spell-caster-revenge-spell-in-italy-norway-austria-vienna% POWERFUL DEATH SPELL CASTER INSTANT DEATH SPELLS IN, USA UK U.A.E.**^^SPELL CASTER, DEATH SPELL, SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORU   +256754810143@powerful-black-magic-instant-revenge-spell-caster-in-uganda-netherlands-spain-scotland-south-africa-instant-revenge-spell-caster-revenge-spell-in-italy-norway-austria-vienna% POWERFUL DEATH SPELL CASTER INSTANT DEATH SPELLS IN, USA UK U.A.E.**^^SPELL CASTER, DEATH SPELL, SPELL CASTER REVIEW, WITCHCRAFT, PSYCHIC, MAGIC FORUM, BLACK MAGIC IN AMSTERDAM, GERMANY, SPAIN Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call ஜ۩۞۩ஜ ??@@$+256754810143    M, BLACK MAGIC IN AMSTERDAM, GERMANY, SPAIN Results are 100% s=ure and guaranteed, spell casting specialist, , black magic death spells that work overnight or by accident. I Cast these strongest black magic revenge death spells that work fast overnight to kill ex-lover, husband, wife girlfriend Enemies she is in a far location, I guarantee you to have your results you are looking for immediately. Just make sure before you contact me you are committed and you want what you are looking for (Victim Death) because my death spell work fast overnight after casting the spells that work, guaranteed black magic love spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or cal, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed whatapp or call ஜ۩۞۩ஜ ??@@$+256754810143     
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock