Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

[Enhancement] - Added boolean value to enable or disable greeting, ungreeting and trade npc callback #742

Merged
merged 6 commits into from
Aug 18, 2022

Conversation

dudantas
Copy link
Collaborator

@dudantas dudantas commented Aug 3, 2022

This will allow us to control which npcs will have, by default, the greet, ungreet and trade callbacks enabled, if false, the npc will not use the callback and will need to use something custom
If no parameter (true or false) is provided in the npc NpcHandler:addModule, it will inform the distro with a warning and set the default to true

Added to disable trade callback on "Yana, Peter and Sandomo" npcs (and allow the possibility of modifying in other npcs if necessary)

This will allow us to control which npcs will have, by default, the greet, ungreet and trade callbacks enabled, if false, the npc will not use the callback and will need to use something custom

Added to disable trade callback on "Yana, Peter and Sandomo" npcs

Can also be applied to use alternatives to hi or bye
@dudantas dudantas changed the title Fix some npc trade callbacks [Enhancement] - Added boolean value to enable or disable greeting, ungreeting and trade Aug 3, 2022
@dudantas dudantas changed the title [Enhancement] - Added boolean value to enable or disable greeting, ungreeting and trade [Enhancement] - Added boolean value to enable or disable greeting, ungreeting and trade npc callback Aug 3, 2022
@majestyotbr majestyotbr merged commit b1d4aa5 into main Aug 18, 2022
@majestyotbr majestyotbr deleted the fix-npc-trade-callback branch August 18, 2022 01:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants