Форум · Полнота восстановления · Каталог вариантов

[SHARE] C5 Quest: Pavel the Giant (AI/quest_pch) — Aikeleer — #82670

Сообщение в форуме

Снимок 2007-12-22 11:51 UTC

Имя в снимке: Aikeleer · Источник Wayback

This quest brings people to the new quest area, the Pavel Ruins. This quest starts at the head blacksmith in Schuttgart Town: Head Blacksmith Newyear. It's nothing fancy, but it's crucial to starting "Resurrection of an Old Manager"; another quest involving that area. You can find the exact locations of the NPCs in the client quest files btw. Check out this data:

91374.000000	-116884.000000	-3920.000000	

31961	88416.000000	-139776.000000	-1536.000000

It gives you an EXP bonus of 10,000. I strongly advise to bump up this EXP bonus if you have an accelerated server! Travelquests are worth nothing in Lineage2, so even if you have a 1x server I'd still suggest putting the rates of this quest to 2x: that way it'll be actually worth it to get the quest. Change the parameter 'EXPRate' on collector yumi to do this, or leave it '1' and use the l2server config parameters to change all quests 

Locations, HTML and other notable information can be found at http://www.arktic.net/wrath/index.php?option=com_content&task=view&id=94&Itemid=46

HTML:

head_blacksmith_newyear_q0121_01: You have the quest but still return to Newyear

head_blacksmith_newyear_q0121_02: General info about the quest, including an 'accept quest' link

head_blacksmith_newyear_q0121_03: You're not suitable for the quest, due to your low level.

head_blacksmith_newyear_q0121_04: You just got the quest (quest_accepted)

collector_yumi_q0121_01: You came to yumi and delivered the quest. Whoopie!

AI:class head_blacksmith_newyear : master_lv3_black

{

handler:

	EventHandler TALK_SELECTED(fhtml0,talker)

	{

		if( _from_choice == 0 )

		{

			if( myself->HaveMemo(talker,@pavel_the_giant) == 0 && myself->GetOneTimeQuestFlag(talker,@pavel_the_giant) == 0 )

			{

				_choiceN = ( _choiceN + 1 );

				_code = 0;

				myself->AddChoice(0,"Pavel the Giant");

			}

			if( myself->HaveMemo(talker,@pavel_the_giant) == 1 )

			{

				_choiceN = ( _choiceN + 1 );

				_code = 0;

				myself->AddChoice(1,"Pavel the Giant");

			}

			/*

				More support for quests must be added later on

			*/

			if( _choiceN > 1 )

			{

				myself->ShowChoicePage(talker,1);

				return;

			}

		}

		if( _from_choice || _choiceN == 1 )

		{

			select(_code)

			{

				case 0:

					if( _from_choice == 0 ||  myself->HaveMemo(talker,@pavel_the_giant) == 0 && myself->GetOneTimeQuestFlag(talker,@pavel_the_giant) == 0 )

					{

						myself->SetCurrentQuestID(@pavel_the_giant);

						if( myself->GetInventoryInfo(talker,0) >= ( myself->GetInventoryInfo(talker,1) * 0.800000 ) || myself->GetInventoryInfo(talker,2) >= ( myself->GetInventoryInfo(talker,3) * 0.800000 ) )

						{

							myself->ShowSystemMessage(talker,1118);

							return;

						}

						if( myself->GetMemoCount(talker) < 16 )

						{

							if( talker.level >= 46 )

							{

								myself->FHTML_SetFileName(fhtml0,"head_blacksmith_newyear_q0121_02.htm");

								myself->FHTML_SetInt(fhtml0,"quest_id",121);

								myself->ShowFHTML(talker,fhtml0);

							}

							else

							{

								myself->ShowPage(talker,"head_blacksmith_newyear_q0121_03.htm");

							}

						}

						else

						{

							myself->ShowPage(talker,"fullquest.htm");

						}

					}

					break;

					case 1:

					if( _from_choice == 0 || ( myself->HaveMemo(talker,121) > 0 )

					{

						myself->ShowPage(talker,"head_blacksmith_newyear_q0121_01.htm");

					}

					break;

				}

			}

			return;

		}

	super;

	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)

	{

		if( quest_id == @pavel_the_giant )

		{

			myself->SetCurrentQuestID(@pavel_the_giant);

			if( myself->GetInventoryInfo(talker,0) >= ( myself->GetInventoryInfo(talker,1) * 0.800000 ) || myself->GetInventoryInfo(talker,2) >= ( myself->GetInventoryInfo(talker,3) * 0.800000 ) )

			{

				myself->ShowSystemMessage(talker,1118);

				return;

			}

			if( ( myself->GetCurrentTick() - talker.quest_last_reward_time ) > 1 )

			{

				talker.quest_last_reward_time = myself->GetCurrentTick();

				myself->SetMemo(talker,quest_id);

				myself->AddLog(1,talker,@pavel_the_giant);

				myself->SetFlagJournal(talker,@pavel_the_giant,1);

				myself->SoundEffect(talker,"ItemSound.quest_accept");

				myself->ShowPage(talker,"head_blacksmith_newyear_q0121_04.htm");

			}

			return;

		}

		super;

	}

}

class collector_yumi : citizen

{

parameter:

	int	EXPRate = 1;

handler:

	EventHandler TALK_SELECTED(fhtml0,talker)

	{

		if( _from_choice == 0 )

		{

			if( myself->HaveMemo(talker,@pavel_the_giant) == 1 && myself->GetOneTimeQuestFlag(talker,@pavel_the_giant) == 0  )

			{

				_choiceN = ( _choiceN + 1 );

				_code = 0;

				myself->AddChoice(0,"Pavel the Giant");

			}

			if( _choiceN > 1 )

			{

				myself->ShowChoicePage(talker,1);

				return;

			}

		}

		if( _from_choice || _choiceN == 1 )

		{

			select(_code)

			{

				case 0:

					if( _from_choice == 0 || ( myself->HaveMemo(talker,@pavel_the_giant) == 1 && myself->GetOneTimeQuestFlag(talker,@pavel_the_giant) == 0 )

					{

						myself->SetCurrentQuestID(@pavel_the_giant);

						if( myself->GetInventoryInfo(talker,0) >= ( myself->GetInventoryInfo(talker,1) * 0.800000 ) || myself->GetInventoryInfo(talker,2) >= ( myself->GetInventoryInfo(talker,3) * 0.800000 ) )

						{

							myself->ShowSystemMessage(talker,1118);

							return;

						}

							myself->RemoveMemo(talker,@pavel_the_giant);

							myself->SoundEffect(talker,"ItemSound.quest_finish");

							myself->SetOneTimeQuestFlag(talker,@pavel_the_giant,1);

							myself->IncrementParam(talker,0,(10000*EXPRate));

							myself->ShowPage(talker,"collector_yumi_q0121_01.htm");

					}

					break;

			}

			return;

		}

		super;

	}

}

Quest_pch:

[pavel_the_giant]	121

Quest_pch2:

121 0 

Not tested: don't have any server to test on.