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] Tutoriais
Registrar Loteria VIPStaff SERegras do fórum Membros Arcade Pesquisar Postados Hoje Marcar Fóruns Como Lidos Experience
   

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

Tópico Trancado
 
LinkBack Ferramentas do Tópico Modos de Exibição
Antigo 13-01-2009, 03:09 PM   #1
[Tutorial] Arrumando o Horse (Gracia CT2)
mend3 mend3 está offline 13-01-2009, 03:09 PM
Avaliação: (2 votes - 5.00 average)

Primeiramente, veja se o bracelete do horse está com a skill de montar nele. Como?

Vá no Navicat > Armor > Clica em Filter Wizard > Manda procurar por Nome > Digite Horse no quadro > e Clique numa seta torta la no rodapé do DB.

Vai aparecer 2 Querys, a que nós queremos é a primeira (ID : 20029 , lbracelet). Vá até a linha "skills_item".

Nessa linha tem que estar "8247-1" (8247 é o ID do skill de montar no cavalo).

Pronto, primeira parte checada e OK.

Agora vamos à segunda (onde provavelmente estará o erro).

Vá até o arquivo "gameserver/data/summon_items.xml":

No final do arquivo, estará assim:

Citação:
<!-- Horse -->
<item id="20030">
<npcid val="13130" />
<summonType val="1" />
</item>
</list>
Apague isso, e insira estes códigos:

Citação:
<!-- Light Purple Maned Horse -->
<item id="13022">
<npcid val="13130" />
<summonType val="2" />
</item>
<!-- Light Purple Maned Horse -->
<item id="13308">
<npcid val="13130" />
<summonType val="2" />
</item>
<!-- Light Purple Maned Horse -->
<item id="20029">
<npcid val="13130" />
<summonType val="2" />
</item>
<!-- Light Purple Maned Horse -->
<item id="20030">
<npcid val="13130" />
<summonType val="2" />
</item>
Dê restart no server, logue, crie o item "20029 (Bracelete do cavalo" e equipe-o. Depois abra a janela de skills "ALT K" e procure o skill de montar no cavalo (Eh um homenzinho cinza).

Enjoy. Bom passeio ;)

Créditos: By: eu mesmo ;) (com ajuda do site do l2jfree)

[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]


POOOOOOOOOOORRRRRRRRRR FAVOOOOOOOOOOOOOOOOOOORRRRRRR AGRADEÇAM!!!

ESSE POST MERECE REPUTAÇAO HEIN ;)

AGRADEÇO A COMPREENSÃO DE TODOS

___________EDIT___________

Eskeci de arrumar:

Caso isso não dê certo, baixe esses 2 arquivos (Montar e demonstar o horse .java) e extraia para o diretório onde está o server. Ex.: C:\Server

Não coloque dentro de gameserver nem de loginserver, deixe fora das pastas.

