Thread: NASC Help
View Single Post
Old 02.04.2006, 16:52   #2
Larson
Архивный участник
 
Join Date: Mar 2006
Posts: 43
Default Re: NASC Help

Quote:
Originally Posted by Eanae
Does anything look wrong with this? It doesn't work with the html quest accepting function. Any help would be appretiated.
1. In the given example a superfluous bracket '}'. Must be:
Code:
EventHandler QUEST_ACCEPTED(quest_id, talker)
{
	if (quest_id==45)
	{
		talker.quest_last_reward_time = 0;
		SetMemo(talker, 45);
		SoundEffect(talker, "ItemSound.quest_accept");
		ShowPage(talker, "pet_manager_cooper_q045_02.htm");
		SetMemoState(talker, @help_my_sister, 1);
		talker.flag = 0;
		return;
	}
	super;
}

2. Check up correctness of transfer quest_id through a HTML-file

From itself: in this handle be not too lazy to enter check of parameters of reception quest - MemoCount, HaveMemo. It will save up you from holes in the future...
Larson is offline