Jump to content

Recommended Posts

Posted

public boolean doDie(L2Character killer)

{

// Kill the L2PcInstance

if (!super.doDie(killer))

return false;

 

if (killer != null)

{

L2PcInstance pk = null;

if (killer instanceof L2PcInstance)

pk = (L2PcInstance) killer;

 

if (atEvent && pk != null)

{

pk.kills.add(getName());

}

 

if ((killer instanceof L2PcInstance && ((L2PcInstance) killer)._inEventTvT) && _inEventTvT)

{

if (TvT._teleport || TvT._started)

{

if (!(((L2PcInstance) killer)._teamNameTvT.equals(_teamNameTvT)))

{

((L2PcInstance) killer)._countTvTkills++;

TvT.setTeamKillsCount(((L2PcInstance) killer)._teamNameTvT, TvT.teamKillsCount(((L2PcInstance) killer)._teamNameTvT) + 1);

}

else

((L2PcInstance) killer).sendMessage("You'r teamkiller !!! Teamkills not counting.");

 

sendMessage("You will be revived and teleported to team spot in 20 seconds!");

ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()

{

public void run()

{

teleToLocation(TvT._teamsX.get(TvT._teams.indexOf(_teamNameTvT)), TvT._teamsY.get(TvT._teams.indexOf(_teamNameTvT)), TvT._teamsZ.get(TvT._teams.indexOf(_teamNameTvT)),

false);

doRevive();

}

}, 20000);

}

}

 

else if (_inEventTvT)

{

if (TvT._teleport || TvT._started)

{

sendMessage("You will be revived and teleported to team spot in 20 seconds!");

ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()

{

public void run()

{

teleToLocation(TvT._teamsX.get(TvT._teams.indexOf(_teamNameTvT)), TvT._teamsY.get(TvT._teams.indexOf(_teamNameTvT)), TvT._teamsZ.get(TvT._teams.indexOf(_teamNameTvT)),

false);

doRevive();

}

}, 20000);

}

}

 

if (killer instanceof L2PcInstance)

{

if (((L2PcInstance) killer)._inEventCTF && _inEventCTF)

{

if (CTF._teleport || CTF._started)

{

if (_haveFlagCTF)

{

CTF._flagsTaken.set(CTF._teams.indexOf(_teamNameHaveFlagCTF), false);

CTF.spawnFlag(_teamNameHaveFlagCTF);

_haveFlagCTF = false;

Announcements.getInstance().announceToAll(CTF._eventName + "(CTF): " + _teamNameHaveFlagCTF + "'s flag returned.");

}

 

ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()

{

public void run()

{

teleToLocation(CTF._flagsX.get(CTF._teams.indexOf(_teamNameCTF)), CTF._flagsY.get(CTF._teams.indexOf(_teamNameCTF)), CTF._flagsZ.get(CTF._teams.indexOf(_teamNameCTF)),

false);

doRevive();

setCurrentCp(getMaxCp());

setCurrentHp(getMaxHp());

setCurrentMp(getMaxMp());

broadcastUserInfo();

_lastKilledTimeCTF = System.currentTimeMillis() + 7000; // 5

// seconds

// after

// revive

// protected

}

 

}, 2000);

}

}

}

 

// Clear resurrect xp calculation

setExpBeforeDeath(0);

 

if (isCursedWeaponEquiped())

{

CursedWeaponsManager.getInstance().drop(_cursedWeaponEquipedId, killer);

}

else

{

if (pk == null || !pk.isCursedWeaponEquiped())

{

// if (getKarma() > 0)

onDieDropItem(killer); // Check if any item should be

// dropped

 

if (!(isInsideZone(ZONE_PVP) && !isInsideZone(ZONE_SIEGE)))

{

boolean isKillerPc = (killer instanceof L2PcInstance);

if (isKillerPc && ((L2PcInstance) killer).getClan() != null && getClan() != null && !isAcademyMember() && !(((L2PcInstance) killer).isAcademyMember())

&& _clan.isAtWarWith(((L2PcInstance) killer).getClanId()) && ((L2PcInstance) killer).getClan().isAtWarWith(_clan.getClanId()))

{

if (getClan().getReputationScore() > 0) // when your

// reputation

// score is

// 0 or

// below,

// the other

// clan

// cannot

// acquire

// any

// reputation

// points

{

((L2PcInstance) killer).getClan().setReputationScore(((L2PcInstance) killer).getClan().getReputationScore() + Config.ALT_REPUTATION_SCORE_PER_KILL, true);

getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(_clan));

((L2PcInstance) killer).getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(((L2PcInstance) killer).getClan()));

}

if (((L2PcInstance) killer).getClan().getReputationScore() > 0) // when the

// opposing

// sides

// reputation

// score is 0 or

// below, your

// clans

// reputation

// score does

// not decrease

{

_clan.setReputationScore(_clan.getReputationScore() - Config.ALT_REPUTATION_SCORE_PER_KILL, true);

getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(_clan));

((L2PcInstance) killer).getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(((L2PcInstance) killer).getClan()));

}

}