[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Creditos dos arkivos acima: Over12


Problemas para entender a parte do Navicat? [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

 
Avatar de mend3
mend3
Membro - Coronel
Registrado em: Dec 2008
Localização: Campo Grande
Posts: 185
Pontos: 7,143, Nível: 55
Pontos: 7,143, Nível: 55 Pontos: 7,143, Nível: 55 Pontos: 7,143, Nível: 55
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Victor Mendonça
Visitas: 1391
Os Seguintes 23 Usuários disseram Obrigado(a) para mend3 por gostarem deste post :
Mostrar/Ocultar lista dos que agradeceram

Links Patrocinados
Antigo 27-01-2009, 12:09 PM   #2 (permalink)
Membro - Soldado
 
Avatar de ScareTissue
 
Registrado em: Dec 2008
Localização: Bella Union-Artigas-Uruguay
Posts: 18
Agradeceu: 156
Agradecido 8 Vezes em 6 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Enviar mensagem via Windows Live Messenger para ScareTissue

Inventório de ScareTissue

Padrão

No gracia part final ja tem ne... mais esse tuto e para, part 2 ou part 1? pq no part 1 ate podem faltar o mob e o item... serve para tudos?

ScareTissue está offline  
Antigo 27-01-2009, 04:22 PM   #3 (permalink)
Jesus Te Ama, Mas EU Não!
 
Avatar de Setokaiba
 
Registrado em: Oct 2008
Localização: 45º 33º 34º N | 122º 41º 41º W DESTINATION: ANYWHERE Adidas
Posts: 4,133
Agradeceu: 837
Agradecido 6,058 Vezes em 2,106 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Pontos: 20,442, Nível: 90
Pontos: 20,442, Nível: 90 Pontos: 20,442, Nível: 90 Pontos: 20,442, Nível: 90
Atividade: 99%
Atividade: 99% Atividade: 99% Atividade: 99%

Nome Real: Anderson Andrade

Inventório de Setokaiba Usuário possui 1x Lock Fan Usuário possui 1x Oakley Usuário possui 1x Apple Inc. Fan/User Usuário possui 1x Honda Usuário possui 1x Windows Seven User

Padrão

Eu já usei uma revisão do L2Free Gracia PT2 que já está com o Cavalo...
Seria aquela que o Kryer postou na sessão de downloads (MK Load)

Setokaiba está offline  
Antigo 27-01-2009, 07:27 PM   #4 (permalink)
Membro - Coronel
 
Avatar de mend3
 
Registrado em: Dec 2008
Localização: Campo Grande
Posts: 185
Agradeceu: 97
Agradecido 1,929 Vezes em 100 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via ICQ para mend3 Enviar mensagem via Windows Live Messenger para mend3 Enviar mensagem via Yahoo para mend3 Enviar mensagem via Skype para mend3
Pontos: 7,143, Nível: 55
Pontos: 7,143, Nível: 55 Pontos: 7,143, Nível: 55 Pontos: 7,143, Nível: 55
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Victor Mendonça

Inventório de mend3

Padrão

Sim, até pq eu tinha baixado a versao 97% e o cavalo nao estava funcionando (pois nao tinha os skills no arkivo summon_items.xml , entao arrumei o cavalo por cima dela.

Mas como vi no post do Kryer, a revisao 100%do pack dele jah tem o horse, entao recomendo que baixem o pack dele, alem de estar muito bem configurado.

mend3 está offline  
Antigo 28-01-2009, 08:09 PM   #5 (permalink)
Amigo SE
 
Avatar de xxxvalterxxx
 
Registrado em: Dec 2008
Localização: Um lugar onde vc não sabe onde é.
Posts: 400
Agradeceu: 201
Agradecido 444 Vezes em 128 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de xxxvalterxxx

Padrão

E como o mend3 sabe e postou ja para por em rev's anteriores é necessário a skill dele:
Citação:
Arquivos: gameserver/data/stats/skills/8200-8299.xml

La em baixo tem q ter a skill "8247" Mount Light Purple Maned Horse" , se nao tiver, adiciona isso:

<skill id="8247" levels="1" name="Mount Light Purple Maned Horse">
<set name="target" val="TARGET_SELF"/>
<set name="skillType" val="SUMMON_HORSE"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="-1"/>
<for>
</for>
</skill>
by Mend3

__________________
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
xxxvalterxxx está offline  
Os Seguintes 3 Usuários disseram Obrigado(a) para xxxvalterxxx por gostarem deste post :
ByFreddy (16-05-2009), mend3 (28-01-2009), Tirant (31-03-2009)
Antigo 30-03-2009, 08:58 AM   #6 (permalink)
Membro - Subtenente
 
Avatar de Tirant
 
Registrado em: Mar 2009
Posts: 44
Agradeceu: 78
Agradecido 44 Vezes em 18 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Tirant

Padrão

Valeu Valter para mim foi muito util, fica mais facil eu arrumar o horse do que transferir todos meus custons para um server novo !
Obrigado

----------

Olha não sei o que pode ser........
Fiz como voce ensinou, não consigo localizar ele pelo Alt+G do admin....Não consegui cria-lo pelo //admim itens e experimentei coloca-lo no shop com a ajuda do multsell manager ele aparece escuro e não consigo compra-lo!
O que pode estar errado?

Tirant está offline  
Antigo 30-03-2009, 06:45 PM   #7 (permalink)
Amigo SE
 
Avatar de xxxvalterxxx
 
Registrado em: Dec 2008
Localização: Um lugar onde vc não sabe onde é.
Posts: 400
Agradeceu: 201
Agradecido 444 Vezes em 128 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de xxxvalterxxx

Padrão

Teste fazer isso:
//create_item 20029
E veja se funciona, se funcionar, é pq vc colocou id errada no shop.
No painel de admin não tem ele mesmo -.-

xxxvalterxxx está offline  
O seguinte membro ao lado disse Obrigado(a) a : xxxvalterxxx por gostar deste Post :
Tirant (30-03-2009)
Antigo 30-03-2009, 10:34 PM   #8 (permalink)
Membro - Subtenente
 
Avatar de Tirant
 
Registrado em: Mar 2009
Posts: 44
Agradeceu: 78
Agradecido 44 Vezes em 18 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Tirant

Padrão

Sabe xxxvalterxxx um dia achei um arquivo de que se denominava como sendo uma arquivo para colocar o cavalo e guardei achando que poderia ser util, porque não faço a minima idéia do que seja e nem como usa-lo.
Vi que são algumas skills, incersão de npc e tal .... da uma olhada ai e ve se ele serve para alguma coisa:


Index: data/stats/skills/0800-0899.xml
Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
===================================================================
--- data/stats/skills/0800-0899.xml	(revision 4832)
+++ data/stats/skills/0800-0899.xml	(working copy)
@@ -532,10 +532,13 @@
     <for />
   </skill>
 <skill id="839" levels="1" name="Dismount">
-  <set name="target" val="TARGET_NONE"/>
-  <set name="skillType" val="NOTDONE"/>
-  <set name="operateType" val="OP_PASSIVE"/>
-  <set name="castRange" val="-1"/>
+  <set name="target" val="TARGET_SELF"/> 
+  <set name="skillType" val="DISMOUNT"/> 
+  <set name="operateType" val="OP_ACTIVE"/> 
+  <set name="hitTime" val="5000"/> 
+  <set name="reuseDelay" val="5000"/> 
+  <set name="castRange" val="-1"/> 
+  <set name="effectRange" val="-1"/>
   <for>
   </for>
 </skill>
Index: data/stats/skills/8200-8299.xml
===================================================================
--- data/stats/skills/8200-8299.xml	(revision 4832)
+++ data/stats/skills/8200-8299.xml	(working copy)
@@ -378,10 +378,13 @@
     </for>
   </skill>
   <skill id="8247" levels="1" name="Mount Light Purple Maned Horse">
-    <set name="target" val="TARGET_NONE"/>
-    <set name="skillType" val="NOTDONE"/>
-    <set name="operateType" val="OP_PASSIVE"/>
-    <set name="castRange" val="-1"/>
+    <set name="target" val="TARGET_SELF"/> 
+    <set name="hitTime" val="1800"/> 
+    <set name="reuseDelay" val="1800"/> 
+    <set name="skillType" val="MOUNT_HORSE"/> 
+    <set name="operateType" val="OP_ACTIVE"/> 
+    <set name="castRange" val="-1"/> 
+    <set name="effectRange" val="-1"/> 
     <for>
     </for>
   </skill>
Index: sql/npc.sql
===================================================================
--- sql/npc.sql	(revision 4832)
+++ sql/npc.sql	(working copy)
@@ -194,7 +194,8 @@
 (13126, 13126, "Trap", 0, "", 0, "LineageMonster4.little_mouse_120p", 8, 24, 70, "male", "L2Npc", 40, 2444, 2444, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 500, 500, 500, 500, 278, 0, 333, 0, 0, NULL, 60, 60, "", 0, 0, 0, "LAST_HIT", 0, 0, 0, "balanced", "false"),
 (13127, 13127, "Trap", 0, "", 0, "LineageMonster4.little_mouse_120p", 8, 24, 70, "male", "L2Npc", 40, 2444, 2444, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 500, 500, 500, 500, 278, 0, 333, 0, 0, NULL, 60, 60, "", 0, 0, 0, "LAST_HIT", 0, 0, 0, "balanced", "false"),
 (13128, 13128, "Golem Trader", 0, "", 0, "LineageMonster4.little_mouse_120p", 8, 24, 70, "male", "L2Npc", 40, 2444, 2444, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 500, 500, 500, 500, 278, 0, 333, 0, 0, NULL, 60, 60, "", 0, 0, 0, "LAST_HIT", 0, 0, 0, "balanced", "false"),
-(13129, 13129, "Teleporter", 0, "", 0, "LineageMonster4.little_mouse_120p", 8, 24, 70, "male", "L2Npc", 40, 2444, 2444, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 500, 500, 500, 500, 278, 0, 333, 0, 0, NULL, 60, 60, "", 0, 0, 0, "LAST_HIT", 0, 0, 0, "balanced", "false");
+(13129, 13129, "Teleporter", 0, "", 0, "LineageMonster4.little_mouse_120p", 8, 24, 70, "male", "L2Npc", 40, 2444, 2444, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 500, 500, 500, 500, 278, 0, 333, 0, 0, NULL, 60, 60, "", 0, 0, 0, "LAST_HIT", 0, 0, 0, "balanced", "false"),
+(13130, 13130, "Light Purple Maned Horse", 0, "", 0, "Monster.horse", 8, 32.8, 70, "male", "L2Npc", 40, 2444, 2444, 0, 0, 10, 10, 10, 10, 10, 10, 0, 0, 500, 500, 500, 500, 278, 0, 333, 0, 0, 0, 60, 60, "", 0, 0, 0, "LAST_HIT", 0, 0, 0, "balanced", "false");
 
 INSERT INTO `npc` VALUES
 (14001, 14001, "Reanimated Man", 0, "", 0, "Monster.skeleton", 11, 25, 46, "male", "L2Pet", 40, 2914, 816, 8.69, 2.14, 40, 43, 30, 21, 20, 25, 0, 0, 482, 245, 202, 230, 278, 0, 333, 0, 0, 0, 66, 154, "NULL", 0, 1, 0, "LAST_HIT", 0, 0, 0, "fighter", "false"),


DEPOIS OUTRO ASSIM:


Index: config/other.properties
===================================================================
--- config/other.properties	(revision 4832)
+++ config/other.properties	(working copy)
@@ -8,6 +8,7 @@
 FenrirSpeed = 80
 SnowFenrirSpeed = 80
 GreatSnowWolfSpeed = 80
+HorseSpeed = 80
 
 # Level that enables mount of great wolf
 GreatWolfMountLevel = 70
Index: src/main/java/com/l2jfree/Config.java
===================================================================
--- src/main/java/com/l2jfree/Config.java	(revision 4832)
+++ src/main/java/com/l2jfree/Config.java	(working copy)
@@ -773,6 +773,7 @@
 	public static int				FENRIR_SPEED;
 	public static int				GREAT_SNOW_WOLF_SPEED;
 	public static int				SNOW_FENRIR_SPEED;
+	public static int				HORSE_SPEED;
 	public static int				GREAT_WOLF_MOUNT_LEVEL;
 	public static boolean			ALLOW_WYVERN_UPGRADER;
 	public static boolean			PETITIONING_ALLOWED;
@@ -857,6 +858,7 @@
 			STRIDER_SPEED = Integer.parseInt(otherSettings.getProperty("StriderSpeed", "80"));
 			FENRIR_SPEED = Integer.parseInt(otherSettings.getProperty("FenrirSpeed", "80"));
 			SNOW_FENRIR_SPEED = Integer.parseInt(otherSettings.getProperty("SnowFenrirSpeed", "80"));
+			HORSE_SPEED = Integer.parseInt(otherSettings.getProperty("HorseSpeed", "80"));
 			GREAT_SNOW_WOLF_SPEED = Integer.parseInt(otherSettings.getProperty("GreatSnowWolfSpeed", "80"));
 
 			GREAT_WOLF_MOUNT_LEVEL = Integer.parseInt(otherSettings.getProperty("GreatWolfMountLevel", "70"));
Index: src/main/java/com/l2jfree/gameserver/datatables/PetDataTable.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/datatables/PetDataTable.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/datatables/PetDataTable.java	(working copy)
@@ -65,6 +65,8 @@
 	public final static int											FENRIR_WOLF_ID				= 16041;
 	public final static int											WFENRIR_WOLF_ID				= 16042;
 
+	public final static int											HORSE_ID					= 13130;
+
 	private static FastMap<Integer, FastMap<Integer, L2PetData>>	petTable;
 
 	public static PetDataTable getInstance()
@@ -282,6 +284,11 @@
 		return npcId == SIN_EATER_ID;
 	}
 
+	public static boolean isHorse(int npcId)
+	{
+		return npcId == HORSE_ID;
+	}
+
 	/**
 	 * This class describes basic pet info
 	 * NPC template id, control item id, food item id and can be pet mounted
Index: src/main/java/com/l2jfree/gameserver/handler/SkillHandler.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/handler/SkillHandler.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/handler/SkillHandler.java	(working copy)
@@ -84,7 +84,8 @@
 		registerSkillHandler(new TransformDispel());
 		registerSkillHandler(new Trap());
 		registerSkillHandler(new Unlock());
-
+		registerSkillHandler(new MountHorse());
+		registerSkillHandler(new Dismount());
 		_log.info("SkillHandler: Loaded " + _handlers.size() + " handlers.");
 	}
 
Index: src/main/java/com/l2jfree/gameserver/handler/skillhandlers/Dismount.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/handler/skillhandlers/Dismount.java	(revision 0)
+++ src/main/java/com/l2jfree/gameserver/handler/skillhandlers/Dismount.java	(revision 0)
@@ -0,0 +1,69 @@
+/*
+ * 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.l2jfree.gameserver.handler.skillhandlers;
+
+import com.l2jfree.gameserver.handler.ISkillHandler;
+import com.l2jfree.gameserver.model.L2Character;
+import com.l2jfree.gameserver.model.L2Object;
+import com.l2jfree.gameserver.model.L2Skill;
+import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfree.gameserver.network.SystemMessageId;
+import com.l2jfree.gameserver.network.serverpackets.SystemMessage;
+import com.l2jfree.gameserver.model.L2Skill.SkillType;
+import com.l2jfree.gameserver.util.FloodProtector;
+
+/**
+ * @author theonn
+ *
+ */
+public class Dismount implements ISkillHandler
+{
+	private static final SkillType[] SKILL_IDS =
+	{
+		SkillType.DISMOUNT
+	};
+
+	/**
+	 * 
+	 * @see com.l2jfree.gameserver.handler.ISkillHandler#useSkill(net.sf.l2j.gameserver.model.L2Character, net.sf.l2j.gameserver.model.L2Skill, net.sf.l2j.gameserver.model.L2Object[])
+	 */
+	public void useSkill(L2Character playable, L2Skill skill, L2Object... targets)
+	{
+		if (!(playable instanceof L2PcInstance))
+			return;
+
+		L2PcInstance activeChar = (L2PcInstance) playable;
+
+		if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_ITEMPETSUMMON))
+			return;
+
+		if (activeChar.isAttackingNow())
+		{
+			activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_SUMMON_IN_COMBAT));
+			return;
+		}
+
+		activeChar.dismount();
+	}
+
+	/**
+	 * 
+	 * @see com.l2jfree.gameserver.handler.ISkillHandler#getSkillIds()
+	 */
+	public SkillType[] getSkillIds()
+	{
+		return SKILL_IDS;
+	}
+}
\ No newline at end of file
Index: src/main/java/com/l2jfree/gameserver/handler/skillhandlers/MountHorse.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/handler/skillhandlers/MountHorse.java	(revision 0)
+++ src/main/java/com/l2jfree/gameserver/handler/skillhandlers/MountHorse.java	(revision 0)
@@ -0,0 +1,97 @@
+/*
+ * 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.l2jfree.gameserver.handler.skillhandlers;
+
+import com.l2jfree.gameserver.handler.ISkillHandler;
+import com.l2jfree.gameserver.model.L2Character;
+import com.l2jfree.gameserver.model.L2Object;
+import com.l2jfree.gameserver.model.L2Skill;
+import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfree.gameserver.network.SystemMessageId;
+import com.l2jfree.gameserver.network.serverpackets.SystemMessage;
+import com.l2jfree.gameserver.model.L2Skill.SkillType;
+import com.l2jfree.gameserver.util.FloodProtector;
+
+/**
+ * @author theonn
+ *
+ */
+public class MountHorse implements ISkillHandler
+{
+	private static final int Horse_Id = 13130;
+
+	private static final SkillType[] SKILL_IDS =
+	{
+		SkillType.MOUNT_HORSE
+	};
+
+	/**
+	 * 
+	 * @see com.l2jfree.gameserver.handler.ISkillHandler#useSkill(net.sf.l2j.gameserver.model.L2Character, net.sf.l2j.gameserver.model.L2Skill, net.sf.l2j.gameserver.model.L2Object[])
+	 */
+	public void useSkill(L2Character playable, L2Skill skill, L2Object... targets)
+	{
+		if (!(playable instanceof L2PcInstance))
+			return;
+
+		L2PcInstance activeChar = (L2PcInstance) playable;
+
+		if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_ITEMPETSUMMON))
+			return;
+
+		if (activeChar.isSitting())
+		{
+			activeChar.sendPacket(new SystemMessage(SystemMessageId.CANT_MOVE_SITTING));
+			return;
+		}
+
+		if (activeChar.inObserverMode())
+			return;
+
+		if (activeChar.isInOlympiadMode())
+		{
+			activeChar.sendPacket(new SystemMessage(SystemMessageId.THIS_ITEM_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT));
+			return;
+		}
+
+		if ((activeChar.getPet() != null || activeChar.isMounted()))
+		{
+			activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_ALREADY_HAVE_A_PET));
+			return;
+		}
+
+		if (activeChar.isAttackingNow())
+		{
+			activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_SUMMON_IN_COMBAT));
+			return;
+		}
+
+		if (activeChar.isCursedWeaponEquipped())
+		{
+			return;
+		}
+
+		activeChar.mount(Horse_Id, 0);
+	}
+
+	/**
+	 * 
+	 * @see com.l2jfree.gameserver.handler.ISkillHandler#getSkillIds()
+	 */
+	public SkillType[] getSkillIds()
+	{
+		return SKILL_IDS;
+	}
+}
\ No newline at end of file
Index: src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -8851,6 +8851,7 @@
 			setIsRidingWFenrirWolf(false);
 			setIsRidingGreatSnowWolf(false);
 			setIsRidingStrider(false);
+			setIsRidingHorse(false);
 			setIsFlying(false);
 			isFalling(false, 0); // Initialize the fall just incase dismount was made while in-air
 			break; //Dismounted
@@ -8869,6 +8870,9 @@
 			setIsRidingFenrirWolf(true);
 			setIsRidingWFenrirWolf(true);
 			setIsRidingGreatSnowWolf(true);
+			break;
+		case 4:
+			setIsRidingHorse(true);
 			break;			
 		}
 
Index: src/main/java/com/l2jfree/gameserver/model/actor/stat/CharStat.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/model/actor/stat/CharStat.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/model/actor/stat/CharStat.java	(working copy)
@@ -679,7 +679,12 @@
 			val += Config.GREAT_SNOW_WOLF_SPEED;
 			return val;
 		}
-
+		if (_activeChar.isRidingHorse())
+		{
+			val += Config.HORSE_SPEED;
+			return val;
+		}
+		
 		// TODO: check if sharks/fish should be affected ;)
 		if (_activeChar.isInsideZone(L2Zone.FLAG_WATER))
 			val /= 2;
Index: src/main/java/com/l2jfree/gameserver/model/L2Character.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/model/L2Character.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/model/L2Character.java	(working copy)
@@ -158,6 +158,7 @@
 	private boolean					_isRidingWFenrirWolf				= false;
 	private boolean					_isRidingGreatSnowWolf				= false;
 	private boolean					_isRidingStrider					= false;
+	private boolean					_isRidingHorse						= false;
 	private boolean					_isPendingRevive					= false;
 	private boolean					_isRooted							= false;											// Cannot move until root timed out
 	private boolean					_isRunning							= true;
@@ -2672,6 +2673,11 @@
 		return _isRidingStrider;
 	}
 
+	public final boolean isRidingHorse()
+	{
+		return _isRidingHorse;
+	}
+
 	/** Set the L2Character riding mode to True. */
 	public final void setIsRidingFenrirWolf(boolean mode)
 	{
@@ -2693,6 +2699,11 @@
 		_isRidingStrider = mode;
 	}
 
+	public final void setIsRidingHorse(boolean mode)
+	{
+		_isRidingHorse = mode;
+	}
+
 	public final boolean isRooted()
 	{
 		return _isRooted;
Index: src/main/java/com/l2jfree/gameserver/model/L2Skill.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/model/L2Skill.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/model/L2Skill.java	(working copy)
@@ -252,6 +252,8 @@
 		REMOVE_TRAP,
 		SHIFT_TARGET,
 		INSTANT_JUMP,
+		MOUNT_HORSE,
+		DISMOUNT,
 
 		AGATHION(L2SkillAgathion.class),
 		CHANGEWEAPON(L2SkillChangeWeapon.class),
Index: src/main/java/com/l2jfree/gameserver/network/serverpackets/Ride.java
===================================================================
--- src/main/java/com/l2jfree/gameserver/network/serverpackets/Ride.java	(revision 4832)
+++ src/main/java/com/l2jfree/gameserver/network/serverpackets/Ride.java	(working copy)
@@ -50,6 +50,8 @@
             _rideType = 2;
         else if (PetDataTable.isWGreatWolf(npcId) || PetDataTable.isFenrirWolf(npcId) || PetDataTable.isWFenrirWolf(npcId))
             _rideType = 3;
+	else if (PetDataTable.isHorse(npcId))
+	    _rideType = 4;
         else
             _rideType = 0;
     }
