astralprojection 35 Posted September 18, 2018 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. Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted September 18, 2018 Yes apparently there is a problem with quest validation you can pull https://github.com/HerculesWS/Hercules/pull/2218 in order to fix it. And for your question about multiple values yes you can have a list in both QINFO_ITEM and QINFO_QUEST. Quote Share this post Link to post Share on other sites
0 astralprojection 35 Posted September 18, 2018 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. Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted September 18, 2018 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; Quote Share this post Link to post Share on other sites
0 astralprojection 35 Posted September 18, 2018 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 Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted September 18, 2018 @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. Quote Share this post Link to post Share on other sites
0 astralprojection 35 Posted September 19, 2018 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 Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted September 19, 2018 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. Quote Share this post Link to post Share on other sites
0 astralprojection 35 Posted September 21, 2018 Thank you @Asheraf I hope you can have time to make it possible Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted September 21, 2018 @astralprojection I have pushed an update to #2218 which added support for specifying an item amount range (0 should be allowed), feel free to test it and tell me if you found any issues. 1 astralprojection reacted to this Quote Share this post Link to post Share on other sites
0 astralprojection 35 Posted September 21, 2018 @Asheraf Thank you for that, it works perfectly. Quote Share this post Link to post Share on other sites
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