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
Voltar   Secret Experience > Área L2J > [L2J] Downloads > [Lineage] Java Mods
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

 
 
LinkBack Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 16-08-2011, 12:26 PM   #1 (permalink)
Banido
 
Avatar de allanalcantara
 
Registrado em: Nov 2009
Localização: Fortaleza-ce
Posts: 325
Agradeceu: 125
Agradecido 203 Vezes em 82 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Enviar mensagem via Windows Live Messenger para allanalcantara Enviar mensagem via Skype para allanalcantara
Nome Real: Allan Alcântara de Alencar

Inventório de allanalcantara

Padrão Mirage skill fix

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;
+	}
+}

Arquivos Anexados
Tipo de Arquivo: txt Mirage skill fix.txt (5.0 KB, 37 visualizações) Baixar
allanalcantara está offline  
Links Patrocinados
 


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não
Trackbacks are Sim
Pingbacks are Sim
Refbacks are Sim



Horários baseados na GMT -3. Agora são 04:27 AM.
 



Search Engine Optimization by vBSEO 3.3.0