Ir para conteúdo
  • Cadastre-se

L2JBlueHeart 💙


vert

Posts recomendados


 

va no seu navicat e crei o db l2sunrise, meu amigo você tem que procurar um tutorial sobre como criar um servidor!!

Isso eu já havia feito mano, não precisa ser grosseiro com as palavras. Se perguntei és porque já explorei as possibilidades que eu sei.

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Pessoal olhem o buff "Chant of Life" "The Heart  of Pa'agrio" do overlord, eles estam com o tempo de duração elevado como qualquer outro buff, mas eles devem durar apenas 15 segundos, apenas removam o ele da lista no arquivo...

game/config/main/character.ini

Não lembro o id deles, então procurem '-'

Link para o comentário
Compartilhar em outros sites

 

Pessoal olhem o buff "Chant of Life" "The Heart  of Pa'agrio" do overlord, eles estam com o tempo de duração elevado como qualquer outro buff, mas eles devem durar apenas 15 segundos, apenas removam o ele da lista no arquivo...

game/config/main/character.ini

Não lembro o id deles, então procurem '-'

Boa tarde mano. Os buffs não estão na lista de buff com alteração de tempo que vem na revisão, favor verificar se não fez alteração em seu arquivo. 

Grato.

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
 

Normalmente vc coloca algo como Gold Bar para os players trocarem a adena quando ficar full, nao imagino de que forma um player consiga 99kk, nem em servidor full pvp!

Qualquer servidor com rate de adena 50x fica fácil conseguir 99 bi de adena, principalmente se for permitido o uso de bots.

Há uma config onde é definido o limite de adena pra 99bi. Mas acho que aumentar através dessa config não funciona. Eu não cheguei a testar. O ideal é habilitar o comando .deposit/.withdraw. Ou lançar um sistema de trocas em um multisell (adena/gb e vice versa).

Link para o comentário
Compartilhar em outros sites

 

estou testando o servidor, porém não estou conseguindo equipar as cloack, mesmo com o set todo equipado, ele fala que está incompleto e desativa o slot. 

Eu uso essa rev em meu servidor. Não encontrei esse problema com as cloaks. Reveja se vc está com o set completo equipado, e caso esteja, pode ser algo nas configs. Eu vou checar e caso encontre algo posto aqui pra você.

Link para o comentário
Compartilhar em outros sites

 

Pessoal olhem o buff "Chant of Life" "The Heart  of Pa'agrio" do overlord, eles estam com o tempo de duração elevado como qualquer outro buff, mas eles devem durar apenas 15 segundos, apenas removam o ele da lista no arquivo...

game/config/main/character.ini

Não lembro o id deles, então procurem '-'

Aqui no meu servidor estão com tempo normal. Possivelmente você tenha adicionado eles em suas configs.

Link para o comentário
Compartilhar em outros sites

 

@TurtleLess é possível adicionar o mod ".combinetalismans" link, desde o inicio do projeto que to pedindo isso.

/*
 * Copyright (C) 2004-2015 L2J DataPack
 * 
 * This file is part of L2J DataPack.
 * 
 * L2J DataPack 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.
 * 
 * L2J DataPack 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 handlers.voicedcommandhandlers;

import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import l2r.gameserver.handler.IVoicedCommandHandler;
import l2r.gameserver.model.actor.instance.L2PcInstance;
import l2r.gameserver.model.items.instance.L2ItemInstance;
import l2r.gameserver.util.Util;

/**
 * This is a clean version of my original idea back in 2012.
 * @author Nik
 */
public class CombineTalismans implements IVoicedCommandHandler
{
	private static final String[] VOICED_COMMANDS =
	{
		"combinetalismans"
	};
	
	@Override
	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
	{
		if (VOICED_COMMANDS[0].equalsIgnoreCase(command))
		{
			final Map<Integer, L2ItemInstance> talismans = new HashMap<>();
			activeChar.sendMessage("Combining talismans...");
			try
			{
				//@formatter:off
				Arrays.stream(activeChar.getInventory().getItems())
				.filter(Objects::nonNull)
				.filter(L2ItemInstance::isShadowItem)
				.filter(i -> Util.contains(TALISMAN_IDS, i.getId())) // Filter that only talismans go through.
				.sorted((i1, i2) -> Boolean.compare(i2.isEquipped(), i1.isEquipped())) // Equipped talismans first (so we can then pick equipped first for charging).
				.forEach(item ->
				{
					final L2ItemInstance talismanToCharge = talismans.putIfAbsent(item.getId(), item);
					if ((talismanToCharge != null) && activeChar.destroyItem(VOICED_COMMANDS[0], item, activeChar, false))
					{
						talismanToCharge.decreaseMana(false, -item.getMana()); // Minus in decrease = increase :P
					}
				});
				//@formatter:on
				
				activeChar.sendMessage(talismans.isEmpty() ? "...there were no combined talismans." : "...results:");
				talismans.values().forEach(i -> activeChar.sendMessage(i.getName() + " has been successfully combined."));
			}
			catch (Exception e)
			{
				activeChar.sendMessage("There was a problem while combining your talismans, please consult with an admin, and tell him this date: " + Util.getDateString(new Date(System.currentTimeMillis())));
				_log.warn("Error while combining talismans: " + e);
			}
		}
		return true;
	}
	
	@Override
	public String[] getVoicedCommandList()
	{
		return VOICED_COMMANDS;
	}
	
	//@formatter:off
	// All talismans inside high five client.
	public static final int[] TALISMAN_IDS =
	{
		9914, // Blue Talisman of Power		Increases P. Atk. when in use. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be traded or dropped.
		9915, // Blue Talisman of Wild Magic		Increases Critical Rate of magic attacks temporarily. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9916, // Blue Talisman of Defense		Temporarily decreases P. Def./M. Def./Evasion and increases P. Atk./M. Atk./Atk. Spd./Casting Spd./speed. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9917, // Red Talisman of Minimum Clarity		Decreases skill MP consumption when used. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9918, // Red Talisman of Maximum Clarity		Temporarily greatly decreases skill MP consumption when used. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9919, // Blue Talisman of Reflection		When used, grants a skill whereby any physical melee damage received will be reflected back onto your attacker. Effect does not stack with additional talismans of the same type. This item cannot be traded or dropped.
		9920, // Blue Talisman of Invisibility		Makes you invisible for a while, so you cannot be attacked by enemies. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9921, // Blue Talisman - Shield Protection		When used, increases the protection power of a shield. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9922, // Black Talisman - Mending		When used, it cures bleeding. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9923, // Black Talisman - Escape		When used, it cancels all Movement Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9924, // Blue Talisman of Healing		It increases HP Recovery Magic temporarily. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9925, // Red Talisman of Recovery		It recovers HP/CP. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9926, // Blue Talisman of Defense		When used, increases P. Def. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9927, // Blue Talisman of Magic Defense		When used, increases magic P. Def. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9928, // Red Talisman of Mental Regeneration		When used, it speeds up MP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9929, // Blue Talisman of Protection		When used, increases the protection power of a shield. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9930, // Blue Talisman of Evasion		When used, increases evasion and reduces Critical Damage possibilities. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9931, // Red Talisman of Meditation		When used, it greatly increases MP Recovery Rate. You cannot move during recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9932, // Blue Talisman - Divine Protection		When used, P. Def. and M. Def. greatly increase momentarily. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9933, // Yellow Talisman of Power		Increases P. Atk. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9934, // Yellow Talisman of Violent Haste		Increases Atk. Spd. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9935, // Yellow Talisman of Arcane Defense		Increases Magic Defense. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9936, // Yellow Talisman of Arcane Power		Increases M. Atk. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9937, // Yellow Talisman of Arcane Haste		Increases Casting Spd. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9938, // Yellow Talisman of Accuracy		Increases Accuracy. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9939, // Yellow Talisman of Defense		Increases Defense. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9940, // Yellow Talisman of Alacrity		Increases P. Atk., M. Atk., and Speed. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9941, // Yellow Talisman of Speed		Increases Speed. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9942, // Yellow Talisman of Critical Reduction		When used, it decreases damages from physical critical attacks. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9943, // Yellow Talisman of Critical Damage		Increases Critical P. Atk. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9944, // Yellow Talisman of Critical Dodging		When used, it decreases physical Critical Damage possibility. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9945, // Yellow Talisman of Evasion		Increases Evasion. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9946, // Yellow Talisman of Healing		Increases HP Recovery Magic temporarily. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9947, // Yellow Talisman of CP Regeneration		Increases CP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9948, // Yellow Talisman of Physical Regeneration		Increases HP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9949, // Yellow Talisman of Mental Regeneration		Increases MP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9950, // Grey Talisman of Weight Training		Increases weapon Weight Limit. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9951, // Grey Talisman of Mid-Grade Fishing		Obtains Mid-Grade Fishing Mastery Level (Lv 18). Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9952, // Orange Talisman - Hot Springs CP Potion		Create 1 Hot Springs CP Potion following the consumption of 16 Soul Ore. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be traded or dropped.
		9953, // Orange Talisman - Elixir of Life		Consumes 50 Soul Ore to create an A-Grade Elixir of Life. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9954, // Orange Talisman - Elixir of Mental Strength		Consumes 57 Soul Ore to create an A-Grade Elixir of Mental Strength. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9955, // Black Talisman - Vocalization		Breaks magic silence. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9956, // Black Talisman - Arcane Freedom		When used, it cancels Magical Movement Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9957, // Black Talisman - Physical Freedom		When used, it cancels Physical Movement Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9958, // Black Talisman - Rescue		When used, it cancels Physical Skill Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9959, // Black Talisman - Free Speech		Breaks silence. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9960, // White Talisman of Bravery		Increases Resistance to mental attacks. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9961, // White Talisman of Motion		When equipped, Resistance to Paralysis increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9962, // White Talisman of Grounding		When equipped, Resistance to Shock attacks increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9963, // White Talisman of Attention		When equipped, Resistance to sleep attacks increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9964, // White Talisman of Bandages		When equipped, Resistance to bleed attacks increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9965, // White Talisman of Protection		Increases Resistance to buff disarming magic. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9966, // White Talisman of Freedom		When equipped, Resistance to Hold increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		10141, // Grey Talisman - Yeti Transform		Can be transformed into a Yeti for a certain amount of time. Transformation is cancelled if unequipped. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		10142, // Grey Talisman - Buffalo Transform		Can be transformed into a Buffalo for a certain amount of time. Transformation is cancelled if unequipped. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		10158, // Grey Talisman of Upper Grade Fishing		Obtains Upper-Grade Fishing Mastery Level (Lv 24). Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		10416, // Blue Talisman - Explosion		Increases P. Atk./Atk. Spd. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10417, // Blue Talisman - Magic Explosion		Increases M. Atk. and M. Critical Rate . Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10418, // White Talisman - Storm		Increases Wind attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10419, // White Talisman - Darkness		Increases Dark attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10420, // White Talisman - Water		Increases Water attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10421, // White Talisman - Fire		Instantly increases fire elemental. Only one effect is applied when you wear the same two talismans. Projection Weapons with no exchange/drop available
		10422, // White Talisman - Light		Increases holy attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10423, // Blue Talisman - Self-Destruction		Damages a nearby enemy with a powerful explosion. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10424, // Blue Talisman - Greater Healing		Increases heal power. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10518, // Red Talisman - Life Force		Completely restores MP/HP when used. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10519, // White Talisman -  Earth		Increases Earth attribute defense by 50 when used. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10533, // Blue Talisman - P. Atk.		Increases P. Atk. when used. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10534, // Blue Talisman - Shield Defense		Shield Def. increases when used. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10535, // Yellow Talisman - P. Def.		P. Def. increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10536, // Yellow Talisman - M. Atk.		Increases M. Atk. when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10537, // Yellow Talisman - Evasion		Increases Evasion when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10538, // Yellow Talisman - Healing Power		HP recovery M. Atk. increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10539, // Yellow Talisman - CP Recovery Rate		CP recovery rate increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10540, // Yellow Talisman - HP Recovery Rate		Increases HP Recovery Rate. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10541, // Yellow Talisman - Low Grade MP Recovery Rate		Increases MP Recovery Rate. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10542, // Red Talisman - HP/CP Recovery		HP/CP are recovered when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10543, // Yellow Talisman - Speed		Speed increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		12815, // Red Talisman - Max CP		Increases Max CP when equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		12816, // Red Talisman - CP Regeneration		Increases CP regeneration rate when equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		12817, // Yellow Talisman - Increase Force		Increases your Force Level when attacked while equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		12818, // Yellow Talisman - Damage Transition		Transfers a portion of damage you take onto your servitor while equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		14604, // Red Talisman - Territory Guardian		When used, Max CP is greatly increased and a certain amount of CP is greatly recovered. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14605, // Red Talisman - Territory Guard		When used, Max CP is increased and a certain amount of CP is recovered. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14810, // Blue Talisman - Buff Cancel		Cancels the buffs of nearby enemies upon use. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14811, // Blue Talisman - Buff Steal		Steals the target's abnormal status upon use. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14812, // Red Talisman - Territory Guard		When used, Max CP is greatly increased and a certain amount of CP is greatly recovered. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14813, // Blue Talisman - Lord's Divine Protection		Upon use, greatly decreases the damage received during PvP. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14814, // White Talisman -  All Resistance		Increases Resistance to all elements. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		17051, // Talisman - STR		Event item. STR +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17052, // Talisman - DEX		Event item. DEX +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17053, // Talisman - CON		Event item. CON +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17054, // Talisman - WIT		Event item. WIT +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17055, // Talisman - INT		Event item. INT +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17056, // Talisman - MEN		Event item. MEN +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17057, // Talisman - Resistance to Stun		Event item. Resistance to Stun +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17058, // Talisman - Resistance to Sleep		Event item. Resistance to Sleep +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17059, // Talisman - Resistance to Hold		Event item. Resistance to Hold +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17060, // Talisman - Paralyze Resistance		Event item. Paralysis resistance +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17061, // Talisman - ALL STAT		Event item. All stats increase by 1 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted after the regular maintenance on July 7th.
		22326, // Blue Talisman - Buff Cancel		Cancels the buffs of nearby enemies upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
		22327 // Blue Talisman - Buff Steal		Stealsthe target's abnormal status upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
	};
	//@formatter:on
}

