Jump to content
  • 0
Sign in to follow this  
astralprojection

Questinfo / SetQuestInfo

Question

Im having issue with this:

OnInit:
	questinfo(QTYPE_QUEST,1);
	setquestinfo(QINFO_QUEST, 33333, 0);
	end;

npc should show bubble when player don't have that QuestID 33333. Also can it process multiple validation? like

OnInit:
	questinfo(QTYPE_QUEST,1);
	setquestinfo(QINFO_QUEST, 33333, 0);
	setquestinfo(QINFO_QUEST, 33334, 2);
	end;

show bubble when quest 33333 has not started  OR  quest 3334 is completed.
 

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Thank you @Asheraf for the PR, now still have issue with this script
 

OnInit:
	questinfo(QTYPE_QUEST,1);
	setquestinfo(QINFO_QUEST, 30049, 0);
	setquestinfo(QINFO_QUEST, 30050, 1);
	end;

What I want to accomplish is, show bubbles if: don't have quest 30049 -OR- has ongoing quest 30050. Is it possible?  I was thinking the setquestinfo list is AND not OR.
with that code above, it don't show any bubble when player don't have 30049.

Share this post


Link to post
Share on other sites
  • 0

You should be able to have an OR effect by using 2 questinfo definitions in the following way

OnInit:
	questinfo(QTYPE_QUEST, 1);
	setquestinfo(QINFO_QUEST, 30049, 0);
	questinfo(QTYPE_QUEST, 1);
	setquestinfo(QINFO_QUEST, 30050, 1);
	end;

 

Share this post


Link to post
Share on other sites
  • 0

Thanks again for the fast response @Asheraf  just a bit more
 

OnInit:
	questinfo(QTYPE_QUEST,1);
	setquestinfo(QINFO_QUEST, 30049, 0);
	questinfo(QTYPE_QUEST,1);
	setquestinfo(QINFO_QUEST, 30050, 1);
	setquestinfo(QINFO_ITEM, 601, 0);
	end;

setquestinfo(QINFO_ITEM, 601, 0); did not validate

Share this post


Link to post
Share on other sites
  • 0

Thank you again @Asherafit must allow to validate if item is NOT available.

The scenario would be:

 I have ongoing quest 30050 and i have to collect quest item from various NPC.

npc bubbles if i dont hve item. and remove bubbles if i get the item already. then i.proceed to another npc to collect without completting 30050:)

Share this post


Link to post
Share on other sites
  • 0

Well, in kRO they never use it in that way but rather the questinfo notification is shown when the player did not accept the quest yet or have requirements finished (ex: all items were gathered). regardless of that I believe we should give the ability to do whatever you want.

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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