Questinfo / SetQuestInfo

astralprojection

New member
Messages
334
Points
0
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.
 

 
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.

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

Code:
OnInit:
	questinfo(QTYPE_QUEST, 1);
	setquestinfo(QINFO_QUEST, 30049, 0);
	questinfo(QTYPE_QUEST, 1);
	setquestinfo(QINFO_QUEST, 30050, 1);
	end;
 
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

 
@astralprojection You can't set item amount to 0 i believe you should be having a warning in the console, i will push an update to change that later.

 
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 :)

 
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.

 
Back
Top