Adicionar em data\scripts\handlers\voicedcommandhandlers\CombineTalismans.java e importar no MasterHandler. Não há necessidade de alterações na source.

Link para o comentário
Compartilhar em outros sites

@vert ou @TurtleLess existe um mod muito interessante (só o conheci como player em alguns servidores) onde o player dá um clique direito segurando a tecla Control para usar pedras de elemento (stones, crystal ou jewels) e todas as pedras são aplicadas ao mesmo tempo, sendo gastas conforme as configurações de chance de sucesso do server. Seria uma excelente adição ao projeto.

Link para o comentário
Compartilhar em outros sites

 

/*
 * Copyright (C) 2004-2015 L2J DataPack
 * 
 * This file is part of L2J DataPack.
 * 
 * L2J DataPack 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.
 * 
 * L2J DataPack 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 handlers.voicedcommandhandlers;

import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import l2r.gameserver.handler.IVoicedCommandHandler;
import l2r.gameserver.model.actor.instance.L2PcInstance;
import l2r.gameserver.model.items.instance.L2ItemInstance;
import l2r.gameserver.util.Util;

/**
 * This is a clean version of my original idea back in 2012.
 * @author Nik
 */
public class CombineTalismans implements IVoicedCommandHandler
{
	private static final String[] VOICED_COMMANDS =
	{
		"combinetalismans"
	};
	
	@Override
	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
	{
		if (VOICED_COMMANDS[0].equalsIgnoreCase(command))
		{
			final Map<Integer, L2ItemInstance> talismans = new HashMap<>();
			activeChar.sendMessage("Combining talismans...");
			try
			{
				//@formatter:off
				Arrays.stream(activeChar.getInventory().getItems())
				.filter(Objects::nonNull)
				.filter(L2ItemInstance::isShadowItem)
				.filter(i -> Util.contains(TALISMAN_IDS, i.getId())) // Filter that only talismans go through.
				.sorted((i1, i2) -> Boolean.compare(i2.isEquipped(), i1.isEquipped())) // Equipped talismans first (so we can then pick equipped first for charging).
				.forEach(item ->
				{
					final L2ItemInstance talismanToCharge = talismans.putIfAbsent(item.getId(), item);
					if ((talismanToCharge != null) && activeChar.destroyItem(VOICED_COMMANDS[0], item, activeChar, false))
					{
						talismanToCharge.decreaseMana(false, -item.getMana()); // Minus in decrease = increase :P
					}
				});
				//@formatter:on
				
				activeChar.sendMessage(talismans.isEmpty() ? "...there were no combined talismans." : "...results:");
				talismans.values().forEach(i -> activeChar.sendMessage(i.getName() + " has been successfully combined."));
			}
			catch (Exception e)
			{
				activeChar.sendMessage("There was a problem while combining your talismans, please consult with an admin, and tell him this date: " + Util.getDateString(new Date(System.currentTimeMillis())));
				_log.warn("Error while combining talismans: " + e);
			}
		}
		return true;
	}
	
	@Override
	public String[] getVoicedCommandList()
	{
		return VOICED_COMMANDS;
	}
	
	//@formatter:off
	// All talismans inside high five client.
	public static final int[] TALISMAN_IDS =
	{
		9914, // Blue Talisman of Power		Increases P. Atk. when in use. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be traded or dropped.
		9915, // Blue Talisman of Wild Magic		Increases Critical Rate of magic attacks temporarily. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9916, // Blue Talisman of Defense		Temporarily decreases P. Def./M. Def./Evasion and increases P. Atk./M. Atk./Atk. Spd./Casting Spd./speed. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9917, // Red Talisman of Minimum Clarity		Decreases skill MP consumption when used. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9918, // Red Talisman of Maximum Clarity		Temporarily greatly decreases skill MP consumption when used. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9919, // Blue Talisman of Reflection		When used, grants a skill whereby any physical melee damage received will be reflected back onto your attacker. Effect does not stack with additional talismans of the same type. This item cannot be traded or dropped.
		9920, // Blue Talisman of Invisibility		Makes you invisible for a while, so you cannot be attacked by enemies. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9921, // Blue Talisman - Shield Protection		When used, increases the protection power of a shield. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9922, // Black Talisman - Mending		When used, it cures bleeding. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9923, // Black Talisman - Escape		When used, it cancels all Movement Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9924, // Blue Talisman of Healing		It increases HP Recovery Magic temporarily. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9925, // Red Talisman of Recovery		It recovers HP/CP. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9926, // Blue Talisman of Defense		When used, increases P. Def. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9927, // Blue Talisman of Magic Defense		When used, increases magic P. Def. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9928, // Red Talisman of Mental Regeneration		When used, it speeds up MP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9929, // Blue Talisman of Protection		When used, increases the protection power of a shield. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9930, // Blue Talisman of Evasion		When used, increases evasion and reduces Critical Damage possibilities. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9931, // Red Talisman of Meditation		When used, it greatly increases MP Recovery Rate. You cannot move during recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9932, // Blue Talisman - Divine Protection		When used, P. Def. and M. Def. greatly increase momentarily. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9933, // Yellow Talisman of Power		Increases P. Atk. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9934, // Yellow Talisman of Violent Haste		Increases Atk. Spd. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9935, // Yellow Talisman of Arcane Defense		Increases Magic Defense. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9936, // Yellow Talisman of Arcane Power		Increases M. Atk. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9937, // Yellow Talisman of Arcane Haste		Increases Casting Spd. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9938, // Yellow Talisman of Accuracy		Increases Accuracy. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9939, // Yellow Talisman of Defense		Increases Defense. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9940, // Yellow Talisman of Alacrity		Increases P. Atk., M. Atk., and Speed. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9941, // Yellow Talisman of Speed		Increases Speed. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9942, // Yellow Talisman of Critical Reduction		When used, it decreases damages from physical critical attacks. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9943, // Yellow Talisman of Critical Damage		Increases Critical P. Atk. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9944, // Yellow Talisman of Critical Dodging		When used, it decreases physical Critical Damage possibility. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9945, // Yellow Talisman of Evasion		Increases Evasion. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9946, // Yellow Talisman of Healing		Increases HP Recovery Magic temporarily. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9947, // Yellow Talisman of CP Regeneration		Increases CP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9948, // Yellow Talisman of Physical Regeneration		Increases HP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9949, // Yellow Talisman of Mental Regeneration		Increases MP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9950, // Grey Talisman of Weight Training		Increases weapon Weight Limit. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9951, // Grey Talisman of Mid-Grade Fishing		Obtains Mid-Grade Fishing Mastery Level (Lv 18). Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9952, // Orange Talisman - Hot Springs CP Potion		Create 1 Hot Springs CP Potion following the consumption of 16 Soul Ore. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be traded or dropped.
		9953, // Orange Talisman - Elixir of Life		Consumes 50 Soul Ore to create an A-Grade Elixir of Life. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9954, // Orange Talisman - Elixir of Mental Strength		Consumes 57 Soul Ore to create an A-Grade Elixir of Mental Strength. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9955, // Black Talisman - Vocalization		Breaks magic silence. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9956, // Black Talisman - Arcane Freedom		When used, it cancels Magical Movement Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9957, // Black Talisman - Physical Freedom		When used, it cancels Physical Movement Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9958, // Black Talisman - Rescue		When used, it cancels Physical Skill Inability States. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9959, // Black Talisman - Free Speech		Breaks silence. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9960, // White Talisman of Bravery		Increases Resistance to mental attacks. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9961, // White Talisman of Motion		When equipped, Resistance to Paralysis increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9962, // White Talisman of Grounding		When equipped, Resistance to Shock attacks increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9963, // White Talisman of Attention		When equipped, Resistance to sleep attacks increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9964, // White Talisman of Bandages		When equipped, Resistance to bleed attacks increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		9965, // White Talisman of Protection		Increases Resistance to buff disarming magic. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		9966, // White Talisman of Freedom		When equipped, Resistance to Hold increases. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		10141, // Grey Talisman - Yeti Transform		Can be transformed into a Yeti for a certain amount of time. Transformation is cancelled if unequipped. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		10142, // Grey Talisman - Buffalo Transform		Can be transformed into a Buffalo for a certain amount of time. Transformation is cancelled if unequipped. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		10158, // Grey Talisman of Upper Grade Fishing		Obtains Upper-Grade Fishing Mastery Level (Lv 24). Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		10416, // Blue Talisman - Explosion		Increases P. Atk./Atk. Spd. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10417, // Blue Talisman - Magic Explosion		Increases M. Atk. and M. Critical Rate . Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10418, // White Talisman - Storm		Increases Wind attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10419, // White Talisman - Darkness		Increases Dark attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10420, // White Talisman - Water		Increases Water attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10421, // White Talisman - Fire		Instantly increases fire elemental. Only one effect is applied when you wear the same two talismans. Projection Weapons with no exchange/drop available
		10422, // White Talisman - Light		Increases holy attribute. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10423, // Blue Talisman - Self-Destruction		Damages a nearby enemy with a powerful explosion. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10424, // Blue Talisman - Greater Healing		Increases heal power. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10518, // Red Talisman - Life Force		Completely restores MP/HP when used. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10519, // White Talisman -  Earth		Increases Earth attribute defense by 50 when used. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10533, // Blue Talisman - P. Atk.		Increases P. Atk. when used. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10534, // Blue Talisman - Shield Defense		Shield Def. increases when used. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10535, // Yellow Talisman - P. Def.		P. Def. increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10536, // Yellow Talisman - M. Atk.		Increases M. Atk. when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10537, // Yellow Talisman - Evasion		Increases Evasion when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10538, // Yellow Talisman - Healing Power		HP recovery M. Atk. increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10539, // Yellow Talisman - CP Recovery Rate		CP recovery rate increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10540, // Yellow Talisman - HP Recovery Rate		Increases HP Recovery Rate. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10541, // Yellow Talisman - Low Grade MP Recovery Rate		Increases MP Recovery Rate. Effect does not stack with additional Talismans of the same type. This item cannot be exchanged or dropped.
		10542, // Red Talisman - HP/CP Recovery		HP/CP are recovered when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		10543, // Yellow Talisman - Speed		Speed increases when equipped. Effect does not stack with additional Talismans of the same type. A Shadow Item which cannot be exchanged or dropped.
		12815, // Red Talisman - Max CP		Increases Max CP when equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		12816, // Red Talisman - CP Regeneration		Increases CP regeneration rate when equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		12817, // Yellow Talisman - Increase Force		Increases your Force Level when attacked while equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		12818, // Yellow Talisman - Damage Transition		Transfers a portion of damage you take onto your servitor while equipped. Effect does not stack with additional Talismans of the same type. Shadow Item that cannot be exchanged or dropped.
		14604, // Red Talisman - Territory Guardian		When used, Max CP is greatly increased and a certain amount of CP is greatly recovered. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14605, // Red Talisman - Territory Guard		When used, Max CP is increased and a certain amount of CP is recovered. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14810, // Blue Talisman - Buff Cancel		Cancels the buffs of nearby enemies upon use. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14811, // Blue Talisman - Buff Steal		Steals the target's abnormal status upon use. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14812, // Red Talisman - Territory Guard		When used, Max CP is greatly increased and a certain amount of CP is greatly recovered. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14813, // Blue Talisman - Lord's Divine Protection		Upon use, greatly decreases the damage received during PvP. Only one effect is applied when you wear the same two talismans. Shadow Item with no exchange/drop available
		14814, // White Talisman -  All Resistance		Increases Resistance to all elements. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.
		17051, // Talisman - STR		Event item. STR +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17052, // Talisman - DEX		Event item. DEX +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17053, // Talisman - CON		Event item. CON +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17054, // Talisman - WIT		Event item. WIT +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17055, // Talisman - INT		Event item. INT +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17056, // Talisman - MEN		Event item. MEN +2 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17057, // Talisman - Resistance to Stun		Event item. Resistance to Stun +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17058, // Talisman - Resistance to Sleep		Event item. Resistance to Sleep +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17059, // Talisman - Resistance to Hold		Event item. Resistance to Hold +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17060, // Talisman - Paralyze Resistance		Event item. Paralysis resistance +15 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted in bulk after the regular maintenance time on Jul. 7.
		17061, // Talisman - ALL STAT		Event item. All stats increase by 1 when equipped. Cannot be traded, dropped, destroyed, or used in the Olympiad. \\nThis item will be deleted after the regular maintenance on July 7th.
		22326, // Blue Talisman - Buff Cancel		Cancels the buffs of nearby enemies upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
		22327 // Blue Talisman - Buff Steal		Stealsthe target's abnormal status upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
	};
	//@formatter:on
}

