opentibiabr / otservbr-global

OTServBR-Global datapack was migrated to Canary repository: https://github.com/opentibiabr/canary
GNU General Public License v2.0
143 stars 162 forks source link

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

Closed dudantas closed 2 years ago

dudantas commented 2 years ago

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)