ESPERO QUE AJUDE !

Tirant está offline  
Antigo 11-05-2009, 09:56 AM   #9 (permalink)
Membro - Recruta
 
Avatar de xchalcan182
 
Registrado em: May 2009
Posts: 5
Agradeceu: 11
Agradecido 0 Vezes em 0 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de xchalcan182

Padrão

Fiz td isso e nda de cavalo ser summonado =//
Alguem tem mais alguma ideia do q fazer ?

xchalcan182 está offline  
Antigo 16-05-2009, 12:49 PM   #10 (permalink)
Membro - Recruta
 
Avatar de ByFreddy
 
Registrado em: May 2009
Posts: 7
Agradeceu: 12
Agradecido 8 Vezes em 2 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de ByFreddy

Padrão puts

awe mano eu fiz tudo certiho = no seu tutorial tenho certeza q fiz certo mais o cavalo nem sumona. quanto mais montar em cima dele.


por favor se alguem solber o que pode ser manda awe pra nos. =D

Obrigado.

ByFreddy está offline  
Tópico Trancado

Ferramentas do Tópico
Modos de Exibição

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


Tópicos Similares
Tópico Tópico Iniciado Por Fórum Respostas Última Mensagem
[Outros] [Share] REV'S L2JFree djmixedad [L2J] Servidores (Packs) 1 21-04-2010 10:46 PM
[Gracia Final] Servidor Gracia Final By L2jDAG. Damage [Lineage] Gracia Final 233 23-10-2009 03:56 PM
[Gracia Parte 2] Gracia Parte 2 - Pack Pré Configurado By Kryer 100% Sem Bugs. Secret Experience [Lineage] Gracia PT1 | PT2 48 07-07-2009 07:09 AM
[Tutorial] Arrumando Auto Create mend3 [L2J] Tutoriais 1 31-03-2009 10:42 PM
[IL a Gracia] System's de Lineage II IL à Gracia Final christiand [Lineage] Outros 0 05-12-2008 11:55 AM


Horários baseados na GMT -3. Agora são 05:10 AM.
 



Search Engine Optimization by vBSEO 3.3.0