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 19.04.2006, 22:21   #1
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default [Share] Gatekeeper Ziggurat NASC (quest+teleport)

Code:
class gatekeper_catacombs : citizen
{
parameter:
	int x = 1;
	int y = 1;
	int z = 1;

handler:
EventHandler MENU_SELECTED(talker, ask, reply, i0)
{
	if(ask ==385)
	{
		if(reply == 0 && talker.level < 20)
		{
			ShowPage(talker, "enter_catacombs_q0385_03.htm");
		}
		else if(reply == 0 && talker.level > 19)
		{
			ShowPage(talker, "enter_catacombs_q0385_01.htm");
		}
		else if((reply == 0) && (HaveMemo(talker, @joke_of_the_past)))
		{
			ShowPage(talker, "enter_catacombs_q0385_04.htm");
		}
		else if((reply == 1) && (HaveMemo(talker, @joke_of_the_past)))
		{
			SetMemoState(talker, @joke_of_the_past, 1);
			ShowPage(talker, "enter_catacombs_q0385_05.htm");
		}
		else if((reply == 2) && (HaveMemo(talker, @joke_of_the_past)) && OwnItemCount(talker, @q_scroll_of_ancient_magic >= 1))
		{
			i0 = OwnItemCount(talker, @q_scroll_of_ancient_magic);
			GiveItem1(talker, @q_blank_scrl, i0);
			DeleteItem1(talker, @q_scroll_of_ancient_magic, i0);
			ShowPage(talker, "enter_catacombs_q0385_06.htm");
		}
	}
	else
	{
		InstantTeleport(talker, x, y, z);
	}
}

EventHandler QUEST_ACCEPTED(quest_id, talker)
{
			if ( quest_id==@joke_of_the_past)
			{				
			talker.quest_last_reward_time = 0;
			SetMemo(talker, @joke_of_the_past);
			SoundEffect(talker, "ItemSound.quest_accept");
			ShowPage(talker, "enter_catacombs_q0385_02.htm");
			return;
			}
		super;
	}

}
It's not hard to figure out the htmls etc. Have fun
Aikeleer is offline  
Old 19.04.2006, 23:18   #2
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

the htms were shared by me somewhere in this forum i think (all except one)
m4rk is offline  
Old 19.04.2006, 23:26   #3
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Ok, little guide
enter_catacombs_q0385_01.htm : Introduction to the quest, you are > level 20
enter_catacombs_q0385_02.htm : Accepted the quest
enter_catacombs_q0385_03.htm : You're too low level to participate in this quest
enter_catacombs_q0385_04.htm : You came back and ask again about the quest
enter_catacombs_q0385_05.htm : You decided to end the quest
enter_catacombs_q0385_06.htm : traded in the scrolls of ancient magic for blank scrolls
Aikeleer is offline  
Old 20.04.2006, 01:00   #4
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

You have no idea the irony behind your sharing this today. ._.
Eanae is offline  
Old 20.04.2006, 01:54   #5
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Eanae, Mine is better, 100% correct with correct sounds/links/ideas/rates. My work is always 100% perfect, or I re-do it.
Kenster is offline  
Old 20.04.2006, 07:02   #6
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

What would a few different links matter? The player won't see the difference between ask=385&reply=5 and ask=385&reply=6. 2 lines or so and this code is the same as retail's.
Aikeleer is offline  
Old 22.04.2006, 01:37   #7
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

does this work with seven sign system (where the lost side won't be able to enter the cata/necro)?
kgptzac is offline  
Old 22.04.2006, 01:44   #8
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Quote:
does this work with seven sign system (where the lost side won't be able to enter the cata/necro)?
Well you should add a item checker in the nasc code, and change the item required depending on wich side has won...
m4rk is offline  
Old 22.04.2006, 03:20   #9
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

Found an issue with your AI. You didn't include a check to make sure the player has less then 16 quests.
Eanae is offline  
Old 22.04.2006, 08:57   #10
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Use this code, it's the V2:
Code:
class exit_catacomb : citizen
{
parameter:
	int x = 1;
	int y = 1;
	int z = 1;

handler:
EventHandler TALK_SELECTED(talker, i0)
{
		if (HaveMemo(talker, @joke_of_the_past))
		{
			i0 = OwnItemCount(talker, @q_scroll_of_ancient_magic);
			if (i0 < 1)
			{
				ShowPage(talker, "exit_catacomb_q0385_08.htm");
				return;
			}
			GiveItem1(talker, @q_blank_scrl, i0);
			DeleteItem1(talker, @q_scroll_of_ancient_magic, i0);
			ShowPage(talker, "exit_catacomb_q0385_07.htm");
			SoundEffect(talker, "ItemSound.quest_finish");
		}
		else
		{
			if (GetMemoCount(talker)<15)
			{
				ShowPage(talker, "exit_catacomb_q0385_01.htm");
			}
			else
			{
				ShowPage(talker,"fullquest.htm");
			}
		}
}

EventHandler MENU_SELECTED(talker, ask, reply, i0)
{
	if(ask ==385)
	{
		if ((reply == 1) && talker.level < 20)
		{
			ShowPage(talker, "exit_catacomb_q0385_09.htm");
		}
		else if((talker.level > 19) && reply == 1)
		{
			ShowPage(talker, "exit_catacomb_q0385_02.htm");
		}
		else if((reply == 3) && (HaveMemo(talker, @joke_of_the_past)))
		{
			RemoveMemo(talker, @joke_of_the_past);
			ShowPage(talker, "exit_catacomb_001.htm");
		}
	}
	else
	{
		InstantTeleport(talker, x, y, z);
	}

}

EventHandler QUEST_ACCEPTED(quest_id, talker)
{
			if (quest_id==@joke_of_the_past && GetMemoCount(talker)<15)
			{				
			talker.quest_last_reward_time = 0;
			SetMemo(talker, @joke_of_the_past);
			SoundEffect(talker, "ItemSound.quest_accept");
			ShowPage(talker, "exit_catacomb_q0385_05.htm");
			return;
			}
		super;
	}
}
Aikeleer 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:56.