|
Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo. Caso seja registrado, efetue login. Esqueceu sua senha? Clique aqui Recomendamos o uso do Mozilla Firefox para uma melhor visualização. |
|
| Início | Postados Hoje | Marcar Fóruns Como Lidos | Álbums | Banidos | SE Team | Medalhas |
|
|||||||
| Registrar | Loteria VIP | Staff SE | Regras do fórum | Comunidade | Arcade | Postados Hoje | Pesquisar | Experience |
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
![]() |
|
|
Ferramentas do Tópico | Modos de Exibição |
|
|
#1 |
|
Banido
![]() Registrado em: Nov 2009
Localização: Fortaleza-ce
Posts: 325
Agradeceu: 125
Agradecido 203 Vezes em 82 Posts
Nome Real: Allan Alcântara de Alencar
|
ajudando aew quando poder. ^^'
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: java/net/sf/l2j/gameserver/model/L2Skill.java
===================================================================
--- java/net/sf/l2j/gameserver/model/L2Skill.java (revision 95)
+++ java/net/sf/l2j/gameserver/model/L2Skill.java (revision 108)
@@ -24,4 +24,6 @@
import java.util.logging.Level;
import java.util.logging.Logger;
+
+import eXtr3me.gameserver.model.L2Skill.SkillOpType;
import javolution.text.TextBuilder;
@@ -85,5 +87,5 @@
public static enum SkillOpType {
- OP_PASSIVE, OP_ACTIVE, OP_TOGGLE
+ OP_PASSIVE, OP_ACTIVE, OP_TOGGLE, OP_CHANCE
}
@@ -474,4 +476,12 @@
protected EffectTemplate[] _effectTemplatesSelf;
+ private int _triggeredId;
+
+ private int _triggeredLevel;
+
+ private boolean _bestow;
+
+ private boolean _bestowed;
+
protected L2Skill(StatsSet set)
{
@@ -2182,3 +2192,34 @@
return "" + _name + "[id=" + _id + ",lvl=" + _level + "]";
}
+
+ public int getTriggeredId()
+ {
+ return _triggeredId;
+ }
+
+ public int getTriggeredLevel()
+ {
+ return _triggeredLevel;
+ }
+
+ public boolean bestowTriggered()
+ {
+ return _bestow;
+ }
+
+ public boolean bestowed()
+ {
+ return _bestowed;
+ }
+
+ public boolean triggerAnotherSkill()
+ {
+ return _triggeredId > 1;
+ }
+
+ public final boolean isChance()
+ {
+ return _operateType == SkillOpType.OP_CHANCE;
+ }
+
}
Index: java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- java/net/sf/l2j/gameserver/model/L2Character.java (revision 84)
+++ java/net/sf/l2j/gameserver/model/L2Character.java (revision 108)
@@ -29,4 +29,6 @@
import java.util.logging.Level;
import java.util.logging.Logger;
+
+import com.extr3me.gameserver.model.L2Skill;
import eXtr3me.gameserver.model.L2Effect;
@@ -6016,4 +6018,6 @@
private long _pvpFlagLasts;
+ private Object _chanceSkills;
+
public void setPvpFlagLasts(long time)
{
@@ -6252,3 +6256,25 @@
public void setForceBuff(ForceBuff fb)
{}
+
+ public L2Skill removeSkill(int skillId) {
+ // Remove the skill from the L2Character _skills
+ L2Skill oldSkill = _skills.remove(skillId);
+ // Remove all its Func objects from the L2Character calculator set
+ if (oldSkill != null) {
+ // Stop casting if this skill is used right now
+ if (getLastSkillCast() != null && isCastingNow()) {
+ if (oldSkill.getId() == getLastSkillCast().getId())
+ abortCast();
+ }
+
+ if (oldSkill.isChance() && _chanceSkills != null) {
+ removeSkill(oldSkill.getId());
+ }
+ removeStatsOwner(oldSkill);
+ }
+ return oldSkill;
+
+
+ }
+
}
Index: java/net/sf/l2j/gameserver/skills/effects/EffectBestowSkill.java
===================================================================
--- java/net/sf/l2j/gameserver/skills/effects/EffectBestowSkill.java (revision 108)
+++ java/net/sf/l2j/gameserver/skills/effects/EffectBestowSkill.java (revision 108)
@@ -0,0 +1,77 @@
+/*
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package com.extr3me.gameserver.skills.effects;
+
+import com.extr3me.gameserver.datatables.SkillTable;
+import com.extr3me.gameserver.model.L2Effect;
+import com.extr3me.gameserver.model.L2Skill;
+import com.extr3me.gameserver.skills.Env;
+
+/**
+ * @author Equal
+ */
+final class EffectBestowSkill extends L2Effect
+{
+ public EffectBestowSkill(Env env, EffectTemplate template)
+ {
+ super(env, template);
+ }
+
+ /**
+ *
+ * @see eXtr3me.gameserver.model.L2Effect#getEffectType()
+ */
+ @Override
+ public EffectType getEffectType()
+ {
+ return EffectType.BUFF;
+ }
+
+ /**
+ *
+ * @see eXtr3me.gameserver.model.L2Effect#onStart()
+ */
+ @Override
+ public void onStart()
+ {
+ L2Skill tempSkill = SkillTable.getInstance().getInfo(getSkill().getTriggeredId(), getSkill().getTriggeredLevel());
+ if (tempSkill != null)
+ {
+ getEffected().addSkill(tempSkill);
+ return;
+ }
+ return;
+ }
+
+ /**
+ *
+ * @see eXtr3me.gameserver.model.L2Effect#onExit()
+ */
+ @Override
+ public void onExit()
+ {
+ getEffected().removeSkill(getSkill().getTriggeredId());
+ }
+
+ /**
+ *
+ * @see eXtr3me.gameserver.model.L2Effect#onActionTime()
+ */
+ @Override
+ public boolean onActionTime()
+ {
+ return false;
+ }
+}
|
|
|
| Links Patrocinados |
|
|
#2 | ||||||||||||||
|
Membro - Veterano
![]() Registrado em: Nov 2009
Posts: 509
Agradeceu: 191
Agradecido 252 Vezes em 110 Posts
|
U que ele fais exatamente no skill?
|
||||||||||||||
|
|
|
||||||||||||||
|
|
#3 |
|
www.l2jlive-project.com
![]() Registrado em: May 2011
Localização: Italia - Florença
Posts: 1,222
Agradeceu: 175
Agradecido 393 Vezes em 249 Posts
Nome Real: Fábio Costa da Silva
|
Mano a mirage é skill do dagger quando tu usa os caras te hitam e perdem o target ai apenas ta corrigindo ela porque nas muitas revs existentes ela esta com erro
|
|
|
|