- 0
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..
Question
unknownidforotherusers
Hello, I stuck in ertheya- underground server with skill's plunder effect "plunder" or what ever how you will call it:
/** * @author Sdw */ public final class Plunder extends AbstractEffect { public Plunder(StatsSet params) { } @Override public boolean calcSuccess(L2Character effector, L2Character effected, Skill skill) { return Formulas.calcMagicSuccess(effector, effected, skill); } @Override public boolean isInstant() { return true; } @Override public void instant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) { if (!effector.isPlayer()) { return; } else if (!effected.isMonster() || effected.isDead()) { effector.sendPacket(SystemMessageId.INVALID_TARGET); return; } final L2MonsterInstance monster = (L2MonsterInstance) effected; final L2PcInstance player = effector.getActingPlayer(); if (monster.isSpoiled()) { effector.sendPacket(SystemMessageId.PLUNDER_SKILL_HAS_BEEN_ALREADY_USED_ON_THIS_TARGET); return; } monster.setSpoilerObjectId(effector.getObjectId()); if (monster.isSweepActive()) { final Collection<ItemHolder> items = monster.takeSweep(); if (items != null) { for (ItemHolder sweepedItem : items) { final L2Party party = effector.getParty(); if (party != null) { party.distributeItem(player, sweepedItem, true, monster); } else { player.addItem("Plunder", sweepedItem, effected, true); } } } } monster.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, effector); } }already effect I have does only damage, and when using not first-time on mob, writing that mob is already spoiled... but never seen any spoil.
few ppl gave idea try to change:
to False. - not helped, then tried to change calculation formula, offered by another person, as well didn't work:
@Override public boolean calcSuccess(L2Character effector, L2Character effected, Skill skill) { return effected.isMonster() && Formulas.calcMagicSuccess(effector, effected, skill); }anyone can help me to fix this skill, please? I just really don't have more minds whats can be wrong... I know that as Creator of that script told me that it's fucked up, and he fixed it but after he just ignored me, so help from him = 0
8 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