PikaMug / Quests

Easy-to-use, open-source plugin for the creation and execution of quests on Minecraft servers.
https://modrinth.com/plugin/quests.classic
MIT License
148 stars 108 forks source link

Quest Block Not Working #2088

Closed Regwield closed 1 year ago

Regwield commented 1 year ago

What is your Quests version / build number (do not say "latest")?

4.8.1

Describe the problem and how to replicate it.

Quest block is not working as mentioned in wiki. (Quest which must be taken before this one). I am choosing "set quest blocks" and typing the quest that has to be taken before the quest (default4) that I am editing (test1). But nothing is happening, even tho I did not take the quest that has to be taken before (default4) taking"test1", it is giving me the quest (test1)

Any console errors to share?

No errors on console.

If applicable, can you provide an example quest from quests.yml?

default4:
    name: Timed Quest
    ask-message: <yellow>Dig up <pink>10<yellow> blocks of <pink>Dirt<yellow> before
      time runs out!
    finish-message: <yellow>You did it in time! Have an <pink>Iron Shovel<yellow>
      and some <green>experience<yellow>.
    requirements:
      quest-points: 1
      fail-requirement-message: <red>Complete <pink>Iron Miner<red> or <pink>Mob Hunter<red>
        first.
    stages:
      ordered:
        '1':
          break-block-names:
          - DIRT
          break-block-amounts:
          - 10
          break-block-durability:
          - 0
          start-event: TimerStart
          finish-event: CancelTimer
    rewards:
      items:
      - name-GOLD_INGOT:amount-1
      exp: 150
  custom1:
    name: test1
    ask-message: Challenge objectives!
    finish-message: Well done!
    npc-giver-uuid: 4e4ab01c-14f1-417c-885f-d4460de9b675
    requirements:
      quests:
      - default4
    stages:
      ordered:
        '1':
          npc-uuids-to-talk-to:
          - c61361cc-a312-4155-87ef-721a4769cbcd
MisterLolxd2 commented 1 year ago

I have the same problem. I noticed that it appears when the player is not in the database. For example, I completed the quest, plugings saved me to the database (mysql) and I can not do quests, because I do not meet the requirements, but when I am not in the database I can choose any.

PikaMug commented 1 year ago

Quest block is not working as mentioned in wiki. (Quest which must be taken before this one). I am choosing "set quest blocks" and typing the quest that has to be taken before the quest (default4) that I am editing (test1). But nothing is happening, even tho I did not take the quest that has to be taken before (default4) taking"test1", it is giving me the quest (test1)

I think you've misread the documentation. Setting a quest block (option 6) prevents the quest you're editing from being taken if the user has already taken the one specified. It sounds like you want to set a quest requirement (option 5).