if (Config.ALT_GAME_DELEVEL)

{

// Reduce the Experience of the L2PcInstance in

// function of the calculated Death Penalty

// NOTE: deathPenalty +- Exp will update karma

if (getSkillLevel(L2Skill.SKILL_LUCKY) < 0 || getStat().getLevel() > 9)

deathPenalty((pk != null && getClan() != null && pk.getClan() != null && pk.getClan().isAtWarWith(getClanId())));

}

else

{

onDieUpdateKarma(); // Update karma if delevel is

// not allowed

}

}

}

}

}

 

setPvpFlag(0); // Clear the pvp flag

 

// Unsummon Cubics

if (_cubics.size() > 0)

{

for (L2CubicInstance cubic : _cubics.values())

{

cubic.stopAction();

cubic.cancelDisappear();

}

 

_cubics.clear();

}

 

if (_forceBuff != null)

_forceBuff.delete();

 

for (L2Character character : getKnownList().getKnownCharacters())

if (character.getForceBuff() != null && character.getForceBuff().getTarget() == this)

character.abortCast();

 

if (isInParty() && getParty().isInDimensionalRift())

getParty().getDimensionalRift().getDeadMemberList().add(this);

 

// calculate death penalty buff

calculateDeathPenaltyBuffLevel(killer);

 

stopRentPet();

stopWaterTask();

return true;

}

 

 

Sorry for the whole code, but where i should to put it? After when i get answer i will delete it ;]

  • 8 months later...
Posted

after calculateDeathPenaltyBuffLevel(killer);

 

After that we have to put "impro = 0;"

 

I have the same prob, after dead it still count, not reset, ty :)

 

Posted

I fixed already by doing what xAddytzu said, thx ;D

 

Anyway to put, exemple, exity reaches 15 killing spree, is there anyway that who kill the guy with spree got an announce?

 

Exemple: BlaBla has stopped Exity 15 killing spree

 

Ty in advance

Posted

I fixed already by doing what xAddytzu said, thx ;D

 

Anyway to put, exemple, exity reaches 15 killing spree, is there anyway that who kill the guy with spree got an announce?

 

Exemple: BlaBla has stopped Exity 15 killing spree

 

Ty in advance

 

im making it on quake system xD

  • 3 months later...
  • 4 weeks later...
Guest
This topic is now closed to further replies.



  • Posts

    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • PERFECT PERSPECTIVE IS ALMOST ALWAYS A DEATH SENTENCE ▪ Think if the document lies perfectly flat and everything is “level” it’ll be fine? Most of the time, that’s exactly what gives away the fake. Real smartphones, especially wide-angle cameras, always add natural distortions: - Slight warping at the edges of the document - Perspective distortions in the corners - Light curvature of the plane due to distance and shooting angle When everything is perfectly flat and geometrically flawless — algorithms and verifiers immediately recognize a “staged scene.” ▪ A genuine shot is never mathematically perfect. It’s these small lens distortions that make the frame look alive and believable.  Want perspective that won’t raise questions even from the most demanding verifiers? Write to us — we’ll create geometry that looks like it was shot with a real phone in real conditions. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #perspective #editing #geometry
    • Gemini Pro 18 Month Personal Gmail Upgrade Available We are now accepting new orders for Gemini Pro + Google One AI Pro 18 Month Plan.   Plan Details: ✅ 18 Months Validity ✅ Upgrade on Your Personal Gmail ✅ 5TB Google One Storage ✅ Gemini Pro / Google AI Pro Access ✅ Veo 3, NotebookLM, Google AI Features ✅ Family Sharing Support where available ✅ Fast Delivery: 10 minutes to 24 hours ✅ 24/7 KloudItem Support   Price: $15 One Time Payment   Important: Stock is limited, so please check availability before ordering.   Order & Support: Order from KloudItem or contact us through our official support channel. ------------------------------------------- CONTACT Order Here: BUY GEMINI PRO Email: support@klouditem.com Telegram Channel: @klouditemcom Telegram Support: klouditem All Contact: https://linktr.ee/klouditem Website: https://klouditem.com Hours: 24/7 -- Always online
    • Hello everyone,   A quick update from the Emerge team. The official launch of Emerge Eclipse x10 is just around the corner and we are currently finishing the final preparations to ensure a smooth and stable opening for all players. Our team has been working on performance improvements, network optimizations, and additional infrastructure to provide the best possible experience from day one.   🚀 Launch Date: 7 June 2026 🕕 Launch Time: 18:00 CET We would like to invite everyone to join our Discord community where all announcements, updates, events, and support information are posted first. 🌐 Website: https://l2emerge.com 💬 Discord: https://discord.gg/l2emerge Thank you for all the support and feedback during the preparation phase. We look forward to seeing both new and veteran Lineage II players on launch day. See you soon on Emerge!
  • 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..