Skip to content

Commit

Permalink
fix: Canary NPC example addModule missing parameters (opentibiabr#842)
Browse files Browse the repository at this point in the history
Now the NPCs are displayed correctly and everything appears to be functional.
Previously, they were not working in Ghost mode and this is what they looked like.

If you have custom NPCs like I do, and created them some time ago, you may need to update them to function correctly.
Change "npcHandler:addModule(FocusModule:new())" to
"npcHandler:addModule(FocusModule:new(), npcConfig.name, true, true, true)"
  • Loading branch information
Aerwix authored Feb 6, 2023
1 parent 09e4e70 commit 434efda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-canary/npc/canary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ npcHandler:setMessage(MESSAGE_FAREWELL, "Yeah, good bye and don't come again!")
-- Walkaway message
npcHandler:setMessage(MESSAGE_WALKAWAY, "You not have education?")

npcHandler:addModule(FocusModule:new())
npcHandler:addModule(FocusModule:new(), npcConfig.name, true, true, true)

-- Register npc
npcType:register(npcConfig)

0 comments on commit 434efda

Please sign in to comment.