• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Npc Chat System

myndgames

MyndGamez.com
Joined
Jul 4, 2008
Messages
32
Reaction score
1
Location
USA
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
Code:
NPCHANDLER_CONVBEHAVIOR = CONVERSATION_PRIVATE
And that did not work. Here is an example of one of the NPC's that is not working

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?
 
Set the same in npc/lib/npcsystem/npcsystem.lua:
Code:
	-- Conversation behavior. For more information, look at the top of npchandler.lua.
	NPCHANDLER_CONVBEHAVIOR = CONVERSATION_PRIVATE
 
Back
Top