server
server copied to clipboard
params not working in quest:messageText
I affirm:
- [x] I understand that if I do not agree to the following points by completing the checkboxes my issue will be ignored.
- [x] I have read and understood the Contributing Guide and the Code of Conduct.
- [x] I have searched existing issues to see if the issue has already been opened, and I have checked the commit log to see if the issue has been resolved since my server was last updated.
OS / platform the server is running (if known)
arch linux
Branch affected by issue
base
Steps to reproduce
I created this PR: https://github.com/LandSandBoat/server/pull/7571
KnowOne134 said I should use quest:messageText(ID.text.BRING_MORE_SHELLS, xi.item.BEETLE_SHELL) instead of npc:showText(npc, ID.text.BRING_MORE_SHELLS, xi.item.BEETLE_SHELL)
But when I do that then "Beetle Shell" is missing from the NPC's dialog.
- I'm using this branch: https://github.com/Grahf0085/server/tree/thick-shells
- !gotoid 17727552
- !setfamelevel 0 5
- Talk to Vounebariont and he should get event 516 where NPC says he brews potions and needs beetle shells
- Should now have quest in current list
- Talk to NPC again to get reminder dialog about bringing 5 shells
- Change this line in Thick_Shells.lua from
npc:showText(npc, ID.text.BRING_MORE_SHELLS, xi.item.BEETLE_SHELL)toreturn quest:messageText(ID.text.BRING_MORE_SHELLS, xi.item.BEETLE_SHELL) - Talk to Vounebariont again and he will say "bring me five more of those". He should say "bring me five more of those beetle shells" - suggesting the parameter isn't working - or I'm using it wrong.
Expected behavior
Parameter in quest:messageText() is used with text