• 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 responds in default and priv

Michaeel

New Member
Joined
Mar 6, 2009
Messages
272
Reaction score
1
I have problem with NPC - he responds the same in two chats - default and priv

it works like:
default: Hello Mark!
priv: Hello Mark!

in one time :/
where can I fix it?
 
/data/npc/lib/npcsystem/npchandler.lua, remove bold red line:
Code:
	function NpcHandler:greet(cid)
		if(cid ~= 0) then
			local callback = self:getCallback(CALLBACK_GREET)
			if(callback == nil or callback(cid)) then
				if(self:processModuleCallback(CALLBACK_GREET, cid)) then
					local msg = self:getMessage(MESSAGE_GREET)
					local parseInfo = { [TAG_PLAYERNAME] = getCreatureName(cid) }
					msg = self:parseMessage(msg, parseInfo)

[B][COLOR="Red"]					self:say(msg)[/COLOR][/B]
					self:addFocus(cid)
					self:say(msg, cid)
				end
			end
		end
	end
 
Back
Top