Hello everyone! I am having difficulty getting the NPC's to talk in their window. I have searched around and tried everything I can think of.
I tried setting this in the npc/lib/npcsystem/npchandler.lua
And that did not work. Here is an example of one of the NPC's that is not working
Any ideas?
I tried setting this in the npc/lib/npcsystem/npchandler.lua
Code:
NPCHANDLER_CONVBEHAVIOR = CONVERSATION_PRIVATE
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<npc name="Willie" script="data/npc/scripts/Normal.lua" walkinterval="1000" floorchange="0">
<health now="100" max="100" />
<look type="153" head="77" body="63" legs="58" feet="115" addons="1" />
<parameters>
<parameter key="message_greet" value="Hiho |PLAYERNAME|. I hope you're here to {trade}." />
<parameter key="message_farewell" value="Yeah, bye |PLAYERNAME|." />
<parameter key="message_sendtrade" value="Ya take a good look." />
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="bread,2689,3;cheese,8368,5;ham,2671,8;meat,2666,5;" />
<parameter key="shop_sellable" value="bread,2689,1;carrot,2684,1;cheese,8368,2;cherry,2679,1;egg,2695,1;ham,2671,4;meat,2666,2;salmon,2668,2;" />
</parameters>
</npc>
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())
Any ideas?