Adicionar em data\scripts\handlers\voicedcommandhandlers\CombineTalismans.java e importar no MasterHandler. Não há necessidade de alterações na source.

Percebi isso depois d algum tempo, mas o mod n funcionou 

Link para o comentário
Compartilhar em outros sites

 

Percebi isso depois d algum tempo, mas o mod n funcionou 

@Reign amigo você deve ter cometido algum erro no processo. Aqui funciona 100%. Sem erros. Veja as imagens abaixo.

https://ibb.co/c1c1jRN

https://ibb.co/phQkBXd

Editado por Yanush
Link para o comentário
Compartilhar em outros sites

 

Antes de testar, faça um backup dos seus arquivos para evitar perdas. Segue o link. Espero ajudar.

https://www.mediafire.com/file/5om4ep8r6nxr1ev/Combine+Talismans.rar

Agr sim funcionou, Obrigado mano ❤️ 

@vert ou @TurtleLess recomendo muito atualizar o projeto com esses novos arquivos, testei todos os talismans e faltou um nesse comando, então antes de adicionar copiem e colem essas duas linhas do código, uma foi alterada e outra adicionada.

        22327, // Blue Talisman - Buff Steal        Stealsthe target's abnormal status upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
        9948 // Yellow Talisman of Physical Regeneration        Increases HP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.

Editado por Reign
Link para o comentário
Compartilhar em outros sites

 

Agr sim funcionou, Obrigado mano ❤️ 

@vert ou @TurtleLess recomendo muito atualizar o projeto com esses novos arquivos, testei todos os talismans e faltou um nesse comando, então antes de adicionar copiem e colem essas duas linhas do código, uma foi alterada e outra adicionada.

        22327, // Blue Talisman - Buff Steal        Stealsthe target's abnormal status upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
        9948 // Yellow Talisman of Physical Regeneration        Increases HP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.

Que bom que deu certo! A ideia é essa: compartilhar para melhorar o projeto para todos!

