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:
# This option, if enabled, will allow magic to fail, and if disabled magic damage will always succeed with a 100% chance.
# Default: True
MagicFailures = True
to False. - not helped, then tried to change calculation formula, offered by another person, as well didn't work:
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
📢 ¡ATENCIÓN JUGADORES DE LINEAGE 2! 📢
¡L2 Crest Converter ha llegado! El programa creado por PulserX para obtener crests de clan (banderas) que realmente funciona, programado y distribuido de manera gratuita a todo el mundo por su humilde servidor.
¿Cansado de que el viejo CrestMaker falle y arruine tus imágenes en Windows 10/11? Hemos creado una solución actualizada.
✅ Optimizado para Windows 10/11
✅ Convierte PNG/JPG perfectamente
✅ Adiós a las imágenes cuadriculadas
L2 Crest Converter es la herramienta que garantiza que tu crest se vea tal como la diseñaste.
Descárgalo y velo en acción aquí:
👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE
👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE
👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE
New update!
A gift coupon system has been added.
Now you can activate gift coupons directly in the bot:
Open "My Profile"
Tap "Activate gift coupon"
Enter the coupon code
The balance will be topped up automatically.
Received a coupon? Activate it and top up your balance.
Buy Telegram Stars with maximum benefit in our bot
New update!
A gift coupon system has been added.
Now you can activate gift coupons directly in the bot:
Open "My Profile"
Tap "Activate gift coupon"
Enter the coupon code
The balance will be topped up automatically.
Received a coupon? Activate it and top up your balance.
Buy Telegram Stars with maximum benefit in our bot
New update!
A gift coupon system has been added.
Now you can activate gift coupons directly in the bot:
Open "My Profile"
Tap "Activate gift coupon"
Enter the coupon code
The balance will be topped up automatically.
Received a coupon? Activate it and top up your balance.
Buy Telegram Stars with maximum benefit in our bot
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