Hello MXC. Im working with new animations an d im lookin for new animation on Stun Effect but im so bad in Code.
maybe you can help me please? Here is default Effect Stun
Here was my ideas how it may works - but GS is getting crash
This one also getting crash
Spoiler
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
I apologize for my incompetence. The ability to trade is limited only for builder 1. Ordinary characters can trade with each other, and this has nothing to do with auto loot.)
Question
Ehoq
Hello MXC. Im working with new animations an d im lookin for new animation on Stun Effect but im so bad in Code.
maybe you can help me please?
Here is default Effect Stun
Here was my ideas how it may works - but GS is getting crash
This one also getting crash
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package l2.gameserver.skills.effects;
import l2.commons.util.Rnd;
import l2.gameserver.model.Effect;
import l2.gameserver.stats.Env;
public final class EffectStun extends Effect {
public EffectStun(Env var1, EffectTemplate var2) {
super(var1, var2);
}
public boolean checkCondition() {
return Rnd.chance(this._template.chance(100));
}
public void onStart() {
super.onStart();
this._effected.startStunning();
this._effected.abortAttack(true, true);
this._effected.abortCast(true, true);
this._effected.stopMove();
}
public void onExit() {
super.onExit();
this._effected.stopStunning();
}
public boolean onActionTime() {
return false;
}
}
maybe im fully wrong with it. dunno.... as i said im not good in code -.-
8 answers to this question
Recommended Posts