Editado por Yanush
Link para o comentário
Compartilhar em outros sites

 

Agr sim funcionou, Obrigado mano ❤️ 

@vert ou @TurtleLess recomendo muito atualizar o projeto com esses novos arquivos, testei todos os talismans e faltou um nesse comando, então antes de adicionar copiem e colem essas duas linhas do código, uma foi alterada e outra adicionada.

        22327, // Blue Talisman - Buff Steal        Stealsthe target's abnormal status upon use. Only one effect is applies when you wear two of the same talismans. Cannot be exchanged or dropped. Can be destroyed. Can be stored in a private warehouse.
        9948 // Yellow Talisman of Physical Regeneration        Increases HP recovery. Effect does not stack with additional Talismans of the same type. This item cannot be traded or dropped.

 

Hey campeão!

 

Estamos muito felizes em ver que vocês andam bem ativos no tópico, como eu e o TurtleLess não estamos com tempo para dar a atenção que vocês merecem, decidimos tornar a source da JBH pública também, assim vocês podem dar manutenção no que precisarem e adicionar os mods que quiserem; peço que ao criar novos códigos, não criem direto na master ou na dev, criem uma branch a partir da dev, trabalhem no que precisar e depois façam merge na dev e dela pra master, ai gerem um build e enviem pro repositório da build que já está disponível para vocês, esse será o fluxo das versões oficiais;

 

Eu vou dar uma olhada nos códigos enviados para  garantir a integridade da source e de que ninguém vai enviar pull request com códigos maliciosos;

 

https://github.com/danielbarion/JBlueHeart-Source

 

Vou adicionar o link lá no post principal do tópico também, usem com sabedoria!

Link para o comentário
Compartilhar em outros sites

 

Qual o procedimento para que eu possa contribuir com commits ou posto a rev atualizada quando fizer algum ?

 

git clone https://github.com/danielbarion/JBlueHeart-Source.git

git checkout dev 

git checkout -b nome_da_nova_branch

 

Faça suas modificações;

Faça os commits quando achar necessário;

 

git push

 

Ai lá no github, crie um pull request pra fazer merge da sua branch para a dev e depois eu faço da dev pra master;

 

Se possível, coloque uma pequena descrição do que foi feito naquele pull request;

