![]() |
|
|
#10 |
|
Архивный участник
Join Date: Jun 2005
Posts: 374
|
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;
}
}
|
|
|
|
|