L2Elixir – Patch 4 Is Live!
We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.
⚙️ General
Enabled Class Change service (same class type only)
ALT + B → Services → Character Development
Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock
Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects
Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!
🎒 Items
Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior)
Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item)
Added Dualsword Craft Stamp into Milestone Exchange list
🧙 Skills
Fixed Banish Undead lethal chance
Hot Springs Malaria and similar effects now level up faster while being attacked
Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc.
That's his mail address evgesha.nrnr@gmail.com , stay away!
@Atom @Celestine
Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc.
That's his mail address evgesha.nrnr@gmail.com , stay away!
@Celestine
@Atom
Question
wegas9393
Hello, help to make time 60 seconds for the resurrection
if a player does not agree within 60 seconds, press the button, the window disappears
sources lucera
Resurrect.java
package ru.catssoftware.gameserver.handler.skillhandlers; import ru.catssoftware.gameserver.handler.ISkillHandler; import ru.catssoftware.gameserver.model.L2Character; import ru.catssoftware.gameserver.model.L2Skill; import ru.catssoftware.gameserver.model.L2Skill.SkillTargetType; import ru.catssoftware.gameserver.model.actor.instance.L2PcInstance; import ru.catssoftware.gameserver.model.actor.instance.L2PetInstance; import ru.catssoftware.gameserver.skills.Formulas; import ru.catssoftware.gameserver.taskmanager.DecayTaskManager; import ru.catssoftware.gameserver.templates.skills.L2SkillType; import javolution.util.FastList; public class Resurrect implements ISkillHandler { private static final L2SkillType[] SKILL_IDS = { L2SkillType.RESURRECT }; public void useSkill(L2Character activeChar, L2Skill skill, L2Character... targets) { L2PcInstance player = null; if (activeChar instanceof L2PcInstance) player = (L2PcInstance) activeChar; L2PcInstance targetPlayer; FastList<L2Character> targetToRes = new FastList<L2Character>(); for (L2Character target : targets) { if (target == null) continue; if(Math.abs(target.getZ()-activeChar.getZ())>300) continue; if (target instanceof L2PcInstance) { targetPlayer = (L2PcInstance) target; if(targetPlayer.isInOlympiadMode()) continue; // Check for same party or for same clan, if target is for clan. if (skill.getTargetType() == SkillTargetType.TARGET_CORPSE_CLAN) { if (player != null && player.getClanId() != targetPlayer.getClanId()) continue; } } // if (target.isVisible()) targetToRes.add(target); } for (L2Character cha : targetToRes) { if (activeChar instanceof L2PcInstance) { if (cha instanceof L2PcInstance) { ((L2PcInstance) cha).reviveRequest((L2PcInstance) activeChar, skill); } else if (cha instanceof L2PetInstance) { if (((L2PetInstance) cha).getOwner() == activeChar) cha.doRevive(Formulas.calculateSkillResurrectRestorePercent(skill.getPower(), activeChar.getStat().getWIT())); else ((L2PetInstance) cha).getOwner().revivePetRequest((L2PcInstance) activeChar, skill); } else cha.doRevive(Formulas.calculateSkillResurrectRestorePercent(skill.getPower(), activeChar.getStat().getWIT())); } else { DecayTaskManager.getInstance().cancelDecayTask(cha); cha.doRevive(Formulas.calculateSkillResurrectRestorePercent(skill.getPower(), activeChar.getStat().getWIT())); } } } public L2SkillType[] getSkillIds() { return SKILL_IDS; } }2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now