Link para o comentário
Compartilhar em outros sites

  • vert changed the title to L2JBlueHeart
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.






  • Patrocinadores

  • Quem Está Navegando

    • Nenhum usuário registrado visualizando esta página.
  • Posts

    • Teria como fazer do dusk shield e do zombie shield dessa maneira?     Teria como fazer do dusk shield e do zombie shield dessa maneira?     Teria como fazer do dusk shield e do zombie shield dessa maneira?     Teria como fazer do dusk shield e do zombie shield dessa maneira?     Teria como fazer do dusk shield e do zombie shield dessa maneira?     Teria como fazer do dusk shield e do zombie shield dessa maneira?    
    • muchas gracias muy lindos NPC 🙂
    • relaxa jovem gafanhoto, testa as quests. e posTa os erros indesejaveis.  
    • Se alguém pudesse me ensinar como codificar as missões, eu ficaria feliz em fazer isso sozinho ou pelo menos ajudar. Eu realmente quero jogar em um servidor onde todas as quests funcionem bem e melhor ainda se você puder fazer quests customizadas!
    • mas no interlude, nem todas as quests de class,  vai mostrar onde tem que ir, ate o reborn nao mostrava quando era interlude, só mostrou depois que eles colocaram client classic pra rodar, e ficou melhor ainda quando virou hellbound em diante, mas ha sim alguma chance de modificar isso direto no script para fazer igualmente, só basta te um pouco de paciencia e persistencia exato
    • 408_PathToElvenwizard dá Orion eu tive que mexer tbm, até modifiquei e consegui deixar ela igual do Classic, com a seta e a marcação no mapa. (não retail IL) Dá pra importar py de várias revs, o foda é que não da regular as quest py através do debug em tempo real, pelo menos eu não consegui rsrs
    • Hasta el momento todas las QUESTS son completables si te guias con un tutorial de youtube. El problema es que tienen bugs de locacion y de subquests que no avanzan o no te marcan correctamente a donde ir en el mapa, cosa que en Retail si se ve como corresponde.
    • estranho, mas pelo menos a galera nunca reclamo das quests quando tinha aberto 5x, geral fez class primeira e segunda job, poucos que compraram a class
    • en RUSaCis-3.5 data pack, las Quests estan en formato .java y son diferentes a como estan redactadas en jOrion y jFrozen 1.5 (ProyectX) package net.sf.l2j.gameserver.scripting.quest; import net.sf.l2j.commons.random.Rnd; import net.sf.l2j.gameserver.enums.Paperdoll; import net.sf.l2j.gameserver.enums.QuestStatus; import net.sf.l2j.gameserver.enums.actors.ClassId; import net.sf.l2j.gameserver.model.actor.Creature; import net.sf.l2j.gameserver.model.actor.Npc; import net.sf.l2j.gameserver.model.actor.Player; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; import net.sf.l2j.gameserver.scripting.QuestState; public class Q224_TestOfSagittarius extends SecondClassQuest { private static final String QUEST_NAME = "Q224_TestOfSagittarius"; // Items private static final int BERNARD_INTRODUCTION = 3294; private static final int HAMIL_LETTER_1 = 3295; private static final int HAMIL_LETTER_2 = 3296; private static final int HAMIL_LETTER_3 = 3297; private static final int HUNTER_RUNE_1 = 3298; private static final int HUNTER_RUNE_2 = 3299; private static final int TALISMAN_OF_KADESH = 3300; private static final int TALISMAN_OF_SNAKE = 3301; private static final int MITHRIL_CLIP = 3302; private static final int STAKATO_CHITIN = 3303; private static final int REINFORCED_BOWSTRING = 3304; private static final int MANASHEN_HORN = 3305; private static final int BLOOD_OF_LIZARDMAN = 3306; private static final int CRESCENT_MOON_BOW = 3028; private static final int WOODEN_ARROW = 17; // Rewards private static final int MARK_OF_SAGITTARIUS = 3293; // NPCs private static final int BERNARD = 30702; private static final int HAMIL = 30626; private static final int SIR_ARON_TANFORD = 30653; private static final int VOKIAN = 30514; private static final int GAUEN = 30717; // Monsters private static final int ANT = 20079; private static final int ANT_CAPTAIN = 20080; private static final int ANT_OVERSEER = 20081; private static final int ANT_RECRUIT = 20082; private static final int ANT_PATROL = 20084; private static final int ANT_GUARD = 20086; private static final int NOBLE_ANT = 20089; private static final int NOBLE_ANT_LEADER = 20090; private static final int BREKA_ORC_SHAMAN = 20269; private static final int BREKA_ORC_OVERLORD = 20270; private static final int MARSH_STAKATO_WORKER = 20230; private static final int MARSH_STAKATO_SOLDIER = 20232; private static final int MARSH_STAKATO_DRONE = 20234; private static final int MARSH_SPIDER = 20233; private static final int ROAD_SCAVENGER = 20551; private static final int MANASHEN_GARGOYLE = 20563; private static final int LETO_LIZARDMAN = 20577; private static final int LETO_LIZARDMAN_ARCHER = 20578; private static final int LETO_LIZARDMAN_SOLDIER = 20579; private static final int LETO_LIZARDMAN_WARRIOR = 20580; private static final int LETO_LIZARDMAN_SHAMAN = 20581; private static final int LETO_LIZARDMAN_OVERLORD = 20582; private static final int SERPENT_DEMON_KADESH = 27090; public Q224_TestOfSagittarius() { super(224, "Test Of Sagittarius"); setItemsIds(BERNARD_INTRODUCTION, HAMIL_LETTER_1, HAMIL_LETTER_2, HAMIL_LETTER_3, HUNTER_RUNE_1, HUNTER_RUNE_2, TALISMAN_OF_KADESH, TALISMAN_OF_SNAKE, MITHRIL_CLIP, STAKATO_CHITIN, REINFORCED_BOWSTRING, MANASHEN_HORN, BLOOD_OF_LIZARDMAN, CRESCENT_MOON_BOW); addQuestStart(BERNARD); addTalkId(BERNARD, HAMIL, SIR_ARON_TANFORD, VOKIAN, GAUEN); addMyDying(ANT, ANT_CAPTAIN, ANT_OVERSEER, ANT_RECRUIT, ANT_PATROL, ANT_GUARD, NOBLE_ANT, NOBLE_ANT_LEADER, BREKA_ORC_SHAMAN, BREKA_ORC_OVERLORD, MARSH_STAKATO_WORKER, MARSH_STAKATO_SOLDIER, MARSH_STAKATO_DRONE, MARSH_SPIDER, ROAD_SCAVENGER, MANASHEN_GARGOYLE, LETO_LIZARDMAN, LETO_LIZARDMAN_ARCHER, LETO_LIZARDMAN_SOLDIER, LETO_LIZARDMAN_WARRIOR, LETO_LIZARDMAN_SHAMAN, LETO_LIZARDMAN_OVERLORD, SERPENT_DEMON_KADESH); } @Override public String onAdvEvent(String event, Npc npc, Player player) { String htmltext = event; QuestState st = player.getQuestList().getQuestState(QUEST_NAME); if (st == null) return htmltext; // BERNARD if (event.equalsIgnoreCase("30702-04.htm")) { st.setState(QuestStatus.STARTED); st.setCond(1); playSound(player, SOUND_ACCEPT); giveItems(player, BERNARD_INTRODUCTION, 1); if (giveDimensionalDiamonds39(player)) htmltext = "30702-04a.htm"; } // HAMIL else if (event.equalsIgnoreCase("30626-03.htm")) { st.setCond(2); playSound(player, SOUND_MIDDLE); takeItems(player, BERNARD_INTRODUCTION, 1); giveItems(player, HAMIL_LETTER_1, 1); } else if (event.equalsIgnoreCase("30626-07.htm")) { st.setCond(5); playSound(player, SOUND_MIDDLE); takeItems(player, HUNTER_RUNE_1, 10); giveItems(player, HAMIL_LETTER_2, 1); } // SIR_ARON_TANFORD else if (event.equalsIgnoreCase("30653-02.htm")) { st.setCond(3); playSound(player, SOUND_MIDDLE); takeItems(player, HAMIL_LETTER_1, 1); } // VOKIAN else if (event.equalsIgnoreCase("30514-02.htm")) { st.setCond(6); playSound(player, SOUND_MIDDLE); takeItems(player, HAMIL_LETTER_2, 1); } return htmltext; } @Override public String onTalk(Npc npc, Player player) { String htmltext = getNoQuestMsg(); QuestState st = player.getQuestList().getQuestState(QUEST_NAME); if (st == null) return htmltext; switch (st.getState()) { case CREATED: if (player.getClassId() != ClassId.ROGUE && player.getClassId() != ClassId.ELVEN_SCOUT && player.getClassId() != ClassId.ASSASSIN) htmltext = "30702-02.htm"; else if (player.getStatus().getLevel() < 39) htmltext = "30702-01.htm"; else htmltext = "30702-03.htm"; break; case STARTED: int cond = st.getCond(); switch (npc.getNpcId()) { case BERNARD: htmltext = "30702-05.htm"; break; case HAMIL: if (cond == 1) htmltext = "30626-01.htm"; else if (cond == 2 || cond == 3) htmltext = "30626-04.htm"; else if (cond == 4) htmltext = "30626-05.htm"; else if (cond > 4 && cond < 8) htmltext = "30626-08.htm"; else if (cond == 8) { htmltext = "30626-09.htm"; st.setCond(9); playSound(player, SOUND_MIDDLE); takeItems(player, HUNTER_RUNE_2, 10); giveItems(player, HAMIL_LETTER_3, 1); } else if (cond > 8 && cond < 12) htmltext = "30626-10.htm"; else if (cond == 12) { htmltext = "30626-11.htm"; st.setCond(13); playSound(player, SOUND_MIDDLE); } else if (cond == 13) htmltext = "30626-12.htm"; else if (cond == 14) { htmltext = "30626-13.htm"; takeItems(player, BLOOD_OF_LIZARDMAN, -1); takeItems(player, CRESCENT_MOON_BOW, 1); takeItems(player, TALISMAN_OF_KADESH, 1); giveItems(player, MARK_OF_SAGITTARIUS, 1); rewardExpAndSp(player, 54726, 20250); player.broadcastPacket(new SocialAction(player, 3)); playSound(player, SOUND_FINISH); st.exitQuest(false); } break; case SIR_ARON_TANFORD: if (cond == 2) htmltext = "30653-01.htm"; else if (cond > 2) htmltext = "30653-03.htm"; break; case VOKIAN: if (cond == 5) htmltext = "30514-01.htm"; else if (cond == 6) htmltext = "30514-03.htm"; else if (cond == 7) { htmltext = "30514-04.htm"; st.setCond(8); playSound(player, SOUND_MIDDLE); takeItems(player, TALISMAN_OF_SNAKE, 1); } else if (cond > 7) htmltext = "30514-05.htm"; break; case GAUEN: if (cond == 9) { htmltext = "30717-01.htm"; st.setCond(10); playSound(player, SOUND_MIDDLE); takeItems(player, HAMIL_LETTER_3, 1); } else if (cond == 10) htmltext = "30717-03.htm"; else if (cond == 11) { htmltext = "30717-02.htm"; st.setCond(12); playSound(player, SOUND_MIDDLE); takeItems(player, MANASHEN_HORN, 1); takeItems(player, MITHRIL_CLIP, 1); takeItems(player, REINFORCED_BOWSTRING, 1); takeItems(player, STAKATO_CHITIN, 1); giveItems(player, CRESCENT_MOON_BOW, 1); giveItems(player, WOODEN_ARROW, 10); } else if (cond > 11) htmltext = "30717-04.htm"; break; } break; case COMPLETED: htmltext = getAlreadyCompletedMsg(); break; } return htmltext; } @Override public void onMyDying(Npc npc, Creature killer) { final Player player = killer.getActingPlayer(); final QuestState st = checkPlayerState(player, npc, QuestStatus.STARTED); if (st == null) return; switch (npc.getNpcId()) { case ANT: case ANT_CAPTAIN: case ANT_OVERSEER: case ANT_RECRUIT: case ANT_PATROL: case ANT_GUARD: case NOBLE_ANT: case NOBLE_ANT_LEADER: if (st.getCond() == 3 && dropItems(player, HUNTER_RUNE_1, 1, 10, 500000)) st.setCond(4); break; case BREKA_ORC_SHAMAN: case BREKA_ORC_OVERLORD: if (st.getCond() == 6 && dropItems(player, HUNTER_RUNE_2, 1, 10, 500000)) { st.setCond(7); giveItems(player, TALISMAN_OF_SNAKE, 1); } break; case MARSH_STAKATO_WORKER: case MARSH_STAKATO_SOLDIER: case MARSH_STAKATO_DRONE: if (st.getCond() == 10 && dropItems(player, STAKATO_CHITIN, 1, 1, 100000) && player.getInventory().hasItems(MANASHEN_HORN, MITHRIL_CLIP, REINFORCED_BOWSTRING)) st.setCond(11); break; case MARSH_SPIDER: if (st.getCond() == 10 && dropItems(player, REINFORCED_BOWSTRING, 1, 1, 100000) && player.getInventory().hasItems(MANASHEN_HORN, MITHRIL_CLIP, STAKATO_CHITIN)) st.setCond(11); break; case ROAD_SCAVENGER: if (st.getCond() == 10 && dropItems(player, MITHRIL_CLIP, 1, 1, 100000) && player.getInventory().hasItems(MANASHEN_HORN, REINFORCED_BOWSTRING, STAKATO_CHITIN)) st.setCond(11); break; case MANASHEN_GARGOYLE: if (st.getCond() == 10 && dropItems(player, MANASHEN_HORN, 1, 1, 100000) && player.getInventory().hasItems(REINFORCED_BOWSTRING, MITHRIL_CLIP, STAKATO_CHITIN)) st.setCond(11); break; case LETO_LIZARDMAN: case LETO_LIZARDMAN_ARCHER: case LETO_LIZARDMAN_SOLDIER: case LETO_LIZARDMAN_WARRIOR: case LETO_LIZARDMAN_SHAMAN: case LETO_LIZARDMAN_OVERLORD: if (st.getCond() == 13) { if (((player.getInventory().getItemCount(BLOOD_OF_LIZARDMAN) - 120) * 5) > Rnd.get(100)) { playSound(player, SOUND_BEFORE_BATTLE); takeItems(player, BLOOD_OF_LIZARDMAN, -1); addSpawn(SERPENT_DEMON_KADESH, player, false, 300000, true); } else dropItemsAlways(player, BLOOD_OF_LIZARDMAN, 1, 0); } break; case SERPENT_DEMON_KADESH: if (st.getCond() == 13) { if (player.getInventory().getItemIdFrom(Paperdoll.RHAND) == CRESCENT_MOON_BOW) { st.setCond(14); playSound(player, SOUND_MIDDLE); giveItems(player, TALISMAN_OF_KADESH, 1); } else addSpawn(SERPENT_DEMON_KADESH, player, false, 300000, true); } break; } } }  
×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.