Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 02.04.2006, 15:55   #1
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default NASC Help

For some reason, when i run nasc the "macro functions don't work, so i hand copied it into this:

Code:
	EventHandler QUEST_ACCEPTED(quest_id, talker)
	{

			/*
				ask to get his sword breaker for him
			*/
			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;

	}
Does anything look wrong with this? It doesn't work with the html quest accepting function. Any help would be appretiated.
Eanae is offline  
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  
 


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 15:51.