Jump to content
  • 0
estoudegreve

NPC Quest showevent

Question

Hello every one, I am trying to create a quest npc.

 

This npc will show a effect like the picture, but not when the player click on it.

 

I will sho this effect when the player is not doing the quest, so the npc show it.

 

 

post-8795-0-25179500-1494812427_thumb.jpg

Edited by estoudegreve

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Can be done with showevent() or questinfo().

 

Using showevent you have more control of the behavior.

prontera	mapflag	loadevent
prontera,150,150,3	script	showevent	4_F_BRZ_WOMAN,{
	end;
	OnPCLoadMapEvent:
		if(strcharinfo(3) == strnpcinfo(4)) {
			.@questInProgress = 1;
			showevent(.@questInProgress ? QTYPE_QUEST : QTYPE_NONE);
		}
	end;
} 

 

If you dont succeed post it here, I 'll help you.

Edited by tedexx

Share this post


Link to post
Share on other sites
  • 0

Can be done with showevent() or questinfo().

 

Using showevent you have more control of the behavior.

prontera	mapflag	loadevent
prontera,150,150,3	script	showevent	4_F_BRZ_WOMAN,{
	end;
	OnPCLoadMapEvent:
		if(strcharinfo(3) == strnpcinfo(4)) {
			.@questInProgress = 1;
			showevent(.@questInProgress ? QTYPE_QUEST : QTYPE_NONE);
		}
	end;
} 

 

If you dont succeed post it here, I 'll help you.

 

 

Perfect, it works, now I want to turn off it, because after choose start the quest, there is not more a new quest.

Share this post


Link to post
Share on other sites
  • 0

You can simply do showevent(QTYPE_NONE); after you gave the quest.

If what you want is the default behavior of quests, you should use questinfo() on OnInit event.

 

*questinfo(<Quest ID>, <Icon> {, <Map Mark Color>{, <Job Class>}})

This is esentially a combination of questprogress() and showevent(). Use this only
in an OnInit label. For the Quest ID, specify the quest ID that you want
checked if it has been started yet.

For Icon, use one of the following:

No Icon		: QTYPE_NONE
! Quest Icon	: QTYPE_QUEST
? Quest Icon	: QTYPE_QUEST2
! Job Icon	: QTYPE_JOB
? Job Icon	: QTYPE_JOB2
! Event Icon	: QTYPE_EVENT
? Event Icon	: QTYPE_EVENT2
Warg		: QTYPE_WARG
Warg Face	: QTYPE_WARG2 (Only for packetver >= 20120410)

Map Mark Color, when used, creates a mark in the user's mini map on the position of the NPC,
the available color values are:

0 - No Marker
1 - Yellow Marker
2 - Green Marker
3 - Purple Marker

When a user shows up on a map, each NPC is checked for questinfo that has been set.
If questinfo is present, it will check if the quest has been started, if it has not, the bubble will appear.

Optionally, you can also specify a Job Class if the quest bubble should only appear for a certain class.

Example
	izlude,100,100,4	script	Test	844,{
		mes("[Test]");
		mes("Hello World.");
		close();

	OnInit:
		questinfo(1001, QTYPE_QUEST, 0, Job_Novice);
		end;
	}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.