Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quests] Support condition types "dmg" and "heal" #346

Open
Tzook opened this issue Apr 17, 2018 · 0 comments
Open

[Quests] Support condition types "dmg" and "heal" #346

Tzook opened this issue Apr 17, 2018 · 0 comments

Comments

@Tzook
Copy link
Owner

Tzook commented Apr 17, 2018

These new conditions are now supported in the server.

To add a new quest with these conditions:
simply create a question condition with condition name "dmg" or "heal", and keep the field Type empty.

To read the current progress of the dmg/heal of a quest:
the character quest progress data looks like this:
"quests": { "progress": {...}, "done": {...}, "hunt": {...}, "ok": {...}, "dmg": { "questKey": 1337 }, "heal": { "questKey": 6969 } },
So for example, it can be accessed with "questsData["dmg"][quest.Key].AsInt".

The dmg and heal should also increase the quest progress in the client when receiving dmg/heal events that are caused by your id (let me know if you prefer a new event for the quest progress).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant