server icon indicating copy to clipboard operation
server copied to clipboard

params not working in quest:messageText

Open Grahf0085 opened this issue 9 months ago • 0 comments

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.

  1. I'm using this branch: https://github.com/Grahf0085/server/tree/thick-shells
  2. !gotoid 17727552
  3. !setfamelevel 0 5
  4. Talk to Vounebariont and he should get event 516 where NPC says he brews potions and needs beetle shells
  5. Should now have quest in current list
  6. Talk to NPC again to get reminder dialog about bringing 5 shells
  7. Change this line in Thick_Shells.lua from npc:showText(npc, ID.text.BRING_MORE_SHELLS, xi.item.BEETLE_SHELL) to return quest:messageText(ID.text.BRING_MORE_SHELLS, xi.item.BEETLE_SHELL)
  8. 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

Grahf0085 avatar May 15 '25 23:05 Grahf0085