Bug report moved to the new portal: Mmore.club
Detailed info: L2-scripts.com
Skype: Urchika

Our portfolio of solved reports: High Five
Our portfolio of solved reports: GOD
Our portfolio of solved reports: Classic

This forum is closed and open for viewing our work on bug reports for a long time. Thank you all !


Закрытая тема
 
Опции темы Опции просмотра
Старый 06.12.2015, 13:54   #1
L2-sibir.ru
Клиент Underground + ГЕО
 
Регистрация: 22.11.2015
Сообщений: 261
Отправить сообщение для L2-sibir.ru с помощью ICQ
По умолчанию Квест погоня за фарангой (FIXED)

10:43:02] INFO =================================================
[10:43:02] INFO Project Revision: ........ L2s [19180]
[10:43:02] INFO Build Revision: .......... svn: E155036:
[10:43:02] INFO Update: .................. Epic Tale of Aden: Ertheia
[10:43:02] INFO Build date: .............. 2015.12.03 02:08
[10:43:02] INFO Compiler version: ........ 1.8.0_05-b13 (Oracle Corporation)

По данному квесту с моба не падают итемы проверяли на сто раз.

http://radikal.ru/big/27328f6d297247ee8403e5256db8cb77

Моб Темный Шаман Фаранги

https://l2central.info/wiki/%D0%9F%D...B3%D0%BE%D0%B9
L2-sibir.ru вне форума  
Старый 06.12.2015, 19:28   #2
Scorpius
Спонсор Арены
 
Аватар для Scorpius
 
Регистрация: 14.06.2013
Адрес: Норильск
Сообщений: 2,876
Отправить сообщение для Scorpius с помощью Skype™
По умолчанию

Цитата:
Сообщение от L2-sibir.ru Посмотреть сообщение
10:43:02] INFO =================================================
[10:43:02] INFO Project Revision: ........ L2s [19180]
[10:43:02] INFO Build Revision: .......... svn: E155036:
[10:43:02] INFO Update: .................. Epic Tale of Aden: Ertheia
[10:43:02] INFO Build date: .............. 2015.12.03 02:08
[10:43:02] INFO Compiler version: ........ 1.8.0_05-b13 (Oracle Corporation)

По данному квесту с моба не падают итемы проверяли на сто раз.

http://radikal.ru/big/27328f6d297247ee8403e5256db8cb77

Моб Темный Шаман Фаранги

https://l2central.info/wiki/%D0%9F%D...B3%D0%BE%D0%B9
Код:
package quests;

import l2s.gameserver.model.Player;
import l2s.gameserver.model.World;
import l2s.gameserver.model.instances.NpcInstance;
import l2s.gameserver.model.quest.Quest;
import l2s.gameserver.model.quest.QuestState;

/**
 * @author Iqman
 */
public class _10432_ChasingVarangka extends Quest
{
	//npc
	private static final int CHEIREN = 32655;
	private static final int JOKEL = 33868;
	//mob
	private static final int FARANGA_RAID = 18808;
	//rewards
	private static final int IRON_GATE_COIN = 37045;
	
	private static final int[] CLASS_LIMITS = { 88, 90, 91, 93, 99, 100, 101, 106, 107, 108, 114, 131, 132, 133, 136 };
	
	public _10432_ChasingVarangka()
	{
		super(false);
		addStartNpc(CHEIREN);
		addTalkId(CHEIREN);
		addTalkId(JOKEL);
		addKillId(FARANGA_RAID);
		
		addLevelCheck(81, 84);
		addQuestCompletedCheck(_10431_TheSealofPunishmentDenofEvil.class);
	}

	@Override
	public String onEvent(String event, QuestState st, NpcInstance npc)
	{
		String htmltext = event;

		if(event.equalsIgnoreCase("accept.htm"))
		{
			st.setCond(1);
			st.setState(STARTED);
			st.playSound(SOUND_ACCEPT);
		}
		
		else if(event.equalsIgnoreCase("endquest.htm"))
		{
			st.addExpAndSp(14120400, 3388);
			st.giveItems(IRON_GATE_COIN, 30L);
			st.giveItems(960, 5L);
			st.exitCurrentQuest(false);
			st.playSound(SOUND_FINISH);
		}
		return htmltext;
	}

	@Override
	public String onTalk(NpcInstance npc, QuestState st)
	{
		int cond = st.getCond();
		int npcId = npc.getNpcId();
		String htmltext = "noquest";
		
		if(npcId == CHEIREN)
		{
			if(st.getCond() == 0)
			{
				if(checkStartCondition(st.getPlayer()))
					htmltext = "1.htm";
				else
					htmltext = "nocomp.htm";
			}
			else if(cond == 1)
				htmltext = "4.htm";
		}
		else if(npcId == JOKEL)
		{
			if(cond == 2)
				htmltext = "1-1.htm";
		}
		return htmltext;
	}
	
	@Override
	public String onKill(NpcInstance npc, QuestState qs)
	{
		int npcId = npc.getNpcId();
		if(qs == null)
			return null;
		if(qs.getState() != STARTED)
			return null;
		if(qs.getCond() != 1)
			return null;
		for(Player player : World.getAroundPlayers(npc, 1500, 200))
		{
			QuestState thisqs = player.getQuestState(_10432_ChasingVarangka.class);
			if(thisqs == null || thisqs.getCond() != 1)
				continue;
			thisqs.setCond(2);	
			thisqs.playSound(SOUND_MIDDLE);
		}
		return null;
	}
}
Так должно работать (инфинити одиссей)
__________________
http://forum.l2-scripts.ru/image.php?type=sigpic&userid=947&dateline=1423019797
Scorpius вне форума  
Старый 06.12.2015, 20:34   #3
L2-sibir.ru
Клиент Underground + ГЕО
 
Регистрация: 22.11.2015
Сообщений: 261
Отправить сообщение для L2-sibir.ru с помощью ICQ
По умолчанию

Цитата:
Сообщение от Scorpius Посмотреть сообщение
Код:
package quests;

import l2s.gameserver.model.Player;
import l2s.gameserver.model.World;
import l2s.gameserver.model.instances.NpcInstance;
import l2s.gameserver.model.quest.Quest;
import l2s.gameserver.model.quest.QuestState;

/**
 * @author Iqman
 */
public class _10432_ChasingVarangka extends Quest
{
	//npc
	private static final int CHEIREN = 32655;
	private static final int JOKEL = 33868;
	//mob
	private static final int FARANGA_RAID = 18808;
	//rewards
	private static final int IRON_GATE_COIN = 37045;
	
	private static final int[] CLASS_LIMITS = { 88, 90, 91, 93, 99, 100, 101, 106, 107, 108, 114, 131, 132, 133, 136 };
	
	public _10432_ChasingVarangka()
	{
		super(false);
		addStartNpc(CHEIREN);
		addTalkId(CHEIREN);
		addTalkId(JOKEL);
		addKillId(FARANGA_RAID);
		
		addLevelCheck(81, 84);
		addQuestCompletedCheck(_10431_TheSealofPunishmentDenofEvil.class);
	}

	@Override
	public String onEvent(String event, QuestState st, NpcInstance npc)
	{
		String htmltext = event;

		if(event.equalsIgnoreCase("accept.htm"))
		{
			st.setCond(1);
			st.setState(STARTED);
			st.playSound(SOUND_ACCEPT);
		}
		
		else if(event.equalsIgnoreCase("endquest.htm"))
		{
			st.addExpAndSp(14120400, 3388);
			st.giveItems(IRON_GATE_COIN, 30L);
			st.giveItems(960, 5L);
			st.exitCurrentQuest(false);
			st.playSound(SOUND_FINISH);
		}
		return htmltext;
	}

	@Override
	public String onTalk(NpcInstance npc, QuestState st)
	{
		int cond = st.getCond();
		int npcId = npc.getNpcId();
		String htmltext = "noquest";
		
		if(npcId == CHEIREN)
		{
			if(st.getCond() == 0)
			{
				if(checkStartCondition(st.getPlayer()))
					htmltext = "1.htm";
				else
					htmltext = "nocomp.htm";
			}
			else if(cond == 1)
				htmltext = "4.htm";
		}
		else if(npcId == JOKEL)
		{
			if(cond == 2)
				htmltext = "1-1.htm";
		}
		return htmltext;
	}
	
	@Override
	public String onKill(NpcInstance npc, QuestState qs)
	{
		int npcId = npc.getNpcId();
		if(qs == null)
			return null;
		if(qs.getState() != STARTED)
			return null;
		if(qs.getCond() != 1)
			return null;
		for(Player player : World.getAroundPlayers(npc, 1500, 200))
		{
			QuestState thisqs = player.getQuestState(_10432_ChasingVarangka.class);
			if(thisqs == null || thisqs.getCond() != 1)
				continue;
			thisqs.setCond(2);	
			thisqs.playSound(SOUND_MIDDLE);
		}
		return null;
	}
}
Так должно работать (инфинити одиссей)
У нас Эртея)
L2-sibir.ru вне форума  
Старый 06.12.2015, 20:40   #4
Scorpius
Спонсор Арены
 
Аватар для Scorpius
 
Регистрация: 14.06.2013
Адрес: Норильск
Сообщений: 2,876
Отправить сообщение для Scorpius с помощью Skype™
По умолчанию

Я вижу, просто сравните ИД моего нпц с вашим. И поменяйте вручную, это не сложно. Сама суть квеста не менялась.
__________________
http://forum.l2-scripts.ru/image.php?type=sigpic&userid=947&dateline=1423019797
Scorpius вне форума  
Старый 07.12.2015, 04:09   #5
Core
Модератор
 
Аватар для Core
 
Регистрация: 03.06.2012
Сообщений: 4,624
По умолчанию

Исправлено. Закрыто.
__________________
Техническая поддержка L2-Scripts
Внимание: с 1 мая 2015 г. скайп технической поддержки будет: L2-scripts
старый скайп тех поддержки обслуживаться не будет !
Core вне форума  
Закрытая тема


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +4, время: 06:40.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot