Jump to content

Question

Posted

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 .

12 answers to this question

Recommended Posts

  • 0
Posted


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);

}

 

  • 0
Posted

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.

  • 0
Posted (edited)
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
  • 0
Posted
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

  • 0
Posted (edited)
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

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

    • ⚔️ DRAGON-NETWORK LEGACY x15 ⚔️ INTERLUDE+ • SUBSTACK • STAGE PROGRESSION 🔥 GRAND OPENING: OCTOBER 2, 2026 🕖 19:00 UTC+2 🌐 https://dragon-network.eu ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ THE LEGACY RETURNS. YOUR STORY BEGINS. The battlefield is calling once again! Dragon-Network returns with LEGACY x15, delivering a unique Interlude+ Substack experience featuring competitive PvP, expanded content, and progressive gameplay. Forge your build. Gather your clan. Conquer your enemies. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚙️ SERVER INFORMATION • Chronicle: Interlude+ • Gameplay: Substack • EXP / SP: x15 • Adena: x10 • Drop / Spoil: x10 • Seal Stones: x10 • Raid Boss Drops: x5 • Epic Drops: x1 • Maximum Level: 85 • Box Limit: 1 Main + 2 Boxes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚔️ SUBSTACK SYSTEM Create your own playstyle and explore unique class combinations. ✓ Free starting Golkonda Horn ✓ First Stack Sub from level 40 ✓ Additional horns obtainable through gameplay ✓ Custom class and skill adjustments Your build. Your strategy. Your legacy. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🌍 INTERLUDE+ CONTENT Experience the classic world of Lineage II with additional content and expanded progression. ✓ Kamaloka & Labyrinth ✓ Pailaka Quests ✓ Hellbound Island ✓ Isle of Prayer ✓ Improved Pets ✓ S80 Equipment ✓ Attribute System ✓ Siegeable Fortresses Content is introduced progressively through server stages. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏆 PVP & EVENTS Prepare for competitive battles and valuable rewards! ✓ Daily Team vs Team events ✓ Event Coins and exclusive rewards ✓ Epic jewelry reward opportunities ✓ Weekly Olympiad cycles ✓ Castle Sieges ✓ Clan competition Fight for glory. Earn your rewards. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛡️ FAIR PLAY & QUALITY OF LIFE ✓ DragonGuard Anti-Cheat ✓ Custom Anti-Bot CAPTCHA ✓ No Pay-to-Win philosophy ✓ Improved class balance ✓ Progressive NPC Buffer ✓ 1-hour buffs ✓ Offline Shops ✓ Community Board skill learning ✓ Shift+Click monster drop information ✓ Combo Songs & Dances ✓ Tattoo System ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📅 SERVER ROADMAP OCT 02 — GRAND OPENING OCT 05 — Seven Signs Quest Period OCT 07 — Team vs Team Begins OCT 12 — Olympiad & Seal Validation OCT 17–18 — First Castle Sieges OCT 19 — First Heroes OCT 28 — Stage 2: Dynasty & Attribute Stones ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔥 THE COUNTDOWN HAS BEGUN! Old rivalries will return. New alliances will rise. Legends will be written. Will you be part of the next chapter? ⚔️ DRAGON-NETWORK LEGACY x15 📅 OCTOBER 2, 2026 — 19:00 UTC+2 🌐 OFFICIAL WEBSITE https://dragon-network.eu 📜 SERVER FEATURES https://dragon-network.eu/features 🔧 SEASON IMPROVEMENTS https://dragon-network.eu/whats-new DRAGON-NETWORK — FORGE YOUR LEGACY.
    • Clan: BeMyFrag (BMF) Clan Leader: AresQQ (Ares / PapaSmurf) Type: EU PvP clan, English-speaking (Polish and other EU languages inside) Recruiting: YES — open until launch, target 80–120 active players Where are we playing now? Eigis Odyssey Season 3 — opens 9 October 2026, 8:00 PM. Full server briefing: https://bemyfrag.com/eigis/ How many members? target 80–120 at launch. Which servers have we played? Playing together for over a decade. Last season: The Cult  What we offer: Organised mass PvP and castle sieges every Sunday (Aden/Goddard alternating) TeamSpeak 3 (bmf.ts3.so) + in-client voice for parties DKP ranking with reward codes for active players Fair loot rules and disputes — no drama Maintained server FAQ, so you don’t figure out Eigis alone Multigaming Discord community beyond L2 Clan rules: Be on TeamSpeak for mass PvP and sieges Party up before launch — no solo drifting competitive and casual both welcome Join: https://discord.gg/2UweQ3RYTZ → channel #l2eigis-apply → ask for rights.
  • 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..