Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 31.03.2007, 09:10   #1
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default [SHARE] C5 Quest: Pavel the Giant (AI/quest_pch)

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:
913xx.xx0000 -1168xx.xx0000 -39xx.xx0000
31961 884xx.xx0000 -1397xx.xx0000 -15xx.xx0000

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.ph...d=94&Itemid=46

HTML:
Code:
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:
Code:
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:
Code:
[pavel_the_giant]	121
Quest_pch2:
Code:
121 0
Not tested: don't have any server to test on.
Aikeleer is offline  
Old 31.03.2007, 14:08   #2
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default

Compiled
(Attension again! May be some mistakes. Plz test it before add on urs playing servers)

2 Aikeeler
Watching for the "}". Now only 1 mistake :
Code:
case 1:
					if( _from_choice == 0 || ( myself->HaveMemo(talker,121) > 0 )
					{
						myself->ShowPage(talker,"head_blacksmith_newyear_q0121_01.htm");
					} <- this is excess
					break;
				}
And by the way, in my item_pch.txt
Code:
[pavel_the_giant] = 8290
May be I'm wrong, correct me if that not tru

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
ai.zip — 1567 байт
Zil is offline  
Old 31.03.2007, 16:28   #3
~Marquis~
Архивный участник
 
Join Date: Dec 2006
Posts: 252
Default

heeeee Aikeleer's back!
Glad to see you're coding again AI.obj, i played your server and i had fun with GC part quests 1&2 and the soul crystal one <3
~Marquis~ is offline  
Old 31.03.2007, 21:34   #4
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Sorry, I misunderstood you. Thanks again for compiling, sorry about the bracket-syntax-error. I make these in a hurry and can't test these. So a big thanks

I will check the item once I get home, I didn't see any item in the questname-e file I think.
Aikeleer is offline  
Old 31.03.2007, 21:37   #5
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Quote:
Originally Posted by ~Marquis~ View Post
heeeee Aikeleer's back!
Glad to see you're coding again AI.obj, i played your server and i had fun with GC part quests 1&2 and the soul crystal one <3
Heh, that's good to hear. Stuff like that was just childsplay compared to my recent creations.
Aikeleer is offline  
Old 01.04.2007, 21:04   #6
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Item 8290:
Code:
8290	Flower of Pavel		The strange flower from Atlanta.	-1					0	0	0
Doesn't sound like it has something to do with this quest.
Aikeleer is offline  
Old 02.04.2007, 02:16   #7
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default

In your itemdada not that digit?
Oke..some, who wanna - chenge by thereselfs to wright ID of item
Zil is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:11.